@import url("variables.css");
@import url("layout.css");
@import url("components.css");
@import url("transcript.css");
@import url("animations.css");
@import url("responsive.css");
/* =========================================
   DAVID LEAD FORM POPUP
========================================= */

.leadFormOverlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
    radial-gradient(
        circle at center,
        rgba(49, 78, 96, 0.28),
        rgba(55, 30, 51, 0.90)
    );

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.leadFormOverlay.is-visible {
    display: flex;
}

.leadFormCard {
    position: relative;

    width: min(100%, 470px);

    padding: 36px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 24px;

    background:
    linear-gradient(
        145deg,
        #314E60,
        #371E33
    );

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 50px rgba(132, 64, 118, 0.16);

    color: #ffffff;

    animation: leadFormAppear 0.28s ease;
}

.leadFormCard::before {
    content: "";

    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;

    height: 2px;

    background:
    linear-gradient(
        90deg,
        transparent,
        #C09445,
        transparent
    );
}

.leadFormCard h2 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}
/* =========================================
   VOICE LIMIT REACHED OVERLAY (زر الشات وزر الحجز)
========================================= */

.voiceLimitButtons {
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-top: 8px;
}

.voiceLimitChatBtn,
.voiceLimitBookBtn {
    width: 100%;
    padding: 14px 20px;

    border: none;
    border-radius: 14px;

    font-size: 16px;
    font-weight: 600;
    cursor: pointer;

    transition: transform 0.15s ease, opacity 0.15s ease;
}

.voiceLimitChatBtn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.voiceLimitBookBtn {
    background: linear-gradient(90deg, #C09445, #a97d38);
    color: #ffffff;
}

.voiceLimitChatBtn:hover,
.voiceLimitBookBtn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}
.leadFormCard > p {
    max-width: 360px;

    margin: 0 auto 28px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

#leadForm {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.leadInput {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leadInput label {
    color: rgba(255, 255, 255, 0.9);

    font-size: 13px;
    font-weight: 600;
}

.leadInput input {
    width: 100%;
    height: 52px;

    padding: 0 15px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
    outline: none;

    background: rgba(255, 255, 255, 0.06);

    color: #ffffff;

    font-family: inherit;
    font-size: 15px;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.leadInput input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.leadInput input:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.leadInput input:focus {
    border-color: #C09445;

    background: rgba(255, 255, 255, 0.085);

    box-shadow:
    0 0 0 4px rgba(192, 148, 69, 0.25);
}

.leadInput input.input-error {
    border-color: #ff6b7a;

    box-shadow:
        0 0 0 4px rgba(255, 107, 122, 0.1);
}

#leadEmailError,
.leadFormGeneralError {
    display: none;

    color: #ff8d98;

    font-size: 12px;
    line-height: 1.5;
}

#leadEmailError.is-visible,
.leadFormGeneralError.is-visible {
    display: block;
}

.leadFormGeneralError {
    margin: -4px 0 0;

    padding: 10px 12px;

    border: 1px solid rgba(255, 107, 122, 0.25);
    border-radius: 10px;

    background: rgba(255, 107, 122, 0.08);

    text-align: center;
}

#leadContinueBtn {
    position: relative;

    width: 100%;
    min-height: 54px;

    margin-top: 4px;
    padding: 13px 18px;

    border: 0;
    border-radius: 13px;

    background:
    linear-gradient(
        135deg,
        #C09445,
        #8F6A2D
    );

    color: #ffffff;

    cursor: pointer;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;

    box-shadow:
    0 12px 30px rgba(192, 148, 69, 0.35);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

#leadContinueBtn:hover:not(:disabled) {
    transform: translateY(-2px);

    box-shadow:
    0 17px 38px rgba(192, 148, 69, 0.45);
}

#leadContinueBtn:active:not(:disabled) {
    transform: translateY(0);
}

#leadContinueBtn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.leadButtonContent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.leadButtonSpinner {
    width: 17px;
    height: 17px;

    border: 2px solid rgba(255, 255, 255, 0.32);
    border-top-color: #ffffff;
    border-radius: 50%;

    animation: leadButtonSpin 0.75s linear infinite;
}

body.lead-form-open {
    overflow: hidden;
}

@keyframes leadFormAppear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes leadButtonSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .leadFormOverlay {
        padding: 14px;
    }

    .leadFormCard {
        padding: 27px 20px;
        border-radius: 19px;
    }

    .leadFormCard h2 {
        font-size: 25px;
    }

    .leadInput input {
        height: 50px;
    }
}
/* ===========================
   LEAD FORM CLOSE BUTTON
=========================== */

.leadFormClose {
    position: absolute;

    top: 14px;
    right: 16px;

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 50%;

    background: transparent;

    color: rgba(255,255,255,.75);

    font-size: 26px;
    line-height: 36px;

    cursor: pointer;

    transition: .25s;
}

.leadFormClose:hover{

    background:rgba(255,255,255,.08);

    color:#C09445;

    transform:rotate(90deg);

}