/* ==========================================================
   registration.css  —  v5.0.0
   Scoped to: CustomerSignup.cshtml
   Written for the actual HTML class names in use:
   .modal-container, .registration-card, .input-group,
   .phone-group, .password-wrapper, .toggle-password,
   .row, .close-btn, .register-btn, .terms-notice,
   .checkbox-group
   Layout centering handled by Tailwind (output.css).
   ========================================================== */


/* ==========================================================
   CARD SHELL
   ========================================================== */
.modal-container {
    width: 100%;
}

.registration-card {
    position: relative;
    border-radius: 16px;
    background: rgba(38, 38, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 24px;
}

@media (min-width: 768px) {
    .registration-card {
        padding: 32px 28px;
    }
}

.registration-card h1 {
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    margin-bottom: 24px;
}


/* ==========================================================
   CLOSE BUTTON
   ========================================================== */
.close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

    .close-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }


/* ==========================================================
   FORM INPUTS & SELECTS
   ========================================================== */
.input-group {
    margin-bottom: 12px;
    position: relative;
}

    .input-group input,
    .input-group select {
        width: 100%;
        padding: 12px 14px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        color: #fff;
        font-family: var(--font-main);
        font-size: 14px;
        outline: none;
        transition: border-color 0.3s ease;
    }

        .input-group input:focus,
        .input-group select:focus {
            border-color: var(--primary-color);
        }

        .input-group input::placeholder {
            color: rgba(255, 255, 255, 0.3);
        }

    /* Select — hide default arrow, add custom */
    .input-group select {
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
    }

        .input-group select option {
            background-color: #2c2c2c;
            color: #fff;
        }

/* Dropdown arrow on gender (first .input-group inside .row) */
.row .input-group:first-child::after {
    content: '\25BC';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    font-size: 10px;
}

/* Date picker tint */
.input-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.4);
    cursor: pointer;
}


/* ==========================================================
   GENDER + BIRTHDATE ROW
   ========================================================== */
.reg-row {
    display: flex;
    gap: 15px; /* Adds space between Gender and Date */
    width: 100%;
}

.reg-col {
    flex: 1; /* Both columns will take up exactly 50% of the row */
    min-width: 0; /* Prevents the columns from overflowing if content is too wide */
}

.login-input {
    width: 100%; /* Ensures the inputs fill the column */
    box-sizing: border-box; /* Ensures padding doesn't push the element outside its column */
}

/* ==========================================================
   PHONE FIELD
   ========================================================== */
.phone-group {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: border-color 0.3s ease;
    /* Override .input-group default border on the wrapper */
    padding: 0;
    cursor: text;
}

    .phone-group:focus-within {
        border-color: var(--primary-color);
    }

    /* Remove double border and inner outline — the group itself is the border */
    .phone-group input,
    .reg-phone-input {
        border: none !important;
        outline: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 12px 14px 12px 8px !important;
        color: #fff;
        font-family: var(--font-main);
        font-size: 14px;
        flex: 1;
        width: 100%;
    }

        .phone-group input:focus,
        .phone-group input:focus-visible,
        .reg-phone-input:focus,
        .reg-phone-input:focus-visible {
            border: none !important;
            border-color: transparent !important;
            outline: none !important;
            outline-offset: 0 !important;
            box-shadow: none !important;
        }

        .phone-group input::placeholder,
        .reg-phone-input::placeholder {
            color: rgba(255, 255, 255, 0.3);
        }

.country-code {
    padding: 12px 0 12px 14px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-main);
    font-size: 14px;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}


/* ==========================================================
   PASSWORD WRAPPER
   ========================================================== */
.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        padding-right: 44px !important;
    }

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 17px;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s ease;
    user-select: none;
}

    .toggle-password:hover {
        color: var(--primary-color);
    }


/* ==========================================================
   TERMS NOTICE & CHECKBOX
   ========================================================== */
.terms-notice {
    font-family: var(--font-secondary);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    margin: 8px 0 12px;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

    .checkbox-group input[type="checkbox"] {
        width: 16px;
        height: 16px;
        accent-color: var(--primary-color);
        cursor: pointer;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .checkbox-group label {
        font-family: var(--font-secondary);
        font-size: 13px;
        color: rgba(255, 255, 255, 0.45);
        line-height: 1.5;
        cursor: pointer;
        user-select: none;
    }

    .checkbox-group a {
        color: #fff;
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color 0.2s ease;
    }

        .checkbox-group a:hover {
            color: var(--primary-color);
        }


/* ==========================================================
   REGISTER BUTTON
   ========================================================== */
.register-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary-color);
    color: #fff;
    transition: opacity 0.3s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .register-btn:hover {
        opacity: 0.9;
    }

    .register-btn:active {
        transform: scale(0.98);
    }

    .register-btn:disabled {
        background: rgba(211, 69, 2, 0.3);
        color: rgba(255, 255, 255, 0.3);
        cursor: not-allowed;
        transform: none;
    }


/* ==========================================================
   TERMS & CONDITIONS MODAL
   ========================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px;
    overflow-y: auto;
}

    .modal[style*="flex"] {
        display: flex;
    }

.modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 660px;
    max-height: 80vh;
    border-radius: 12px;
    padding: 32px;
    position: relative;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    margin: auto;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    background: none;
    border: none;
    transition: color 0.2s ease;
    z-index: 10;
}

    .close-button:hover {
        color: #333;
    }

.terms-text-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 16px;
    text-align: left;
    font-family: var(--font-secondary);
}

    .terms-text-container h1 {
        font-family: var(--font-main);
        font-size: 17px;
        color: #111;
        font-weight: 700;
        margin: 24px 0 10px;
        padding-bottom: 10px;
        padding-right: 36px;
        border-bottom: 1px solid #eaeaea;
        text-align: left;
    }

        .terms-text-container h1:first-child {
            margin-top: 0;
        }

    .terms-text-container h2 {
        font-family: var(--font-main);
        font-size: 13px;
        color: #1a1a1a;
        font-weight: 600;
        margin: 18px 0 6px;
    }

    .terms-text-container p {
        font-size: 13px;
        line-height: 1.7;
        color: #4a4a4a;
        margin-bottom: 12px;
    }

    .terms-text-container a {
        color: #d34502;
        text-decoration: underline;
    }

    .terms-text-container::-webkit-scrollbar {
        width: 5px;
    }

    .terms-text-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 8px;
    }

    .terms-text-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 8px;
    }

        .terms-text-container::-webkit-scrollbar-thumb:hover {
            background: #999;
        }


/* ==========================================================
   TERMS & CONDITIONS MODAL  —  dark admin style
   Replaces old .modal / .modal-content / .terms-text-container
   ========================================================== */

.tc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
}

    .tc-modal[style*="flex"] {
        display: flex;
    }

.tc-modal__box {
    background: var(--dark-bg-hero, #242424);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    width: 100%;
    max-width: 660px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: tcModalSlideUp 0.25s ease;
    margin: auto;
}

@keyframes tcModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.tc-modal__title {
    font-family: var(--font-main);
    font-size: var(--fs-body, 16px);
    font-weight: var(--fw-semibold, 600);
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

    .tc-modal__title i {
        font-size: 20px;
        color: var(--primary-color, #d34502);
    }

.tc-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

    .tc-modal__close:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
    }

.tc-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 24px;
}

    .tc-modal__body h1 {
        font-family: var(--font-main);
        font-size: 13px;
        font-weight: var(--fw-semibold, 600);
        color: var(--primary-color, #d34502);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin: 22px 0 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

        .tc-modal__body h1:first-child {
            margin-top: 0;
        }

    .tc-modal__body h2 {
        font-family: var(--font-main);
        font-size: var(--fs-small, 14px);
        font-weight: var(--fw-semibold, 600);
        color: rgba(255, 255, 255, 0.85);
        margin: 16px 0 5px;
    }

    .tc-modal__body p {
        font-family: var(--font-secondary);
        font-size: 13px;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 10px;
    }

    .tc-modal__body strong {
        color: rgba(255, 255, 255, 0.8);
        font-weight: var(--fw-semibold, 600);
    }

    .tc-modal__body a {
        color: var(--primary-color, #d34502);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        .tc-modal__body a:hover {
            opacity: 0.8;
        }

    .tc-modal__body::-webkit-scrollbar {
        width: 5px;
    }

    .tc-modal__body::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.03);
        border-radius: 8px;
    }

    .tc-modal__body::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.12);
        border-radius: 8px;
    }

        .tc-modal__body::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.22);
        }
