/* ====================================
   VANQUISH LIFESTAGES - METHOD STYLES
   ==================================== */

/* LifeStages Description */
.lifestages-description {
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: -0.32px;
    color: var(--color-primary);
    max-width: 800px;
    margin: 0 auto;
}

/* LifeStages Container */
/* LifeStage Cards */
.lifestage-card {
    background: transparent;
    border: none;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Add spacing between sections */
}

/* Card Image */
.lifestage-card__image {
    height: 154px;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius);
    border: 1px solid #D9D9D9;
}

.lifestage-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

/* Account Section */
.lifestage-card__account {
    background: #9C8577;
    padding: 1rem 1.5rem;
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.account-title {
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.64px;
    margin: 0 0 0.25rem 0;
}

.account-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.checkbox-label {
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem; /* 13px */
    letter-spacing: -0.26px;
    color: #F5F5F5;
    margin: 0;
    cursor: pointer;
}

.form-check-input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #E1E1E1;
    background-color: #E1E1E1;
    cursor: pointer;
    margin: 0;
}

.form-check-input:checked {
    background-color: #666666; /* Grey background */
    border-color: #666666;
    /* Force white tick for consistent look */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M4 8l3 3 6-6'/%3e%3c/svg%3e");
}

/* Strategy Section */
.lifestage-card__strategy {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #E1E1E1;
    border-radius: var(--border-radius);
    border: 1px solid #D9D9D9;
}

/* Strategy Title */
.strategy-title {
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.25;
    color: var(--color-primary);
    margin: 0 0 1rem 0;

}

/* Strategy Selector */

.strategy-selector {
    width: 100%;
    position: relative;
}

/* Strategy Labels */
.strategy-labels {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Reduce gap to match tighter design */
    margin-bottom: 1rem;
    position: relative;
    padding-right: 3rem; /* Make room for slider on the right */
}

.strategy-label {
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    padding-left: 0; /* Remove left padding */
}

.strategy-label.active {
    font-weight: 700;
}

.strategy-label:hover {
    font-weight: 600;
}

/* Custom Slider - right aligned vertical noUi slider */
.strategy-slider {
    position: absolute;
    right: 1.75rem;
    top: 0;
    bottom: 1rem;
    width: 3rem;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.strategy-slider .slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.strategy-slider .noUi-target {
    width: 8px;
    height: 96%;
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 999px;
    box-shadow: none;
}

.strategy-slider .noUi-connects,
.strategy-slider .noUi-connect {
    background: transparent;
    border: none;
}

.strategy-slider .noUi-base,
.strategy-slider .noUi-origin {
    width: 100%;
    height: 100%;
}

.strategy-slider .noUi-handle {
    width: 32px;
    height: 11px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    border: none;
    border-radius: 6px;
    box-shadow: none;
    cursor: pointer;
    bottom: -15px;
}

.strategy-slider .noUi-handle:before,
.strategy-slider .noUi-handle:after {
    display: none;
}

.strategy-slider .noUi-touch-area {
    width: 100%;
    height: 100%;
    background: transparent;
}

/* Hide Default Range Input - completely hidden, no interaction */
.strategy-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}


/* Responsive Design */
@media (max-width: 991px) {
    /* On tablets, show 2 columns */
    .lifestages-container .col-lg-4 {
        max-width: 50%;
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    /* On mobile, stack vertically as per Figma mobile design */
    .lifestages-container .col-md-6 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .lifestages-description {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    /* Adjust card spacing on mobile */
    .lifestage-card__account {
        padding: 0.75rem 1rem;
    }
    
    .account-title {
        font-size: 1.75rem;
    }
    
    .lifestage-card__strategy {
        padding: 1rem;
    }
    
}

@media (max-width: 480px) {
    .account-title {
        font-size: 1.5rem;
    }

    .strategy-labels {
        gap: 0.3rem; /*gap between gertical slider*/
    }
    
    .strategy-label {
        font-size: 0.9rem;
        line-height: 1.75rem;
    }
}

/* Slider Overlay */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 10;
    pointer-events: all;
    cursor: not-allowed;
}
