/* Signup / Register multi-step page styles */
:root {
    --primary-blue: #00416a;
    --border-color: #e1e4e8;
    --text-muted: #a0a6b1;
    --bg-light-blue: #f1f6fb;
    --accent-orange: #f39200;
}

@font-face {
    font-family: 'ExpoArabic';
    src: url('/assets/fonts/ExpoArabic-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'ExpoArabic';
    src: url('/assets/fonts/alfont_com_AlFont_com_ExpoArabic-SemiBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'ExpoArabic';
    src: url('/assets/fonts/ExpoArabic-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

.signup-page,
.signup-page *:not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
    font-family: 'ExpoArabic', 'Cairo', sans-serif;
}

.signup-watermark {
    position: fixed;
    bottom: -100px;
    left: -30px;
    width: 350px;
    height: 350px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    background-image: url(/img/logo.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.signup-container {
    min-height: calc(100vh);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px 20px 20px;
    position: relative;
    z-index: 1;
    max-width: 750px;
    margin: 0 auto;
}

.signup-logo-section {
    text-align: center;
    margin-top: 4px;
    margin-bottom: 4px;
}

/* Steps bar */
.registration-stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #f4f6f9;
    padding: 1.5vh 10px;
    border-bottom: 1px solid #e1e8ef;
    border-top: 1px solid #e1e8ef;
    margin: 0.5vh -20px;
    width: calc(100% + 40px);
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #f4f6f9;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
    position: absolute;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    border-color: var(--primary-blue);
    border-width: 2.5px;
}

.step-item.active .step-circle::after {
    background: var(--primary-blue);
    width: 12px;
    height: 12px;
}

.step-item.completed .step-circle {
    border-color: #0d9488;
    background: #0d9488;
    border-width: 2.5px;
}

.step-item.completed .step-circle::after {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    color: #fff;
    background: transparent;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
}

.step-title {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 700;
    margin-bottom: 2px;
}

.step-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 800;
    white-space: nowrap;
}

.step-item.active .step-title,
.step-item.active .step-label {
    color: var(--primary-blue);
    transform: scale(1.05);
}

.step-item.completed .step-title,
.step-item.completed .step-label {
    color: #0d9488;
}

.step-divider {
    flex-grow: 1;
    border-top: 2px dotted #cbd5e1;
    margin-top: 8px;
    z-index: 1;
    min-width: 15px;
}

/* Forms */
.signup-form-wrapper {
    width: 100%;
    display: none;
    flex-grow: 1;
}

.signup-form-wrapper.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.5vh;
}

.signup-form-header h2 {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 2px;
}

.signup-form-header p {
    font-size: 12px;
    color: #000000;
    margin-bottom: 1vh;
    font-weight: bold;
}

.custom-label {
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 2px;
    text-align: right;
    display: block;
}

.custom-input,
.signup-page .form-select {
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    border: 1.5px solid var(--border-color);
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.custom-input:focus,
.signup-page .form-select:focus {
    border-color: var(--primary-blue) !important;
    outline: none;
    box-shadow: 0 4px 12px rgba(0,65,106,0.1) !important;
}

/* intl-tel-input integration */
.signup-page .iti,
.signup-page .iti-phone-input { width: 100%; }

.signup-page .iti--separate-dial-code .iti__selected-flag {
    border-radius: 8px 0 0 8px;
    background: #fafbfc;
    border-right: 1.5px solid var(--border-color);
    padding: 0 10px;
    height: 100%;
}

.signup-page .iti input[type="tel"],
.signup-page .iti input.iti-phone-input {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    height: 32px;
    font-size: 13px;
    font-weight: bold;
    width: 100%;
    direction: ltr;
    text-align: left;
    outline: none;
    transition: all 0.2s ease-in-out;
    padding: 0 10px;
}

.signup-page .iti input[type="tel"]:focus,
.signup-page .iti input.iti-phone-input:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 4px 12px rgba(0,65,106,0.1) !important;
    transform: translateY(-2px);
}

.upload-area-wrapper {
    background-color: var(--bg-light-blue);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    align-items: center;
    cursor: pointer;
    border: none;
}

.upload-text-content { text-align: right; }

.upload-text-content b {
    font-size: 14px;
    display: block;
    color: var(--primary-blue);
    margin-bottom: 2px;
}

.upload-text-content span {
    font-size: 11px;
    color: #64748b;
}

.upload-action-btn {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 65px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.upload-action-btn span {
    font-size: 10px;
    color: var(--primary-blue);
    font-weight: 800;
    margin-top: 3px;
}

.upload-action-btn i {
    color: var(--primary-blue);
    font-size: 14px;
}

.form-mb { margin-bottom: 0.8vh; }

/* OTP within signup */
.signup-otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 2vh 0;
    direction: ltr;
}

.signup-otp-field {
    width: 50px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 24px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fff;
    outline: none;
}

.signup-otp-field:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0,65,106,0.1);
    transform: translateY(-4px);
}

.btn-signup-submit {
    background-color: var(--primary-blue);
    color: #fff;
    border: none;
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    margin-top: 0.5vh;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-signup-submit:hover {
    background-color: #003058;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,65,106,0.2);
    color: #fff;
}

.pw-wrapper {
    position: relative;
}

    .pw-wrapper .custom-input {
        padding-left: 30px;
    }

    .pw-wrapper .eye-icon {
        position: absolute;
        left: 8px;
        top: calc(50% + 9px);
        transform: translateY(-50%);
        font-size: 13px;
        color: var(--text-muted);
        cursor: pointer;
        transition: all 0.3s;
        background: transparent;
        border: none;
        padding: 0;
        z-index: 2;
    }
.pw-wrapper:focus-within .eye-icon {
    color: var(--primary-blue);
}

.signup-footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 1vh;
    font-weight: 600;
    background-color: white;
}

/* Terms Modal */
.modal-content-custom {
    border-radius: 16px;
    border: none;
    overflow: hidden;
}

.terms-title-main {
    color: var(--primary-blue);
    font-weight: 900;
    font-size: 22px;
    text-align: right;
    margin-bottom: 5px;
}

.terms-subtitle {
    color: #6b7280;
    font-size: 13px;
    text-align: right;
    margin-bottom: 25px;
}

.terms-intro {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 14px;
    text-align: right;
    margin-bottom: 25px;
    line-height: 1.6;
}

.terms-section-title {
    color: var(--primary-blue);
    font-weight: 900;
    font-size: 15px;
    margin-top: 25px;
    margin-bottom: 5px;
}

.terms-hr {
    border-top: 2px solid var(--primary-blue);
    opacity: 1;
    margin: 0 0 10px 0;
}

.terms-text {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 5px;
}

.terms-footer-sec {
    padding-top: 25px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.terms-footer-sec::before {
    content: '';
    position: absolute;
    top: 0;
    left: -48px;
    right: -48px;
    height: 1px;
    background: #e5e7eb;
}

.custom-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 15px;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: transparent;
}

.custom-checkbox i { display: none; color: #fff; font-size: 14px; }

.custom-checkbox.checked { background-color: var(--primary-blue); }
.custom-checkbox.checked i { display: block; }

.checkbox-label { font-size: 14px; font-weight: 800; color: #1f2937; }

.btn-agree {
    background-color: #f3f4f6;
    color: #9ca3af;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 800;
    width: 100%;
    transition: all 0.3s;
    pointer-events: none;
}

.btn-agree.active {
    background-color: var(--primary-blue);
    color: #fff;
    pointer-events: auto;
}

.btn-agree.active:hover { background-color: #003058; }
.otp-validation-error {
    display: block;
    text-align: center;
    color: #dc3545;
    font-size: 13px;
    font-weight: 700;
    margin-top: -6px;
    margin-bottom: 10px;
}
[dir=rtl] .signup-page .iti {
    direction: ltr;
    width: 100%;
}

[dir=rtl] .signup-page .iti--allow-dropdown .iti__flag-container,
[dir=rtl] .signup-page .iti--separate-dial-code .iti__flag-container {
    right: auto;
    left: 0;
}

[dir=rtl] .signup-page .iti input[type="tel"],
[dir=rtl] .signup-page .iti input.iti-phone-input,
[dir=rtl] #signup-phone {
    direction: ltr;
    text-align: left;
    padding-left: 100px !important; /* important part */
    padding-right: 12px !important;
}