#ssw-calculator {
    font-family: 'Open Sans',Verdana,Helvetica,sans-serif !important;
}
#ssw-calculator h2, #ssw-calculator h3{
    color:#ffffff !important;
}
#ssw-calculator {
    background-color: #0d395a;
    color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

#loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

#loading-overlay img {
    width: 150px;
    height: auto;
    transform: translateY(20px);
    margin-bottom: 20px; /* Add space between the image and dots */
}

#loading-dots {
    display: flex;
    gap: 5px; /* Space between dots */
    font-size: 20px;
}

#loading-dots span {
    display: inline-block;
    font-size: 30px; /* Size of the dots */
    line-height: 1; /* Ensure dots are perfectly round */
    color: #0073aa; /* Dot color */
    animation: blink 1.5s infinite;
    opacity: 0; /* Default invisible */
}

#loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

#loading-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

#loading-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes blink {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.cta {
    font-size: 1.2em;
    color: #dddddd;
    margin-bottom: 25px;
}

#ssw-form label {
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
}

#height-display, #skill-display, #weight-display {
    font-size: 1em;
    color: #22baa0;
    margin-left: 10px;
    font-weight: 700;
}

.gender-options {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    gap: 30px;
}

.gender-options label {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
}

.gender-options input[type="radio"] {
    display: none; /* Hide the default radio button */
}

.custom-radio {
    display: inline-block;
    width: 24px; /* Adjust size as needed */
    height: 24px; /* Adjust size as needed */
    border: 2px solid #22baa0; /* Green border */
    border-radius: 50%;
    position: relative;
    margin-right: 8px;
}

.custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 5px;
    border: solid #22baa0;
    border-width: 0 0 2px 2px;
    transform: translate(-50%, -50%) rotate(-45deg) scale(0);
    transition: transform 0.2s ease-in-out;
}

input[type="radio"]:checked + .custom-radio::after {
    transform: translate(-50%, -60%) rotate(-45deg) scale(1.2);
}

#ssw-form button {
    background-color: #22baa0;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#ssw-form button:hover {
    background-color: #0e917b;
}

#ssw-result {
    margin-top: 25px;
    font-size: 1.2em;
    text-align: center;
}

#ssw-result a {
    display: inline-block;
    background-color: #22baa0;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#ssw-result a:hover {
    background-color: #0e917b;
}

.tip {
    font-size: 1em;
    color: #22baa0;
    font-style: italic;
    margin-top: 20px;
}

.learn-more-btn {
    background-color: #22baa0;
    color: #ffffff !important;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 8px;
    margin-top: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.learn-more-btn:hover {
    background-color: #0e917b;
}

.faq-content {
    background-color: #0d395a;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.faq-item {
    margin-top: 15px;
}

.faq-question {
    font-weight: 700;
    color: #ffffff !important;
    cursor: pointer;
    margin: 0;
}

.faq-answer {
    display: none;
    margin-top: 10px;
    color: #ffffff !important;
}

.tooltip {
    cursor: pointer;
    color: #22baa0;
}

.tooltip:hover::after {
    content: attr(title);
    background-color: #0e917b;
    color: #ffffff;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
    margin-top: -5px;
}

/* Add an asterisk to required labels */
.inline-group, .required::after {
    content: "*";
    color: #22baa0;
    font-weight: bold;
}

/* Adjust input and select box width for alignment */
 
#ssw-form input[type="number"], 
#ssw-form select {
    width: 100%;
    padding: 7px;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #ffffff;
    font-size: 1em;
    box-sizing: border-box; /* Ensures padding and border are included in width/height */
}
#ssw-form button {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #ffffff;
    font-size: 1em;
    box-sizing: border-box; /* Ensures padding and border are included in width/height */  
}
/* Additional normalization for select boxes */
#ssw-form select {
    -webkit-appearance: none; /* Remove default select box styling (e.g., arrows) */
    -moz-appearance: none;
    appearance: none;
}

/* Additional normalization for inputs */
#ssw-form input[type="number"] {
    -moz-appearance: textfield; /* Removes spinner arrows in Firefox */
}

#ssw-form input[type="number"]::-webkit-inner-spin-button, 
#ssw-form input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none; /* Removes spinner arrows in Chrome/Safari */
    margin: 0;
}

/* Table Styling */
.form-table {
    width: 100%; /* Ensure the table takes up the full width */
    border-collapse: collapse; /* Remove gaps between table cells */
    margin-bottom: 20px;
}

/* Table Cell Styling */
.form-table td {
    padding: 5px; /* Add padding to table cells */
    vertical-align: middle; /* Align content vertically in the middle */
}

/* Label Styling */
.form-table label {
    font-weight: bold;
    color: #ffffff;
    white-space: nowrap; /* Prevent labels from wrapping */
    text-align: left;
}

/* Input and Select Styling */
.form-table input[type="number"],
.form-table select {
    width: 100%; /* Allow inputs/selects to fit content or parent container */
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #ffffff;
    font-size: 1em;
    box-sizing: border-box; /* Ensures padding and border are included in width/height */
    flex: 1; /* Let inputs/selects expand evenly */
}

/* Unit Styling */
.unit {
    font-size: 1em;
    color: #ffffff;
    margin-left: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-table td {
        display: block; /* Stack table cells on smaller screens */
        width: 100%; /* Ensure full width for each block */
    }
    .form-table label {
        margin-bottom: 5px; /* Add spacing for readability */
    }
    .form-table input[type="number"],
    .form-table select {
        width: 100%; /* Full width on smaller screens */
    }
}

/* Slider container */
.slider-group {
    position: relative;
    max-width: 500px; /* Constrain the slider to a maximum width */
    width: 100%;
    margin: 20px auto; /* Center horizontally */
}

/* Input slider */
.slider-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
    position: relative;
    z-index: 2;
    cursor: pointer;
    color:#fff;
}

/* Track styling */
.slider-group input[type="range"]::-webkit-slider-runnable-track,
.slider-group input[type="range"]::-moz-range-track,
.slider-group input[type="range"]::-ms-track {
    width: 100%;
    height: 2px !important;
    background: #ffffff;
    border-radius: 4px;
}

/* Thumb styling */
.slider-group input[type="range"]::-webkit-slider-thumb,
.slider-group input[type="range"]::-moz-range-thumb,
.slider-group input[type="range"]::-ms-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background-color: rgba(34, 186, 160, 1) !important;
    position: relative;
    z-index: 3;
    transform: translateY(-50%);
    cursor: pointer;
    
}

/* Markers */
.slider-group .markers {
    position: absolute;
    top: 40%; /* Place markers between the track and labels */
    left: 0;
    width: 100%;
    pointer-events: none;
}

.slider-group .markers span {
    position: absolute;
    width: 2px;
    height: 12px; /* Marker height */
    background-color: #ffffff;
    transform: translateX(-50%);
    transition: background-color 0.3s ease, height 0.3s ease;
}

.slider-group .markers span.active {
    background-color: #22baa0;
    height: 16px; /* Highlighted marker height */
}

/* Labels */
.slider-group .labels {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.875rem;
}

.slider-group .labels span {
    cursor: pointer;
    color: #ffffff;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.slider-group .labels span.active {
    font-weight: bold;
    color: #22baa0;
}

/* Tooltip */
.tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    background-color: #22baa0;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #22baa0 transparent transparent transparent;
}

.tooltip.visible {
    opacity: 1;
}


/* Tooltip above the thumb */
.tooltip {
    position: absolute;
    top: -35px;
    background-color: #22baa0;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-align: center;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #22baa0 transparent transparent transparent;
}

/* Tooltip visible state */
.tooltip.visible {
    opacity: 1;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .slider-group {
        max-width: 100%; /* Allow the slider to occupy the full width of the screen */
    }

    .slider-group .labels span {
        font-size: 0.75rem; /* Reduce label font size on smaller screens */
    }
}