/*
 * Styles for the multi-step registration page (v5 - Definitive)
 */

/* --- Step Management & Layout Switching --- */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    /* REMOVED padding-left/right from here to avoid conflicts */
}
.form-step.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* When step 2 is active, make the form container full-width */
.auth-container.step-2-active .auth-left {
    flex-basis: 100%;
    max-width: 90%;
    transition: all 0.4s ease-in-out;
}
.auth-container.step-2-active .auth-right {
    display: none;
}

/* --- Progress Bar --- */
.progress-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 40px auto;
    width: 50%;
    max-width: 300px;
}
.progress-bar-track, .progress-bar-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    left: 0;
}
.progress-bar-track {
    background-color: #e0e6ed;
    width: 100%;
    z-index: 1;
}
.progress-bar-fill {
    background-color: #0056D2;
    width: 0;
    z-index: 2;
    transition: width 0.4s ease-in-out;
}
.progress-step {
    position: relative;
    z-index: 3;
}
.progress-step .step-circle {
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #e0e6ed;
    color: #adb5bd;
    font-weight: 600;
    text-align: center;
    transition: all 0.4s ease;
}
.progress-step.active .step-circle {
    border-color: #0056D2;
    background-color: #0056D2;
    color: #fff;
}
.progress-step.completed .step-circle {
    border-color: #0056D2;
    background-color: #0056D2;
    color: #fff;
}

/* --- Plan Selection (Step 2) Styling --- */
.plan-selection-header {
    text-align: center;
    margin-bottom: 20px;
}
.plan-selection-header h3 {
    font-size: 26px;
    color: #2E2E2E;
    margin-bottom: 5px;
}
.plan-selection-header p {
    color: #6c757d;
    margin-top: 0;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 4px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.toggle-btn {
    padding: 8px 20px;
    border: none;
    background-color: transparent;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}
.toggle-btn.active {
    background-color: #FFFFFF;
    color: #0056D2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Pricing Slider */
.pricing-slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}
.pricing-slider-wrapper {
    overflow: hidden;
}
.pricing-slider {
    display: none;
    flex-wrap: nowrap;
    gap: 25px;
    padding: 20px 5px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pricing-slider::-webkit-scrollbar {
    display: none;
}
.pricing-slider.active {
    display: flex;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1px solid #e0e6ed;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #0F4C81;
    font-size: 14px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.slider-arrow:hover {
    background-color: #0056D2;
    color: #FFFFFF;
}
.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }

/* Pricing Card */
.pricing-card {
    flex: 0 0 240px;
    background-color: #FFFFFF;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 86, 210, 0.1);
}
.pricing-card.selected {
    border-color: #0056D2;
    box-shadow: 0 8px 25px rgba(0, 86, 210, 0.15);
    transform: translateY(-5px);
}
.pricing-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #2E2E2E;
    margin: 0 0 15px 0;
}
.pricing-card .price {
    font-size: 38px;
    font-weight: 700;
    color: #0056D2;
    margin-bottom: 20px;
}
.pricing-card .price sup {
    font-size: 18px;
    font-weight: 600;
}
.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #555;
    text-align: left;
    flex-grow: 1;
}
.pricing-card .features li {
    margin-bottom: 10px;
}
.pricing-card .features i {
    color: #00B388;
    margin-right: 8px;
}

/* --- Navigation Buttons --- */
.form-navigation {
    display: flex;
    margin-top: 30px;
    padding-bottom: 10px;
}
.form-navigation.step-1-nav {
    justify-content: flex-end;
}
.form-navigation.step-2-nav {
    max-width: 900px;
    margin-left: 40px;
    margin-right: 40px;
    gap: 0;
}
.btn-nav {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-basis: 50%;
    text-align: center;
}
.btn-nav.btn-secondary {
    background-color: #e9ecef;
    color: #333;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.btn-nav.btn-secondary:hover {
    background-color: #ced4da;
}
.btn-nav.btn-primary {
    background-color: #0056D2;
    color: #fff;
    
}
.btn-nav.btn-primary.request {
    background-color: #0056D2;
    color: #fff;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.btn-nav.btn-primary:hover {
    background-color: #0F4C81;
}
.btn-nav.btn-primary:disabled {
    background-color: #a0b3c4;
    cursor: not-allowed;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .progress-bar { width: 60%; }
    .slider-arrow { display: none; }
    .pricing-slider-container { padding: 0 15px; }
    .form-navigation.step-2-nav {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* --- Form Scrolling Rules (FIXED) --- */
.auth-left form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
    /* REMOVED padding-right and margin-right that caused clipping */
}
.progress-bar {
    flex-shrink: 0;
}

/* --- Custom Scrollbar Styling (Add to the end of register.css) --- */

/* Makes scrollbar thin for Firefox */
.auth-left form {
    scrollbar-width: thin;
    scrollbar-color: #ced4da #f7f9fb;
}

/* Styles scrollbar for Chrome, Safari and Opera */
.auth-left form::-webkit-scrollbar {
    width: 6px; /* Width of the entire scrollbar */
}

.auth-left form::-webkit-scrollbar-track {
    background: #f7f9fb; /* Color of the tracking area */
}

.auth-left form::-webkit-scrollbar-thumb {
    background-color: #ced4da; /* Color of the scroll thumb */
    border-radius: 10px; /* Roundness of the scroll thumb */
    border: 2px solid #f7f9fb; /* Creates padding around scroll thumb */
}

/* --- Plan Summary View (Add to end of register.css) --- */
.plan-summary-container {
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s ease-in-out;
    text-align: center;
}
.plan-summary-container .pricing-card {
    margin: 0 auto; /* Center the card */
    cursor: default; /* Not clickable */
    border-color: #0056D2; /* Highlight it as selected */
    max-width: 300px;
    box-shadow: 0 8px 25px rgba(0, 86, 210, 0.15);
}
.plan-summary-container .pricing-card:hover {
    transform: none; /* Disable hover effect */
}
.change-plan-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    color: #0056D2;
    text-decoration: none;
    cursor: pointer;
}
.change-plan-link:hover {
    text-decoration: underline;
}

/* A class to hide the full selector */
.full-plan-selector.hidden {
    display: none;
}