/* ============================================================
   PANEBAL — extra.css
   Adds ONLY the working contact form introduced with the
   PHP/MySQL version. site.css remains the untouched base theme.
   Uses the same design tokens (--gold, --ink, --cream …) and
   logical properties so RTL/LTR both stay correct.
   ============================================================ */

.contact-layout { display: grid; gap: 28px; }

/* ---- Form card (same material as .contact-card, full width) ---- */
.contact-form-card {
    background: var(--white);
    border: 1px solid var(--cream-2);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 44px);
    box-shadow: var(--shadow-sm);
}
.contact-form-title {
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 22px;
}

/* ---- Success / error banners ---- */
.form-alert {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: .96rem;
    border: 1px solid transparent;
}
.form-alert-ok  { background: rgba(40, 150, 90, .10);  border-color: rgba(40, 150, 90, .35);  color: #1f7a4d; }
.form-alert-err { background: rgba(200, 60, 50, .08);  border-color: rgba(200, 60, 50, .35);  color: #b23b32; }

/* ---- Fields ---- */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
.is-rtl .form-label { letter-spacing: 0; }

.contact-form input,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--cream);
    border: 1.5px solid var(--cream-2);
    border-radius: 12px;
    padding: 13px 16px;
    width: 100%;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted-light); }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(201, 161, 74, .15);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

/* Submit aligns to the reading start (right in Arabic, left in English). */
.contact-submit { align-self: flex-start; margin-top: 4px; }

/* ---- Honeypot: present for bots, invisible to humans ---- */
.hp-field {
    position: absolute !important;
    inset-inline-start: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .contact-submit { align-self: stretch; }
}
