.ksrc-wrapper {
    font-family: 'Inter', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;


    @media (min-width: 1200px) {
        /* Background Image */
        background-image: url('../img/hiker-placeholder.png');
        background-position: right center;
        background-repeat: no-repeat;
        background-size: 40%;
    }
}

.ksrc-title {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.ksrc-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;

}

.ksrc-left-panel {
    flex: 1;
    min-width: 300px;
}

.ksrc-right-panel {
    flex: 0 0 250px;
}

/* Units Toggle */
.ksrc-units {
    display: inline-flex;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 4px;
    margin-bottom: 25px;
}

.ksrc-units .ksrc-unit-btn:first-child {
    border-radius: 20px 0 0 20px;
}

.ksrc-units .ksrc-unit-btn:last-child {
    border-radius: 0 20px 20px 0;
}

.ksrc-unit-btn {
    border: none;
    background: transparent;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    transition: all 0.3s;
}

.ksrc-unit-btn.active {
    background: #70a026;
    /* Green from screenshot */
    color: #fff;
}

/* Grid Layout */
.ksrc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.ksrc-field {
    display: flex;
    flex-direction: column;
}

.ksrc-field.full-width {
    grid-column: 1 / -1;
}

.ksrc-field label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.ksrc-input-group {
    display: flex;
    gap: 10px;
}

.ksrc-field input[type=number]::-webkit-inner-spin-button,
.ksrc-field input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ksrc-field input[type=number] {
    -moz-appearance: textfield;
}

.ksrc-field input[type=number],
.ksrc-field select {
    background: #fbfbfb;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px;
    transition: color .3s, border-color .3s;
    width: 100%;
}

.ksrc-fitness-section label {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.ksrc-slider-val {
    background: #fcebc5;
    color: #d48806;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ksrc-steps-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 10px;
    /* Add padding so dots don't get cut off */
    margin-top: 10px;
}

/* The Background Line */
.ksrc-step-line-bg {
    position: absolute;
    top: 9px;
    /* Half of dot height (18px) roughly */
    left: 10px;
    right: 10px;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
    border-radius: 2px;
}

/* The Fill Line */
.ksrc-step-line-fill {
    position: absolute;
    top: 9px;
    left: 10px;
    height: 4px;
    background: #f47c3c;
    /* Orange fill */
    z-index: 2;
    border-radius: 2px;
    width: 33%;
    /* Default to Fair (2nd item) */
    transition: width 0.3s ease;
}

.ksrc-step-item {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    /* Width of the clickable area/dot container */
}

/* Hide Radio Buttons */
.ksrc-step-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 5;
    /* Make sure input is clickable */
}

/* The Dot */
.ksrc-step-dot {
    width: 18px;
    height: 18px;
    background: #e0e0e0;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

/* Active State for Dot - Generic (Overridden below) */
.ksrc-step-item input[type="radio"]:checked+.ksrc-step-dot {
    transform: scale(1.2);
}

/* Specific Dot Colors (Hover & Active & Passed) */

/* Poor */
#fitness_poor+.ksrc-step-dot:hover,
#fitness_poor:checked+.ksrc-step-dot,
.ksrc-step-item.active #fitness_poor+.ksrc-step-dot {
    background-color: #df5839;
    box-shadow: 0 0 0 1px #df5839;
}

/* Fair */
#fitness_fair+.ksrc-step-dot:hover,
#fitness_fair:checked+.ksrc-step-dot,
.ksrc-step-item.active #fitness_fair+.ksrc-step-dot {
    background-color: #f5bf4d;
    box-shadow: 0 0 0 1px #f5bf4d;
}

/* Good */
#fitness_good+.ksrc-step-dot:hover,
#fitness_good:checked+.ksrc-step-dot,
.ksrc-step-item.active #fitness_good+.ksrc-step-dot {
    background-color: #88b94f;
    box-shadow: 0 0 0 1px #88b94f;
}

/* Excellent */
#fitness_excellent+.ksrc-step-dot:hover,
#fitness_excellent:checked+.ksrc-step-dot,
.ksrc-step-item.active #fitness_excellent+.ksrc-step-dot {
    background-color: #68a522;
    box-shadow: 0 0 0 1px #68a522;
}

.ksrc-step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    /* Keep labels on one line */
    position: absolute;
    top: 20px;
    transform: translateX(-50%);
    left: 50%;
}

/* Experience Toggle */
.ksrc-experience-section {
    margin-block: 30px;
}

.ksrc-experience-section label {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: #333;
    display: block;
    margin-bottom: 15px;
}

.ksrc-toggle-group {
    display: flex;
    gap: 10px;
}

.ksrc-toggle-btn {
    border: none;
    background: #444;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    line-height: 1;
}

.ksrc-toggle-btn.active {
    background: #70a026;
}

/* Calculate Button */
#ksrc-calculate-btn {
    background: #70a026;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

#ksrc-calculate-btn:hover {
    background: #5f8a1e;
}

/* Result */
#ksrc-result {
    margin-top: 20px;
    padding: 20px;
    background: #f0f9eb;
    margin-bottom: 10px;
}

.ksrc-slider-val {
    background: #fcebc5;
    color: #d48806;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ksrc-steps-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 10px;
    /* Add padding so dots don't get cut off */
    margin-top: 10px;
}

/* The Background Line */
.ksrc-step-line-bg {
    position: absolute;
    top: 9px;
    /* Half of dot height (18px) roughly */
    left: 10px;
    right: 10px;
    height: 4px;
    background: #e0e0e0;
    z-index: 1;
    border-radius: 2px;
}

/* The Fill Line */
.ksrc-step-line-fill {
    position: absolute;
    top: 9px;
    left: 10px;
    height: 4px;
    background: #f47c3c;
    /* Orange fill */
    z-index: 2;
    border-radius: 2px;
    width: 33%;
    /* Default to Fair (2nd item) */
    transition: width 0.3s ease;
}

.ksrc-step-item {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    /* Width of the clickable area/dot container */
}

/* Hide Radio Buttons */
.ksrc-step-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 5;
    /* Make sure input is clickable */
}

/* The Dot */
.ksrc-step-dot {
    width: 18px;
    height: 18px;
    background: #e0e0e0;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

/* Active State for Dot - Generic (Overridden below) */
.ksrc-step-item input[type="radio"]:checked+.ksrc-step-dot {
    transform: scale(1.2);
}

/* Specific Dot Colors (Hover & Active & Passed) */

/* Poor */
#fitness_poor+.ksrc-step-dot:hover,
#fitness_poor:checked+.ksrc-step-dot,
.ksrc-step-item.active #fitness_poor+.ksrc-step-dot {
    background-color: #df5839;
    box-shadow: 0 0 0 1px #df5839;
}

/* Fair */
#fitness_fair+.ksrc-step-dot:hover,
#fitness_fair:checked+.ksrc-step-dot,
.ksrc-step-item.active #fitness_fair+.ksrc-step-dot {
    background-color: #f5bf4d;
    box-shadow: 0 0 0 1px #f5bf4d;
}

/* Good */
#fitness_good+.ksrc-step-dot:hover,
#fitness_good:checked+.ksrc-step-dot,
.ksrc-step-item.active #fitness_good+.ksrc-step-dot {
    background-color: #88b94f;
    box-shadow: 0 0 0 1px #88b94f;
}

/* Excellent */
#fitness_excellent+.ksrc-step-dot:hover,
#fitness_excellent:checked+.ksrc-step-dot,
.ksrc-step-item.active #fitness_excellent+.ksrc-step-dot {
    background-color: #68a522;
    box-shadow: 0 0 0 1px #68a522;
}

.ksrc-step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    /* Keep labels on one line */
    position: absolute;
    top: 20px;
    transform: translateX(-50%);
    left: 50%;
}

/* Experience Toggle */
.ksrc-experience-section {
    margin-block: 30px;
}

.ksrc-experience-section label {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: #333;
    display: block;
    margin-bottom: 15px;
}

.ksrc-toggle-group {
    display: flex;
    gap: 10px;
}

.ksrc-toggle-btn {
    border: none;
    background: #444;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    line-height: 1;
}

.ksrc-toggle-btn.active {
    background: #70a026;
}

/* Calculate Button */
#ksrc-calculate-btn {
    background: #70a026;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

#ksrc-calculate-btn:hover {
    background: #5f8a1e;
}

/* Result */
#ksrc-result {
    margin-top: 20px;
    padding: 20px;
    background: #f0f9eb;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    text-align: center;
}

#ksrc-result h3 {
    color: #155724;
    margin: 0 0 10px 0;
}

#ksrc-result p {
    margin: 0;
    color: #155724;
}

.ksrc-plan-trip-btn {
    display: inline-block;
    margin-top: 15px;
    background: #f47c3c;
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.ksrc-plan-trip-btn:hover {
    background: #d66b33;
}

/* Responsive */
@media (max-width: 768px) {
    .ksrc-container {
        flex-direction: column;
    }

    .ksrc-right-panel {
        order: -1;
        /* Move image to top on mobile if desired, or keep at bottom */
        flex: auto;
    }
}