/* --- Step Management & Layout --- */
.auth-left {
    /* This ensures the left panel can grow and doesn't cut off content */
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 85vh; /* Set a max height relative to the viewport */
}

.form-step {
    /* This makes the form content itself scrollable if it's too long */
    overflow-y: auto;
    padding-right: 15px; /* Add some space for the scrollbar */
}
.form-step { 
    display: none; 
    animation: fadeIn 0.5s ease-in-out; 
}
.form-step.active { 
    display: block; 
}
@keyframes fadeIn { 
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    } to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}
.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 { 
    display: flex; 
    justify-content: space-between; 
    margin: 0 auto 40px auto; 
    max-width: 400px; 
    position: relative; 
}
.progress-bar .step-label { 
    font-size: 12px; 
    text-align: center; 
    margin-top: 5px; 
    color: #6c757d; 
}
.progress-bar-track { 
    position: absolute; 
    top: 17px; 
    left: 12.5%; 
    width: 75%; 
    height: 4px; 
    background-color: #e0e6ed; 
    z-index: 1; 
}
.progress-bar-fill { 
    height: 100%; 
    background-color: #0056D2; 
    transition: width 0.4s ease; 
}
.progress-step { 
    position: relative; 
    z-index: 2; 
    width: 80px; 
    text-align:center; 
}
.step-circle { 
    width: 35px; 
    height: 35px; 
    line-height: 35px; 
    border-radius: 50%; 
    background: #fff; 
    border: 2px solid #e0e6ed; 
    color: #adb5bd; 
    margin: 0 auto; 
    transition: all 0.4s ease; 
}
.progress-step.completed .step-circle { 
    border-color: #0056D2; 
    background: #0056D2; 
    color: #fff; 
}
.progress-step.completed .step-label { 
    color: #2E2E2E; 
    font-weight: 500; 
}

/* --- Plan Selection (from your register.css) --- */
.plan-selection-header { 
    text-align: center; 
    margin-bottom: 20px; 
}
.plan-selection-header h3 { 
    font-size: 26px; 
    color: #2E2E2E; 
}
.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; 
}
.toggle-btn.active { 
    background-color: #FFFFFF; 
    color: #0056D2; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}
.pricing-slider-container { 
    position: relative; 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 0 50px; 
}
.pricing-slider-wrapper { 
    overflow: hidden; 
}
.pricing-slider { 
    display: none; 
    flex-wrap: nowrap; 
    gap: 25px; 
    padding: 20px 5px; 
    overflow-x: auto; 
    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; 
    cursor: pointer; 
    z-index: 10; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.slider-arrow.prev { 
    left: 0; 
}
.slider-arrow.next { 
    right: 0; 
}
.pricing-card { 
    flex: 0 0 240px; 
    background-color: #FFFFFF; 
    border: 2px solid #e0e6ed; 
    border-radius: 12px; 
    padding: 25px; 
    text-align: center; 
    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; 
}
.pricing-card .features { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    font-size: 14px; 
    color: #555; 
    text-align: left; 
}
.pricing-card .features li { 
    margin-bottom: 10px; 
}
.pricing-card .features i { 
    color: #00B388; 
    margin-right: 8px; 
}

/* --- Payment & Summary Steps --- */
.payment-step .payment-summary { 
    text-align: center;
    margin-bottom: 20px; 
}
.payment-step .price { 
    font-size: 24px; 
    font-weight: 700; 
    color: #0056D2; 
}
.payment-options { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    margin-bottom: 30px; 
}
.payment-option { 
    border: 2px solid #e0e6ed; 
    border-radius: 8px; 
    padding: 20px; 
    width: 150px; 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.2s ease; 
}
.payment-option:hover, .payment-option.active { 
    border-color: #0056D2; 
    color: #0056D2; 
    box-shadow: 0 4px 15px rgba(0, 86, 210, 0.1); 
}
.payment-option i { 
    font-size: 32px; 
    margin-bottom: 10px; 
    display: block; 
}
.payment-details { 
    border-top: 1px solid #e0e6ed; 
    padding-top: 20px; 
}
.payment-details.hidden { 
    display: none; 
}
.summary-details p { 
    font-size: 16px; 
    border-bottom: 1px solid #eee; 
    padding: 10px 0; 
    display: flex; 
    justify-content: space-between; 
}
.summary-details strong { 
    color: #555; 
}
.summary-details span { 
    color: #2E2E2E; 
    font-weight: 500; 
    text-align: right; 
}
.bank-cards-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 15px; 
    margin-bottom: 20px; 
}
.bank-detail-card-user { 
    background: #f7f9fb; 
    padding: 15px; 
    border-radius: 8px; 
    border: 1px solid #e0e6ed; 
}
.bank-detail-card-user .bank-name { 
    font-weight: bold; 
    color: #0F4C81; 
}
.bank-detail-card-user .detail-item { 
    font-size: 13px; 
    margin-top: 5px; 
}
.bank-detail-card-user .detail-item strong { 
    color: #555; 
    display: inline-block; 
    width: 80px; 
}

/* --- Navigation Buttons --- */
/* .form-navigation { display: flex; margin-top: 30px; gap: 15px; } */
.form-navigation {
    display: flex;
    justify-content: space-between; /* Pushes Back to left, Next to right */
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.form-navigation.step-1-nav { 
    justify-content: flex-end; 
}
/* .btn-nav { padding: 12px 25px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; flex-grow: 1; text-decoration: none; text-align: center; display: block; } */
.btn-nav {
    padding: 12px 20px; /* Adjusted padding slightly */
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 180px; /* ✅ Added fixed width */
    text-decoration: none;
    text-align: center;
    display: inline-block; /* Changed for better alignment */
    line-height: 1.5; /* Ensures text is centered vertically */
}

.btn-nav.btn-secondary { 
    background-color: #e9ecef; 
    color: #333; 
}
.btn-nav.btn-secondary:hover { 
    background-color: #ced4da; 
}
.btn-nav.btn-primary { 
    background-color: #0056D2; 
    color: #fff; 
}
.btn-nav.btn-primary:hover { 
    background-color: #0F4C81; 
}
.btn-nav.btn-primary:disabled { 
    background-color: #a0b3c4; 
    cursor: not-allowed; 
}

/* --- Phone Input (from your register.css) --- */
.phone-input-group { 
    display: flex; 
    align-items: center; 
    border: 1px solid #ced4da; 
    border-radius: 8px; 
    background-color: #fff; 
    transition: all 0.2s ease; 
    margin-bottom: 20px; 
}
.phone-input-group:focus-within { 
    border-color: #0056D2; 
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.15); 
}
.phone-input-group .country-selector { 
    border: none; 
    background-color: #e9ecef; 
    padding: 0 10px; 
    height: 48px; 
    font-weight: 600; 
    border-top-left-radius: 7px; 
    border-bottom-left-radius: 7px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.phone-input-group .country-selector select { 
    appearance: none; 
    -webkit-appearance: none; 
    -moz-appearance: none; 
    background: transparent; 
    border: none; 
    padding-right: 5px; 
    font-size: 14px; 
    cursor: pointer; 
}
.phone-input-group .country-selector select:focus { 
    outline: none; 
}
.phone-input-group input[type="tel"] { 
    border: none; 
    flex-grow: 2; 
    padding-left: 15px; 
    background-color: transparent; 
    height: 48px; 
}
.phone-input-group input[type="tel"]:focus { 
    outline: none; 
}
.phone-input-group .country-selector .fi { 
    font-size: 1.2rem; 
    border-radius: 3px; 
}

/* --- NEW Validation Error Styling --- */
.error-message {
    color: #dc3545;
    font-size: 0.875em;
    font-weight: 500;
    display: block;
    margin-top: -10px;
    margin-bottom: 15px;
    text-align: left;
}

/* Style for invalid input fields */
input.is-invalid,
.phone-input-group.is-invalid {
    border-color: #dc3545 !important;
}

input.is-invalid:focus,
.phone-input-group.is-invalid:focus-within {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

/* ADD THESE STYLES TO THE END OF YOUR register-v2.css FILE */

/* --- Styles for Plan Selection Enhancement --- */
.selected-plan-display {
    border-width: 2px;
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
    margin: 1rem auto;
    max-width: 350px;
    cursor: default; /* It's a display, not a button */
}

.selected-plan-display:hover {
    transform: none; /* Disable the hover effect */
}

.change-plan-link {
    display: block;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.change-plan-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   ✅ NEW REGISTER PAGE STYLE ENHANCEMENTS (CSS-ONLY)
   ========================================================================== */

/* --- STEP 2: PLAN SELECTION BUTTONS --- */
/* Makes Back and Next buttons evenly sized and spaced */
#step-2-form .form-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Create two equal columns */
    gap: 15px;
}

#step-2-form .form-navigation .btn-nav {
    width: 90%; /* Make buttons fill their column */
}


/* --- STEP 3: PAYMENT SECTION --- */
/* Center align the text content for both payment forms */
#bank-transfer-form,
#card-payment-form {
    text-align: center;
}

/* Style the file upload section */
#bank-transfer-form .form-group {
    margin: 25px auto; /* Adds top/bottom margin and centers the block */
    max-width: 400px; /* Constrains width for better aesthetics */
}

/* Style the file input button itself (as much as possible with pure CSS) */
#bank-transfer-form input[type="file"] {
    display: block; /* Makes it a block element to accept margin */
    width: 100%;
    margin: 10px 0;
    padding: 15px;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    background-color: #f7f9fb;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

#bank-transfer-form input[type="file"]:hover {
    border-color: #0056D2;
    background-color: #f0f5ff;
}

/* Make action buttons in step 3 full width */
#bank-transfer-form .btn-primary,
#card-payment-form .btn-primary {
    width: 95%;
    margin-bottom: 15px;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Make the separate "Back" button in step 3 full width */
.payment-step > .form-navigation {
    /* Targets the final back button container specifically in step 3 */
    width: 100%;
    padding: 0;
}

.payment-step > .form-navigation .btn-nav {
    width: 100%;
}


/* --- STEP 4: SUMMARY SECTION --- */
/* Creates a professional two-column layout for summary details */
.summary-details {
    background-color: #f7f9fb;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 10px 25px 20px 25px;
}

.summary-details p {
    /* The <p> is already a flex container, we just adjust its children */
    gap: 20px;
    padding: 15px 0;
    margin: 0;
    font-size: 15px;
}

.summary-details p:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.summary-details strong {
    flex-basis: 40%; /* Assigns a fixed base width to the label */
    font-weight: 500;
    color: #6c757d;
    text-align: left;
}

.summary-details span {
    flex-grow: 1; /* Allows the value to take up the remaining space */
    font-weight: 600;
    color: #2E2E2E;
    text-align: right;
}

.summary-details span.status-badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 13px;
    flex-grow: 0; /* Prevents the badge from growing */
    flex-shrink: 0;
}