/* أنماط البوابة (.gateway*) حُذفت 2026-07-13 مع البوابة نفسها — لم يعد
   للموقع شاشة دخول. هذا الملف لنموذج الموعد فقط. */

/* ─── Appointment Modal ───────────────────────────────────────────────────── */

.appt-overlay {
    position: fixed;
    inset: 0;
    /* Must stay above #booking-scene (z-index 10600, src/ui/bookingScene.js) —
       its own CTAs open this modal, so it has to render on top of it. */
    z-index: 10700;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(2, 0, 10, 0.78), rgba(2, 0, 10, 0.78)),
        url('../../assets/textures/Panorama.jpg') center / cover no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.appt-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── Language bar ─────────────────────────────────────────────────────── */

.appt-lang-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.15rem;
    padding: 0.7rem 1rem 0;
}

.appt-lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    padding: 0.3rem 0.45rem;
    transition: color 0.18s;
    line-height: 1;
}
.appt-lang-btn:hover  { color: rgba(255, 255, 255, 0.6); }
.appt-lang-btn.active { color: rgba(111, 60, 255, 0.95); }

.appt-lang-sep {
    color: rgba(255, 255, 255, 0.1);
    font-size: 0.55rem;
    pointer-events: none;
    user-select: none;
}

/* ── Close button ─────────────────────────────────────────────────────── */

.appt-card__close {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.4rem;
    transition: color 0.2s;
    z-index: 10;
    line-height: 1;
}
.appt-card__close:hover { color: rgba(255, 255, 255, 0.75); }

/* ── Card — centered glass panel ──────────────────────────────────────── */

.appt-card {
    width: min(90vw, 480px);
    background: rgba(5, 2, 14, 0.72);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top-color: rgba(111, 60, 255, 0.4);
    border-radius: 3px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* thin glow on top edge */
.appt-card::before {
    content: '';
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(111, 60, 255, 0.9), transparent);
    pointer-events: none;
}

/* ── Form body ────────────────────────────────────────────────────────── */

.appt-body {
    padding: 2.2rem 2rem 2rem;
}

/* header inside the card */
.appt-body__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Tajawal', sans-serif;
    letter-spacing: 0.1em;
    margin: 0 0 1.6rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.appt-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appt-contact-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.7rem;
    align-items: end;
}

/* ── Fields ───────────────────────────────────────────────────────────── */

.appt-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.appt-field label {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.38);
    font-family: 'Tajawal', sans-serif;
    text-transform: uppercase;
}

.appt-field input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Tajawal', sans-serif;
    padding: 0.6rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.22s, background 0.22s;
}
.appt-field input:focus {
    border-color: rgba(111, 60, 255, 0.65);
    background: rgba(111, 60, 255, 0.07);
}
.appt-field input::placeholder { color: rgba(255, 255, 255, 0.18); }

.appt-or {
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Tajawal', sans-serif;
    padding-bottom: 0.65rem;
    text-align: center;
    white-space: nowrap;
}

/* honeypot */
.appt-pot { display: none !important; }

.appt-turnstile {
    display: flex;
    justify-content: center;
    margin-top: 0.2rem;
}

.appt-error {
    font-size: 0.74rem;
    color: rgba(255, 88, 88, 0.9);
    font-family: 'Tajawal', sans-serif;
    min-height: 1.1em;
    text-align: center;
}

.appt-submit {
    padding: 0.85rem;
    background: rgba(111, 60, 255, 0.18);
    border: 1px solid rgba(111, 60, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.22s, border-color 0.22s;
    margin-top: 0.2rem;
}
.appt-submit:not(:disabled):hover {
    background: rgba(111, 60, 255, 0.35);
    border-color: rgba(111, 60, 255, 0.75);
}
.appt-submit:not(:disabled):active { opacity: 0.85; }
.appt-submit:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Success ──────────────────────────────────────────────────────────── */

.appt-success {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    padding: 2.5rem 0;
}
.appt-success:not([hidden]) { display: flex; }

.appt-success__icon {
    font-size: 2rem;
    color: rgba(111, 60, 255, 0.65);
    line-height: 1;
    margin: 0;
}

.appt-success__text {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Tajawal', sans-serif;
    letter-spacing: 0.07em;
    margin: 0;
}

.appt-success__sub {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Tajawal', sans-serif;
    margin: 0;
}

/* ── Mobile ───────────────────────────────────────────────────────────── */

@media (max-width: 520px) {
    .appt-card { width: 92vw; }
    .appt-body { padding: 1.6rem 1.4rem; }
    .appt-contact-row { grid-template-columns: 1fr; gap: 1rem; }
    .appt-or { display: none; }
    .appt-card__close { top: 1rem; right: 1rem; }
}
