/* =========================
   Global Font (الإضافة الوحيدة الأساسية)
========================= */
body {
    font-family: Inter, sans-serif;
}

/* يخلي كل حاجة جوه البوباب تورث الفونت */
.popup-content {
    font-family: inherit;
    color: var(--Brand-Colors-Dark, #060C16);
}

/* Search */
.search-bar {
    background-color: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 50px;
    padding: 10px 8px 10px 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 500px;
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.btn-search {
    background-color: #11223e;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    flex-shrink: 0;
}

    .btn-search:hover {
        background-color: #1a345e;
        color: white;
    }

#search-input {
    border: none;
    flex-grow: 1;
    padding: 0 15px;
    font-size: 16px;
    background: transparent;
}

    #search-input::placeholder {
        font-size: 15px;
        color: rgb(184, 183, 183);
    }

    #search-input:focus, #search-input:active {
        outline: none;
        border: none;
        box-shadow: none;
        outline: none !important;
        box-shadow: none !important;
        -webkit-tap-highlight-color: transparent;
    }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important; /* Forces background to stay white */
    transition: background-color 5000s ease-in-out 0s;
}

@media (max-width: 576px) {
    .search-bar {
        padding: 8px;
        width: 100%;
    }

    .btn-search {
        width: 38px;
        height: 38px;
    }
}



/* =========================
   Overlay
========================= */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-overlay.active {
    display: flex;
}

/* =========================
   Popup Content
========================= */
.popup-content {
    background: #fff;
    padding: 32px;
    width: 400px;
    min-height: 500px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

/* Close Icon */
.popup-close svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Step */
.popup-step {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Step text */
.step-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 19.5px;
    color: #6A7282;
}

/* Title */
.popup-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 39px;
    color: #11223E;
    margin: 0;
}

/* Subtitle */
.popup-subtitle {
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
    color: #6A7282;
    margin: 0;
}

/* Inputs */
.popup-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.custom-input label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #11223E;
}

.custom-input input {
    width: 100%;
    height: 56px;
    padding: 18px 16px;
    border-radius: 8px;
    background: rgba(0,0,0,0.04);
    border: none;
    font-weight: 600;
    font-size: 16px;
    color: #060C16;
}

.custom-input input::placeholder {
    font-weight: 400;
    font-size: 14px;
    color: #AAA;
}

/* Password */
.password-input .input-wrapper input {
    width: 100%;
    height: 56px;
    padding: 18px 40px 18px 16px;
    border-radius: 8px;
    background: rgba(0,0,0,0.04);
    border: none;
    font-weight: 600;
    font-size: 16px;
    color: #060C16;
}

/* OTP */
#step3 .popup-subtitle a {
    color: #060C16;
    text-decoration: underline;
    font-weight: 500;
}

.otp-inputs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
}

.otp-box {
    width: 48px;
    height: 56px;
    border-radius: 8px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #060C16;
}

/* Resend + Timer */
.resend-otp {
    text-align: left;
    color: #060C16;
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
}

.resend-otp.is-locked {
    cursor: not-allowed;
    opacity: 0.55;
    text-decoration: none;
    user-select: none;
}

.otp-timer {
    text-align: center;
    font-size: 11px;
    margin-bottom: 20px;
}

/* Buttons */
.d-flex.justify-content-between {
    width: 100%;
    gap: 10px;
}

.btn-back {
    display: flex;
    height: 54px;
    padding: 0 32px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    border-radius: var(--Border-Radious-Border-Large, 16px);
    border: 1px solid var(--brand-colors-main-10, rgba(17, 34, 62, 0.10));
    background-color: transparent;
}

.btn-primary {
    border-radius: var(--Border-Radious-Border-Large, 16px);
    background: var(--Brand-Colors-Main, #11223E);
    color: #FBFDFF;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    width: 50%;
}

#nextStep1, 
#nextStep2, 
#nextStep3, 
#nextForgot1, 
#nextForgot2, 
#nextForgot3 {
    border-radius: var(--Border-Radious-Border-Large, 16px);
    background: var(--Brand-Colors-Main, #11223E);
    color: #FBFDFF;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    width: 100%;
}

/* OR Divider */
.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--brand-colors-main-10, rgba(17, 34, 62, 0.10));
}

.or-divider span {
    margin: 0 10px;
    color: var(--Neutral-Colors-Input-Hint, #AAA);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

/* Social Buttons — two equal columns (Google | Facebook) */
.social-buttons {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.social-buttons > .google-btn-stack,
.social-buttons > .social-btn {
    flex: 1 1 0;
    min-width: 0;
}

/* Override global .social-btn width:100% so each column is ~50% */
.social-buttons > .social-btn {
    width: auto;
    max-width: 100%;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 52px;
    border-radius: 8px;
    border: 2px solid var(--Neutral-Colors-Input-Stroke, rgba(0, 0, 0, 0.08));
    background: var(--Neutral-Colors-Back-ground, #FBFDFF);
    color: var(--Brand-Colors-Dark, #060C16);
    cursor: pointer;
    transition: 0.3s;
}

.social-btn:hover {
    background: #f5f7fa;
}

/* Google: custom social-btn + invisible official button on top (clicks → popup flow) */
.google-btn-stack {
    position: relative;
    width: 100%;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
}

.google-btn-face {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.google-gsi-layer {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 52px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    z-index: 5;
    cursor: pointer;
}

    .google-gsi-layer > div,
    .google-gsi-layer iframe,
    .google-gsi-layer div[role="button"] {
        width: 100% !important;
        height: 52px !important;
        min-width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px !important;
    }

@media (max-width: 768px) {
    .social-buttons {
        flex-direction: column !important;
        gap: 10px;
    }

        .google-btn-stack,
        .social-buttons > .social-btn {
            width: 100% !important;
            flex: none !important;
        }
}

/* Sign in text */
.signin-text {
    color: var(--Neutral-Colors-Gray, #6A7282);
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    line-height: 19.5px;
}

.signin-text a {
    color: var(--Brand-Colors-Main, #11223E);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

/* Links */
#changeEmail {
    color: var(--Brand-Colors-Main, #11223E);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}
.progress-steps {
    display: flex;
    gap: 6px;
    width: 100%;
    margin-bottom: 10px;
}

.progress-line {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(17, 34, 62, 0.12);
    transition: 0.3s;
}

.progress-line.active {
    background: #11223E;
}