/* ===========================================================
   ARIANA RESTAURANT — Booking Landing Page
   Palette pulled from ariana.restaurant
   =========================================================== */

:root {
    --gold:           #c19d56;
    --gold-light:     #e6b15f;
    --gold-soft:      #d4b073;
    --gold-deep:      #a88548;
    --teal-deep:      #0e221f;
    --teal:           #152c29;
    --teal-light:     #18312e;
    --teal-accent:    #1e3d39;
    --ivory:          #f6efe2;
    --text:           #d9d3c4;
    --text-mute:      #9a9183;
    --line:           rgba(193, 157, 86, 0.25);
    --line-strong:    rgba(193, 157, 86, 0.55);
    --shadow:         0 20px 60px rgba(0, 0, 0, 0.35);

    --serif:          'Fraunces', 'Times New Roman', serif;
    --sans:           'Urbanist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --persian:        'Vazirmatn', 'Noto Naskh Arabic', 'Urbanist', sans-serif;
    --arabic:         'Noto Naskh Arabic', 'Vazirmatn', 'Urbanist', sans-serif;

    --radius:         18px;
    --radius-sm:      12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
    background: var(--teal-deep);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--sans);
    color: var(--text);
    line-height: 1.55;
    background:
        radial-gradient(1200px 700px at 50% -10%, rgba(193, 157, 86, 0.12), transparent 60%),
        radial-gradient(900px 500px at 90% 90%, rgba(193, 157, 86, 0.08), transparent 60%),
        linear-gradient(180deg, var(--teal-deep) 0%, var(--teal) 40%, var(--teal-deep) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

html[dir="rtl"] body { font-family: var(--persian); }
html[dir="rtl"] .booking-form,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select { font-family: var(--persian); }

html[lang="ar"] body,
html[lang="ar"] .booking-form,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select { font-family: var(--arabic); }

html[lang="ps"] body,
html[lang="ps"] .booking-form,
html[lang="ps"] input,
html[lang="ps"] textarea,
html[lang="ps"] select { font-family: var(--persian); }

/* ===== Background ornaments ===== */
.bg-ornaments {
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    overflow: hidden;
}
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.5;
}
.orb-1 { width: 480px; height: 480px; top: -120px; left: -120px; background: rgba(193, 157, 86, 0.18); }
.orb-2 { width: 540px; height: 540px; bottom: -180px; right: -160px; background: rgba(193, 157, 86, 0.12); }
.orb-3 { width: 300px; height: 300px; top: 40%; left: 50%; transform: translateX(-50%); background: rgba(230, 177, 95, 0.08); }

/* ===== Layout ===== */
.page {
    position: relative; z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 22px 80px;
}

/* ===== Language switch ===== */
.lang-switch {
    position: fixed;
    top: 14px; right: 14px;
    z-index: 50;
    display: inline-flex; align-items: center; gap: 2px;
    background: rgba(14, 34, 31, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    max-width: calc(100vw - 28px);
}
html[dir="rtl"] .lang-switch { right: auto; left: 14px; }
.lang-btn {
    background: none; border: 0; color: var(--text-mute);
    font-family: var(--serif); font-size: 13px; font-weight: 500;
    padding: 5px 10px; cursor: pointer; border-radius: 999px;
    transition: color .2s ease, background .2s ease;
    letter-spacing: 0.03em;
    min-width: 32px;
    line-height: 1.2;
}
.lang-btn[data-lang="fa"],
.lang-btn[data-lang="ar"],
.lang-btn[data-lang="ps"] {
    font-family: var(--persian);
    letter-spacing: 0;
    font-size: 13px;
}
.lang-btn.active { color: var(--gold-light); background: rgba(193, 157, 86, 0.18); }
.lang-btn:hover { color: var(--gold-light); }

@media (max-width: 400px) {
    .lang-btn { padding: 4px 7px; font-size: 12px; min-width: 28px; }
}

/* ===== Hero ===== */
.hero { padding: 36px 0 22px; text-align: center; }
.hero-frame {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 22px 28px;
    background: linear-gradient(180deg, rgba(24, 49, 46, 0.6), rgba(14, 34, 31, 0.4));
    box-shadow: var(--shadow);
}
.ornament-top, .ornament-bottom {
    color: var(--gold);
    height: 14px; opacity: 0.7;
    margin: -6px auto 12px;
}
.ornament-bottom { margin: 12px auto -6px; }
.ornament-top svg, .ornament-bottom svg { width: 70%; height: 100%; display: block; margin: 0 auto; }

.logo {
    width: min(150px, 38vw);
    height: auto;
    display: block; margin: 0 auto;
    filter: drop-shadow(0 6px 24px rgba(193, 157, 86, 0.25));
    animation: fadeUp 0.8s ease both;
}

.tagline {
    font-family: var(--serif);
    font-size: clamp(15px, 4.2vw, 18px);
    font-style: italic;
    color: var(--gold-light);
    margin: 14px 0 0;
    letter-spacing: 0.01em;
    animation: fadeUp 1s 0.15s ease both;
}
html[dir="rtl"] .tagline { font-family: var(--persian); font-style: normal; }

.hero-meta {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; flex-wrap: wrap;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-mute);
    animation: fadeUp 1s 0.3s ease both;
}
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item svg { width: 14px; height: 14px; color: var(--gold); }
.meta-dot { color: var(--gold); }

/* ===== Section title ===== */
.section-title {
    font-family: var(--serif);
    color: var(--ivory);
    font-weight: 500;
    font-size: clamp(24px, 6vw, 30px);
    margin: 0 0 6px;
    text-align: center;
    letter-spacing: 0.005em;
}
html[dir="rtl"] .section-title { font-family: var(--persian); font-weight: 600; }
.section-sub {
    text-align: center;
    color: var(--text-mute);
    margin: 0 0 26px;
    font-size: 14px;
}

/* ===== Social ===== */
.social-section { margin-top: 44px; }
.social-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}
.social-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 14px;
    text-decoration: none;
    color: var(--ivory);
    background: linear-gradient(135deg, rgba(24, 49, 46, 0.85), rgba(14, 34, 31, 0.85));
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    position: relative;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    overflow: hidden;
}
.social-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(120% 80% at 0% 0%, rgba(193, 157, 86, 0.12), transparent 50%);
    opacity: 0; transition: opacity .25s ease;
}
.social-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.social-card:hover::before { opacity: 1; }
.social-icon {
    flex: 0 0 42px; width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(193, 157, 86, 0.12);
    display: grid; place-items: center;
    color: var(--gold-light);
    border: 1px solid var(--line);
}
.social-icon svg { width: 22px; height: 22px; }
.social-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.social-label { font-family: var(--serif); font-size: 15px; color: var(--ivory); font-weight: 500; }
.social-handle { font-size: 12px; color: var(--text-mute); margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-arrow { color: var(--gold); font-size: 14px; opacity: 0.7; }
html[dir="rtl"] .social-arrow { transform: scaleX(-1); }

@media (max-width: 420px) {
    .social-grid { grid-template-columns: 1fr; }
}

/* ===== Booking section ===== */
.booking-section { margin-top: 56px; }
.booking-header { text-align: center; margin-bottom: 22px; }
.kicker {
    font-family: var(--serif);
    color: var(--gold);
    letter-spacing: 0.18em;
    font-size: 11px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.booking-form {
    background: linear-gradient(180deg, rgba(24, 49, 46, 0.6), rgba(14, 34, 31, 0.7));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px 22px;
    box-shadow: var(--shadow);
    position: relative;
}

/* ===== Progress ===== */
.progress { margin-bottom: 26px; }
.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
    border-radius: 999px;
    transition: width .4s cubic-bezier(.5,0,.2,1);
}
html[dir="rtl"] .progress-fill {
    background: linear-gradient(270deg, var(--gold-deep), var(--gold-light));
}
.progress-steps {
    display: flex; justify-content: space-between;
    margin-top: 10px;
    gap: 4px;
}
.pstep {
    flex: 1; text-align: center;
    color: var(--text-mute);
    font-size: 10px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    transition: color .25s ease;
}
.pstep span {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    display: grid; place-items: center;
    font-family: var(--serif); font-size: 11px;
    color: var(--text-mute);
    transition: all .25s ease;
}
.pstep em {
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pstep.active, .pstep.done { color: var(--gold-light); }
.pstep.active span {
    background: linear-gradient(135deg, var(--gold-deep), var(--gold-light));
    color: #fff; border-color: transparent;
    box-shadow: 0 0 0 4px rgba(193, 157, 86, 0.15);
}
.pstep.done span {
    background: rgba(193, 157, 86, 0.2);
    color: var(--gold-light);
    border-color: var(--line-strong);
}

/* ===== Stage ===== */
.stage {
    border: 0; padding: 0; margin: 0;
    display: none;
    animation: slideIn 0.4s cubic-bezier(.5,0,.2,1) both;
}
.stage.active { display: block; }
.stage-title {
    font-family: var(--serif);
    color: var(--ivory);
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 6px;
    padding: 0;
    width: 100%;
}
html[dir="rtl"] .stage-title { font-family: var(--persian); font-weight: 600; }
.stage-sub {
    color: var(--text-mute);
    font-size: 13px;
    margin: 0 0 22px;
}

/* ===== Choice grid ===== */
.choice-grid {
    display: grid; gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}
.choice {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(14, 34, 31, 0.6);
    cursor: pointer;
    transition: all .2s ease;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-icon { font-size: 22px; line-height: 1; }
.choice-label {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--ivory);
    font-weight: 500;
}
html[dir="rtl"] .choice-label { font-family: var(--persian); font-weight: 500; }
.choice:hover { border-color: var(--line-strong); background: rgba(24, 49, 46, 0.8); }
.choice:has(input:checked) {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(193, 157, 86, 0.18), rgba(193, 157, 86, 0.08));
    box-shadow: 0 0 0 1px var(--gold) inset, 0 8px 20px rgba(193, 157, 86, 0.1);
}
.choice:has(input:checked) .choice-label { color: var(--gold-light); }

/* ===== Service grid (Stage 2) ===== */
.service-grid {
    display: grid; gap: 10px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 4px;
}
@media (max-width: 420px) {
    .service-grid { grid-template-columns: 1fr; }
}

/* Card — both <label> (simple) and <div> (expandable Food card) variants */
.service-card {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(14, 34, 31, 0.6);
    cursor: pointer;
    transition: all .2s ease;
}
.service-card--full { grid-column: 1 / -1; }
.service-card--expand { flex-direction: column; align-items: stretch; }

.service-card > input[type="checkbox"],
.service-card .service-head > input[type="checkbox"] {
    position: absolute; opacity: 0; pointer-events: none;
}

.service-head {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; width: 100%;
}

.service-icon { font-size: 22px; line-height: 1; flex: 0 0 auto; }
.service-label {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--ivory);
    font-weight: 500;
}
html[dir="rtl"] .service-label { font-family: var(--persian); font-weight: 500; }

.service-card:hover { border-color: var(--line-strong); background: rgba(24, 49, 46, 0.8); }

.service-card:has(> input[type="checkbox"]:checked),
.service-card:has(> .service-head > input[type="checkbox"]:checked) {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(193, 157, 86, 0.18), rgba(193, 157, 86, 0.08));
    box-shadow: 0 0 0 1px var(--gold) inset, 0 8px 20px rgba(193, 157, 86, 0.1);
}
.service-card:has(> input[type="checkbox"]:checked) .service-label,
.service-card:has(> .service-head > input[type="checkbox"]:checked) .service-label {
    color: var(--gold-light);
}

/* Food sub-options reveal */
.service-card--expand .service-sub {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    gap: 6px; flex-wrap: wrap;
}
.service-card--expand:has(> .service-head > input[type="checkbox"]:checked) .service-sub {
    display: flex;
    animation: fadeUp 0.25s ease both;
}
.pill-sub { font-size: 12px; padding: 6px 12px; }

/* ===== Fields ===== */
.field { margin-bottom: 16px; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) {
    .grid-2 { grid-template-columns: 1fr; }
}

.field label, .field > label {
    display: block;
    font-family: var(--serif);
    color: var(--gold-light);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
html[dir="rtl"] .field label { font-family: var(--persian); text-transform: none; letter-spacing: 0; font-size: 13px; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"],
.field input[type="time"],
.field input[type="number"],
.field textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(14, 34, 31, 0.7);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ivory);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(14, 34, 31, 0.9);
    box-shadow: 0 0 0 3px rgba(193, 157, 86, 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(217, 211, 196, 0.35); }
.hint { display: block; margin-top: 6px; color: var(--text-mute); font-size: 11px; }

/* Date / time icon color */
.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.65) sepia(1) saturate(3) hue-rotate(8deg);
    cursor: pointer;
}

/* ===== Counter ===== */
.counter {
    display: flex; align-items: stretch;
    background: rgba(14, 34, 31, 0.7);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.counter-btn {
    width: 46px; border: 0; background: transparent;
    color: var(--gold-light); font-size: 22px; cursor: pointer;
    font-family: var(--serif);
    transition: background .15s ease;
}
.counter-btn:hover { background: rgba(193, 157, 86, 0.12); }
.counter input {
    flex: 1; text-align: center;
    background: transparent !important;
    border: 0 !important; border-radius: 0 !important;
    color: var(--ivory); font-size: 17px; font-weight: 600;
}
.counter input:focus { box-shadow: none !important; }

/* ===== Pills ===== */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row--stacked { flex-direction: column; align-items: stretch; gap: 8px; }
.pill-row--stacked .pill { text-align: center; }
.pill {
    position: relative;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(14, 34, 31, 0.5);
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    transition: all .2s ease;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:hover { border-color: var(--line-strong); color: var(--ivory); }
.pill:has(input:checked) {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(193, 157, 86, 0.18), rgba(193, 157, 86, 0.08));
    color: var(--gold-light);
}

/* ===== Review ===== */
.review-card {
    background: rgba(14, 34, 31, 0.7);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 18px;
}
.review-row {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 14px;
}
.review-row:last-child { border-bottom: 0; }
.review-key {
    color: var(--text-mute);
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex: 0 0 38%;
}
html[dir="rtl"] .review-key { font-family: var(--persian); text-transform: none; letter-spacing: 0; }
.review-val {
    color: var(--ivory);
    flex: 1;
    text-align: end;
    word-break: break-word;
}

.consent {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px;
    color: var(--text-mute);
    margin-bottom: 4px;
    cursor: pointer;
}
.consent input { margin-top: 3px; accent-color: var(--gold); }

/* ===== Success ===== */
.stage.success { text-align: center; padding: 14px 0; }
.success-mark { color: var(--gold-light); margin-bottom: 14px; display: inline-block;
    animation: pop 0.5s ease both; }
.success-mark svg { width: 64px; height: 64px; }
.stage.success h3 {
    font-family: var(--serif); color: var(--ivory);
    font-size: 24px; font-weight: 500; margin: 0 0 8px;
}
html[dir="rtl"] .stage.success h3 { font-family: var(--persian); font-weight: 600; }
.stage.success p { color: var(--text-mute); margin: 0 auto 18px; max-width: 380px; font-size: 14px; }

/* ===== Buttons ===== */
.form-nav {
    margin-top: 22px;
    display: flex; justify-content: space-between; gap: 10px;
}
.btn {
    flex: 0 1 auto;
    min-width: 110px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s ease;
}
html[dir="rtl"] .btn { font-family: var(--persian); }
.btn-primary {
    background: linear-gradient(135deg, var(--gold-deep), var(--gold-light));
    color: #1a1410;
    box-shadow: 0 8px 22px rgba(193, 157, 86, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(193, 157, 86, 0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--line-strong); color: var(--ivory); }
.btn-ghost[hidden] { display: none; }

a.btn-ghost {
    text-decoration: none;
    display: inline-block;
    padding: 10px 22px;
}

/* ===== Footer ===== */
.foot {
    margin-top: 56px;
    text-align: center;
    padding: 28px 0 0;
    color: var(--text-mute);
}
.foot-ornament { color: var(--gold); height: 14px; opacity: 0.6; margin: 0 auto 16px; }
.foot-ornament svg { width: 50%; height: 100%; margin: 0 auto; display: block; }
.foot-name {
    font-family: var(--serif);
    color: var(--gold-light);
    letter-spacing: 0.3em;
    font-size: 13px;
    margin: 0 0 6px;
}
.foot-addr { font-size: 12px; margin: 0 0 14px; }
.foot-copy { font-size: 11px; color: var(--text-mute); margin: 0; opacity: 0.7; }

/* ===== Animations ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}
html[dir="rtl"] .stage { animation-name: slideInRtl; }
@keyframes slideInRtl {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes pop {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

/* ===== Field error ===== */
.field.error input,
.field.error textarea { border-color: #e87171; box-shadow: 0 0 0 3px rgba(232, 113, 113, 0.12); }
.error-msg { color: #e87171; font-size: 12px; margin-top: 6px; display: block; }

.submit-error {
    background: rgba(232, 113, 113, 0.1);
    border: 1px solid rgba(232, 113, 113, 0.4);
    color: #f5b3b3;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-top: 14px;
    line-height: 1.5;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Tighten on tiny screens ===== */
@media (max-width: 380px) {
    .page { padding: 22px 14px 60px; }
    .booking-form { padding: 22px 16px 18px; }
    .hero-frame { padding: 26px 16px 22px; }
    .pstep em { display: none; }
    .pstep { gap: 0; }
}
