﻿:root {
    --color-primary: #09428f;
    --color-secondary: #d71921;
}

body {
    background-color: #f8f9fa;
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.wizard-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    margin-top: 25px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/*.step-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background-color: #e9ecef;
    color: #6c757d;
}*/

.step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Adjust size if icons look cramped */
    height: 50px;
    border-radius: 50%;
    /* Your existing transition/colors */
}

    .step-dot i {
        font-size: 1.2rem; /* Control the icon scale dynamically */
    }

.bg-primary-color {
    background-color: #09428f;
}

.step-dot.active {
    background-color: var(--color-primary);
    color: #fff;
}

.step-dot.completed {
    background-color: var(--color-secondary);
    color: #fff;
}

.step-title {
    font-weight: 600;
    color: #343a40;
}

.service-card {
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 18px 16px;
    cursor: pointer;
    transition: transform .18s ease-in-out, box-shadow .18s ease-in-out, border-color .18s ease-in-out, background-color .18s ease-in-out;
    background: #fff;
    height: 100%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}

    .service-card:hover {
        transform: translateY(-4px) scale(1.02);
        border-color: var(--color-primary);
        box-shadow: 0 10px 22px rgba(9, 66, 143, .18);
    }

    .service-card.selected {
        border-color: var(--color-primary);
        background: #f2f6fb;
        box-shadow: 0 12px 24px rgba(9, 66, 143, .22);
    }

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.thankyou-wrap {
    text-align: center;
    padding: 40px 10px;
}

.service-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform .18s ease-in-out;
}

.service-card:hover .service-img {
    transform: translateY(-2px);
}

/* Form focus/active cleanup and filled checkmark */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: none;
    outline: none;
    border-color: var(--color-primary);
}

.form-control,
.form-select,
.form-check-input {
    box-shadow: none !important;
    outline: none !important;
}

.form-label {
    font-size: 15px;
}

.has-value.form-control,
.has-value.form-select {
    padding-right: 2.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2309428f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .65rem center;
    background-size: 18px 18px;
}

/* Traveler cards */
.traveler-card {
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

    .traveler-card + .traveler-card {
        margin-top: 12px;
    }

    .traveler-card .card-actions {
        text-align: right;
    }

.text-strike {
    text-decoration: line-through;
    color: #6c757d;
}

/* Custom button themes */
.btn-primary-custom {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

    .btn-primary-custom:hover {
        background-color: #073672;
        border-color: #073672;
        color: #fff;
    }

.btn-outline-secondary-custom {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

    .btn-outline-secondary-custom:hover {
        background-color: var(--color-secondary);
        border-color: var(--color-secondary);
        color: #fff;
    }

.select2-container--default .select2-selection--single {
    height: 38px;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 36px;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px;
    }

/* Family Members Styling */
.family-form-container {
    transition: all 0.3s ease;
}

.family-members-section .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .family-members-section .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.remove-family {
    transition: all 0.2s ease;
}

    .remove-family:hover {
        transform: scale(1.1);
    }

#noMembersMessage {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

/* Form elements font size */
.form-control,
.form-select,
.form-check-label {
    font-size: 15px !important;
}

/* Header Styling */
.navbar-brand img {
    border-radius: 4px;
    width: 175px;
}

.navbar-nav .nav-link {
    font-size: 15px;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: var(--color-primary) !important;
    }

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: var(--color-primary);
    }

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/* Offcanvas Navigation Styling */
.offcanvas {
    width: 280px;
}

.offcanvas-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.offcanvas-title {
    color: var(--color-primary);
    font-weight: 600;
}

.offcanvas-body {
    padding: 0;
}

.offcanvas .navbar-nav {
    margin: 0;
    padding: 0;
}

.offcanvas .nav-item {
    border-bottom: 1px solid #f8f9fa;
}

.offcanvas .nav-link {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f8f9fa;
    font-weight: 500;
}

    .offcanvas .nav-link:hover {
        background-color: #f8f9fa;
        color: var(--color-primary) !important;
    }

.offcanvas .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.offcanvas .dropdown-item {
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #6c757d;
}

    .offcanvas .dropdown-item:hover {
        background-color: #e9ecef;
        color: var(--color-primary);
    }

    .offcanvas .dropdown-item:last-child {
        border-bottom: none;
    }


/* Show desktop navigation on larger screens */
@media (min-width: 992px) {
    .offcanvas {
        display: none !important;
    }

    .navbar-toggler {
        display: none !important;
    }
}

/* Ensure offcanvas navigation is visible on mobile */
@media (max-width: 991.98px) {
    .offcanvas .navbar-nav {
        display: block !important;
    }

    .d-lg-block {
        display: none !important;
    }
}

/* Footer positioning - Always stick to bottom */
html,
body {
    height: 100% ;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

footer {
    margin-top: auto;
}




/* Add this to your site.css or app.css file */

/* Validation message styling */
.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
}

/* Default Blazor validation message class */
.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Validation summary styling */
.validation-errors {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #842029;
}

    .validation-errors ul {
        margin-bottom: 0;
        padding-left: 1.5rem;
    }

/* Style invalid Radzen components */
.rz-dropdown.invalid,
.rz-textbox.invalid,
.rz-datepicker.invalid,
.rz-numeric.invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Radzen specific validation styling */
.rz-state-error {
    border-color: #dc3545 !important;
}

/* Form field with error */
.form-field-error .rz-dropdown,
.form-field-error .rz-textbox,
.form-field-error .rz-datepicker,
.form-field-error .rz-numeric {
    border-color: #dc3545;
}

/* Modified FormField wrapper for errors */
.has-error {
    position: relative;
}

    .has-error label {
        color: #dc3545;
    }

/* Validation icon (optional) */
.validation-message::before {
    content: "⚠ ";
    font-weight: bold;
}

/* Success state (optional) */
.field-validation-valid {
    display: none;
}

/* Form is invalid styling */
.invalid .form-label {
    color: #dc3545;
}

/* Validation summary header */
.validation-summary-errors {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

    .validation-summary-errors ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }

    .validation-summary-errors li {
        margin-bottom: 0.5rem;
    }

        .validation-summary-errors li::before {
            content: "• ";
            color: #dc3545;
            font-weight: bold;
        }

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.text-danger {
    color: #dc3545;
}

.family-member-card {
    transition: all 0.3s ease;
}

    .family-member-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
}

.alert-info {
    background-color: #cff4fc;
    border: 1px solid #9eeaf9;
    color: #055160;
}

.payment-gateways-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    min-height: 60px;
}

.pg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

    .pg-badge i {
        font-size: 18px;
        color: #0d6efd;
    }

/* Tablet */
@media (max-width: 768px) {
    .payment-gateways-display {
        gap: 8px;
        padding: 10px;
    }

    .pg-badge {
        padding: 6px 12px;
        font-size: 13px;
    }

        .pg-badge i {
            font-size: 16px;
        }
}

/* Mobile */
@media (max-width: 576px) {
    .payment-gateways-display {
        gap: 6px;
        padding: 8px;
    }

    .pg-badge {
        padding: 5px 10px;
        font-size: 12px;
    }

        .pg-badge i {
            font-size: 14px;
        }
}




@media (max-width: 768px) {
    .stacked-table table, .stacked-table thead, .stacked-table tbody, .stacked-table tr, .stacked-table td {
        display: block;
    }

    .stacked-table tr {
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        overflow: hidden;
    }

    .stacked-table td {
        text-align: right;
        padding: 12px;
        position: relative;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

        .stacked-table td:last-child {
            border-bottom: none;
        }

        .stacked-table td::before {
            content: attr(data-label);
            float: left;
            font-weight: 600;
            color: #666;
        }

    .stacked-table tr:first-child {
        background-color: #e7f3ff;
    }
}


.terms-popup {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.terms-popup-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.error-popup {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.error-popup-header {
    background: #dc3545;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .error-popup-header h5 {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

    .close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.error-popup-body {
    padding: 2rem 1.5rem;
    text-align: center;
}

.error-icon-container {
    margin-bottom: 1rem;
}

.error-icon {
    font-size: 48px;
    color: #dc3545;
}

.error-message {
    margin-bottom: 0.5rem;
    color: #333;
}

.error-code {
    color: #6c757d;
    font-size: 0.9em;
    margin: 0;
}

.error-popup-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

    .btn-secondary:hover {
        background: #5a6268;
    }

.btn-danger {
    background: #dc3545;
    color: white;
}

    .btn-danger:hover {
        background: #c82333;
    }



/* Loader Overlay Styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader-container {
    text-align: center;
    color: white;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loader-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}




/* Darkens the background and centers the modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* The modal box itself */
.terms-popup {
    background: white;
    width: 80%;
    max-width: 800px;
    height: 80vh; /* Keeps the modal from going off-screen */
    display: flex;
    flex-direction: column; /* Stacks header, body, footer vertically */
    border-radius: 8px;
    overflow: hidden; /* Clips children to the border-radius */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Header Styling */
.terms-popup-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
}

    .terms-popup-header h5 {
        margin: 0;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* The magic part: Body grows to fill available space */
.terms-popup-body {
    flex-grow: 1;
    overflow: hidden; /* Prevents double scrollbars */
}

    .terms-popup-body iframe {
        display: block; /* Removes bottom whitespace */
    }

/* Footer Styling */
.terms-popup-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
}


/* Miniature Service Buttons Container and Layout */
.btn-mini-service {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

    /* Miniature Image/Icon sizing */
    .btn-mini-service img {
        width: 18px;
        height: 18px;
        object-fit: contain;
    }

    /* Label Styling */
    .btn-mini-service span {
        font-size: 0.85rem;
        font-weight: 500;
        color: #4a5568;
    }

    /* Hover State */
    .btn-mini-service:hover {
        border-color: #cbd5e1;
        background-color: #f8fafc;
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
    }

    /* Highlighted Active State (e.g., when you are on that actual form page) */
    .btn-mini-service.active {
        background-color: #0d6efd; /* Bootstrap Primary Blue, change to match your brand */
        border-color: #0d6efd;
    }

        .btn-mini-service.active span {
            color: #ffffff;
        }

    /* Optional: Grayscale icon for non-active buttons to keep it clean */
    .btn-mini-service:not(.active) img {
        filter: grayscale(20%);
    }

    .btn-mini-service.active img {
        filter: brightness(0) invert(1); /* Turns icon white if it is simple solid png */
    }




/* Core sizing variables to keep elements dynamically aligned */
:root {
    --dot-size: 44px;
    --dot-size-mobile: 36px;
}

/* Container limits width to prevent excessive stretching */
.journey-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    padding-top: 10px;
}

/* Track line is dynamically centered using calc() and our variable */
.journey-track {
    position: absolute;
    top: calc(var(--dot-size) / 1.5); /* Centers line perfectly regardless of font/label height */
    left: 8%;
    right: 8%;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    z-index: 1;
}

/* GPU-Accelerated Progress Bar */
.journey-progress {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    border-radius: 2px;
    transform-origin: left center; /* Scales outward from the left */
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth hardware-accelerated easing */
    will-change: transform; /* Signals GPU to prepare a dedicated composite layer */
}

.step-indicator {
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.journey-milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

    /* Milestone Dot base styles */
    .journey-milestone .step-dot {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: var(--dot-size);
        height: var(--dot-size);
        border-radius: 50%;
        background-color: #ffffff;
        border: 3px solid #e2e8f0;
        color: #94a3b8;
        font-size: 1.1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
        backface-visibility: hidden; /* Prevents slight mobile jitter during scaling */
    }

    /* Step Labels */
    .journey-milestone .step-label {
        margin-top: 8px;
        font-size: 0.75rem;
        font-weight: 600;
        color: #94a3b8;
        max-width: 90px; /* Prevents text from pushing neighbors */
        word-wrap: break-word;
        transition: color 0.3s ease;
    }

    /* --- STATES (Active / Completed) --- */

    .journey-milestone.active .step-dot {
        border-color: #0d6efd;
        color: #0d6efd;
        transform: scale(1.1); /* Modest scale factor to avoid overlapping adjacent elements */
        box-shadow: 0 0 8px rgba(13, 110, 253, 0.25);
    }

    .journey-milestone.active .step-label {
        color: #0d6efd;
    }

    .journey-milestone.completed .step-dot {
        border-color: #0dcaf0;
        background-color: #0dcaf0;
        color: #ffffff;
    }

    .journey-milestone.completed .step-label {
        color: #475569;
    }

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 576px) {
    .journey-track {
        top: calc(var(--dot-size-mobile) / 2); /* Recenter track for smaller mobile dots */
        left: 10%;
        right: 10%;
    }

    .journey-milestone .step-dot {
        width: var(--dot-size-mobile);
        height: var(--dot-size-mobile);
        font-size: 0.95rem;
        border-width: 2px; /* Thinner border looks cleaner on mobile screens */
    }

    .journey-milestone .step-label {
        font-size: 0.65rem; /* Compact label size to prevent wrap-induced layout shifts */
        margin-top: 6px;
        max-width: 70px;
    }
}

.shadows div {
    padding: 1rem;
    width: 16rem;
    text-align: center;
}


/*#uploadWithDragAndDrop .rz-fileupload-buttonbar .rz-fileupload-choose {
    width: 100%;
    text-align: center;*/
    /* font-size: 16px; */
    /*padding: 100px 0;
}*/


/* Widen the popup container for dual view */
.dual-terms-popup {
    width: 90vw;
    max-width: 1100px;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.header-titles {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .header-titles h5 {
        margin: 0;
    }

    .header-titles .divider {
        color: #ccc;
        font-size: 1.2rem;
    }

/* Flex layout for side-by-side PDFs */
.terms-dual-body {
    display: flex;
    flex: 1;
    gap: 16px;
    padding: 12px;
    overflow: hidden;
}

.terms-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.col-header {
    background-color: #f5f5f5;
    padding: 6px 12px;
    font-weight: bold;
    font-size: 0.85rem;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
}

/* On mobile screens, stack them top/bottom */
@media (max-width: 768px) {
    .terms-dual-body {
        flex-direction: column;
        overflow-y: auto;
    }

    .terms-column {
        min-height: 400px;
    }
}



.mode-toggle {
    position: relative;
    display: flex;
    background: #f1f3f5;
    border-radius: 999px;
    padding: 4px;
    box-shadow: var(--rz-shadow-2, inset 0 1px 2px rgba(0,0,0,0.06));
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.mode-toggle-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(33.333% - 4px);
    background: var(--rz-primary, #2196F3);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.25s ease;
}

    .mode-toggle-slider.is-right {
        transform: translateX(100%);
    }

    .mode-toggle-slider.is-addons {
        transform: translateX(200%);
    }

.mode-toggle-option {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--rz-text-secondary-color, #64748b);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.25s ease;
    white-space: nowrap;
}

    .mode-toggle-option.active {
        color: #fff;
    }

    .mode-toggle-option:hover:not(.active) {
        color: var(--rz-text-color, #0f172a);
    }

@media (max-width: 480px) {
    .mode-toggle {
        max-width: 100%;
    }

    .mode-toggle-option span {
        display: none;
    }

    .mode-toggle-option i {
        font-size: 1.1rem;
    }
}


.otp-popup {
    background: var(--rz-base-100, #fff);
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
}

.otp-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rz-border, #e2e8f0);
}

    .otp-popup-header h5 {
        margin: 0;
        font-size: 1.05rem;
    }

.otp-popup-body {
    padding: 20px;
}

.otp-popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--rz-border, #e2e8f0);
    background: var(--rz-base-200, #f8fafc);
}

.otp-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.otp-box {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border: 1px solid var(--rz-border, #cbd5e1);
    border-radius: 8px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .otp-box:focus {
        border-color: var(--rz-primary, #2196F3);
        box-shadow: 0 0 0 3px rgba(33,150,243,0.15);
    }

@media (max-width: 420px) {
    .otp-popup {
        max-width: 92vw;
    }

    .otp-box {
        width: 38px;
        height: 46px;
        font-size: 1.1rem;
    }
}


