/* O’ Pizza — Catering Request Studio («طاولة الضيافة · The Hospitality Table»).
   Loaded only on /catering-quote. Uses the brand tokens from site.css :root. */

/* this page has its own single sticky bar */
.page-catering-quote .actionbar, .page-catering-quote .wa-float { display: none !important; }

.cq-hero { background: var(--green); color: var(--cream); position: relative; overflow: hidden; }
.cq-hero .wrap { padding-block: clamp(30px, 5vw, 64px) clamp(26px, 4vw, 48px); display: grid; gap: 12px; position: relative; z-index: 1; }
.cq-hero h1 { font-size: var(--step-4); margin: 0; }
.cq-hero .lead { color: #C9D3CC; max-width: 62ch; margin: 0; }
.cq-hero .kicker { color: var(--copper-soft); }
.cq-hero .crumbs, .cq-hero .crumbs a { color: #B9C6BE; }
.cq-hero__slashes { position: absolute; inset-inline-end: -40px; bottom: -30px; width: min(42vw, 360px); opacity: .5; }

.studio { background: var(--paper); padding-block: 0 clamp(48px, 6vw, 88px); }
.cq-alert { background: #fff; border-inline-start: 4px solid var(--copper); padding: 14px 16px; margin: 20px 0 0; }

/* steps indicator */
.cq-steps { position: sticky; top: var(--head-h, 0px); z-index: 20; background: var(--paper); margin-inline: calc(-1 * var(--gut)); padding: 10px var(--gut); border-bottom: 1px solid var(--rule); }
.cq-steps ol { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: var(--wrap); }
.cq-steps button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 8px; border: 0; border-bottom: 3px solid var(--rule); background: transparent;
  font: 700 .9rem/1.2 var(--f-body); color: var(--muted); cursor: pointer; text-align: center; }
.cq-steps button .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--rule); color: var(--ink); font-size: .8rem; flex: none; }
.cq-steps button[aria-current="step"] { color: var(--green); border-bottom-color: var(--copper); }
.cq-steps button[aria-current="step"] .num { background: var(--green); color: var(--cream); }
.cq-steps button:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

.cq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(20px, 3vw, 40px); align-items: start; padding-top: clamp(20px, 3vw, 36px); }
.cq-main { min-width: 0; }
.cq-step__head h2 { font-size: var(--step-2); margin: 0 0 6px; }
.cq-step__head h2:focus { outline: none; }
.cq-step__head p { margin: 0 0 18px; color: var(--ink-2); }

/* station cards */
.cq-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.sc { background: #fff; border: 1px solid var(--rule); border-radius: var(--card-r, 18px); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; transition: border-color .2s ease, box-shadow .2s ease; }
.sc.is-on { border-color: var(--green); box-shadow: 0 0 0 2px var(--green), 0 10px 26px rgba(20, 42, 30, .10); }
.sc__media { position: relative; aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; }
.sc__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc--package .sc__media img { object-fit: contain; padding: 8px; }
.sc__media--tile { background: var(--green); }
.sc__tile { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 6px; color: var(--cream); text-align: center; padding: 16px; }
.sc__tile-brand { font: 400 clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem)/1 var(--f-slab); letter-spacing: .02em; direction: ltr; }
.sc__tile-sub { font-weight: 700; color: var(--copper-soft); }
.sc__tile-slashes { position: absolute; inset-inline-end: 12px; bottom: 10px; width: 64px; opacity: .8; }
.sc__flag { position: absolute; inset-inline-start: 10px; top: 10px; background: rgba(15, 45, 30, .82); color: var(--cream); font-size: .8rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.sc__body { padding: 16px 16px 14px; display: grid; gap: 6px; align-content: start; }
.sc__brand { font: 400 .82rem/1 var(--f-slab); color: var(--copper); letter-spacing: .04em; justify-self: start; }
.sc__name { margin: 0; font-size: var(--step-1); }
.sc__desc { margin: 0; color: var(--ink-2); font-size: .93rem; }
.sc__note { margin: 0; font-size: .85rem; color: var(--muted); background: var(--paper); padding: 6px 10px; border-inline-start: 3px solid var(--copper-soft); }
.sc__from { margin: 4px 0 0; font-size: .92rem; }
.sc__from b { color: var(--green); }
.sc__from small { color: var(--muted); font-size: .8rem; }
.sc__toggle { margin-top: 8px; min-height: 46px; width: 100%; border: 2px solid var(--green); background: #fff; color: var(--green); border-radius: var(--radius); font: 700 .98rem/1.2 var(--f-body); cursor: pointer; transition: background .18s ease, color .18s ease; }
.sc__toggle:hover { background: var(--cream); }
.sc__toggle:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
.sc__toggle .sc__added { display: none; }
.sc.is-on .sc__toggle { background: var(--green); color: var(--cream); }
.sc.is-on .sc__toggle .sc__add { display: none; }
.sc.is-on .sc__toggle .sc__added { display: inline; }
.sc__guests { border: 0; border-top: 1px dashed var(--rule); margin: 0; padding: 14px 16px 16px; display: grid; gap: 10px; background: #FBFAF7; }
.sc__guests legend { float: left; width: 100%; font-weight: 700; font-size: .92rem; padding: 0; margin-bottom: 4px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; clear: both; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip > span { display: grid; gap: 2px; justify-items: center; min-height: 52px; padding: 7px 6px; border: 1.5px solid var(--rule); border-radius: var(--radius); background: #fff; text-align: center; transition: border-color .15s ease, background .15s ease; }
.chip b { font-size: 1.02rem; color: var(--ink); }
.chip small { font-size: .8rem; color: var(--muted); }
.chip input:checked + span { border-color: var(--green); background: var(--green); }
.chip input:checked + span b, .chip input:checked + span small { color: var(--cream); }
.chip input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }
.chip:hover > span { border-color: var(--green); }
.chip--wide { grid-column: span 2; }
.chips:has(.chip--wide) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips:has(.chip--wide) .chip--wide { grid-column: auto; }
.sc__custom { display: grid; gap: 6px; }
.sc__custom label { font-weight: 700; font-size: .9rem; }
.sc__custom input { width: 9rem; padding: 10px 12px; border: 1.5px solid var(--rule); border-radius: var(--radius); font: 600 1rem var(--f-body); background: #fff; }
.sc__custom input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 62, 42, .18); }
.sc__custom .hint { color: var(--muted); font-size: .84rem; }
.sc__custom .err { color: var(--danger); font-size: .85rem; font-weight: 600; }
.sc__custom .err:empty { display: none; }

.cq-err { color: var(--danger); font-weight: 700; margin: 14px 0 0; }
.cq-more { font-size: .88rem; margin: 16px 0 0; }
.cq-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
.cq-form { background: #fff; border: 1px solid var(--rule); border-radius: var(--card-r, 18px); padding: clamp(16px, 3vw, 28px); display: grid; gap: 16px; }
.cq-form textarea { min-height: 0; }
.cq-form .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cq-form .cq-when { margin: -6px 0 0; font-size: .86rem; color: var(--muted); }
.cq-form input[type="date"], .cq-form input[type="time"] { min-height: 50px; -webkit-appearance: none; appearance: none; text-align: start; }

/* review */
.cq-review, .cq-terms, .cq-send { background: #fff; border: 1px solid var(--rule); border-radius: var(--card-r, 18px); padding: clamp(16px, 3vw, 24px); margin-bottom: 16px; }
.cq-review__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cq-review h3, .cq-terms h3 { margin: 0 0 10px; font-size: var(--step-1); }
.cq-dl { margin: 0; display: grid; gap: 0; }
.cq-dl > div { display: grid; grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); }
.cq-dl dt { font-weight: 700; color: var(--muted); }
.cq-dl dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
[dir="rtl"] .cq-dl dd.ltr { text-align: right; }
.cq-terms p { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.75; }
.cq-send { display: grid; gap: 14px; border-color: var(--green); }
.cq-send__btn { width: 100%; min-height: 56px; font-size: 1.06rem; }
.cq-send__btn[aria-busy="true"] { cursor: progress; }
.cq-send__how { margin: 0; font-size: .88rem; color: var(--muted); }
.cq-status { padding: 12px 14px; border-radius: var(--radius); font-weight: 600; background: var(--cream); }
.cq-status[data-kind="error"] { background: #FBECEA; color: var(--danger); border-inline-start: 4px solid var(--danger); }
.cq-status[data-kind="info"] { color: var(--green); }
.cq-recover { display: flex; flex-wrap: wrap; gap: 10px; }
.cq-recover .btn { flex: 1 1 220px; }
.cq-actions--back { justify-content: flex-start; margin-top: 4px; }
.textbtn { background: none; border: 0; padding: 6px 2px; min-height: 40px; color: var(--copper); font: 700 .95rem var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.textbtn:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

/* the preliminary request card */
.ticket { position: sticky; top: calc(var(--head-h, 0px) + 78px); background: #fff; border: 1px solid var(--rule); border-top: 6px solid var(--green); border-radius: var(--card-r, 18px); padding: 20px 20px 18px; display: grid; gap: 12px;
  box-shadow: 0 14px 36px rgba(20, 42, 30, .08); }
.ticket__ribbon { justify-self: start; background: var(--cream); color: var(--copper); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.ticket__h { margin: 0; font-size: var(--step-1); }
.ticket__empty { margin: 0; color: var(--muted); font-size: .93rem; }
.ticket__lines { list-style: none; margin: 0; padding: 0; display: grid; }
.ticket__lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-top: 1px dashed var(--rule); }
.ticket__name { font-weight: 700; font-size: .95rem; }
.ticket__meta { grid-row: 2; color: var(--muted); font-size: .85rem; }
.ticket__price { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; white-space: nowrap; font-size: .95rem; }
.ticket__sum { margin: 0; display: grid; gap: 6px; border-top: 2px solid var(--ink); padding-top: 10px; }
.ticket__sum > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ticket__sum dt { color: var(--ink-2); font-size: .93rem; }
.ticket__sum dd { margin: 0; font-weight: 700; white-space: nowrap; }
.ticket__total { padding-top: 6px; }
.ticket__total dt { font-weight: 700; color: var(--ink); display: grid; }
.ticket__total dt small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.ticket__total dd { font: 400 1.5rem/1.1 var(--f-slab); color: var(--green); }
.ticket__vat dt, .ticket__vat dd { font-size: .82rem; color: var(--muted); font-weight: 400; }
.ticket__note { margin: 0; font-size: .86rem; background: var(--paper); border-inline-start: 3px solid var(--copper); padding: 8px 10px; color: var(--ink-2); }
.ticket__note-sub { display: block; color: var(--muted); margin-top: 2px; }
.ticket__note--warn { border-inline-start-color: var(--danger); }
.ticket__suggest p { margin: 0 0 6px; font-size: .86rem; font-weight: 700; }
.ticket__suggest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.suggest { width: 100%; min-height: 42px; text-align: start; border: 1.5px dashed var(--green); background: #fff; color: var(--green); border-radius: var(--radius); padding: 8px 10px; font: 600 .86rem/1.35 var(--f-body); cursor: pointer; }
.suggest:hover { background: var(--cream); }
.suggest:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
.ticket__fine { margin: 0; font-size: .8rem; color: var(--muted); }
.ticket__next { width: 100%; }
.studio[data-step="3"] .ticket__next { display: none; }

/* success / hand-off */
.cq-done { padding-top: clamp(28px, 5vw, 56px); }
.cq-done__card { max-width: 720px; margin-inline: auto; background: #fff; border: 1px solid var(--rule); border-top: 6px solid var(--wa); border-radius: var(--card-r, 18px); padding: clamp(20px, 4vw, 40px); display: grid; gap: 14px; }
.cq-done[data-recorded="false"] .cq-done__card { border-top-color: var(--copper); }
.cq-done h2 { margin: 0; font-size: var(--step-2); }
.cq-done h2:focus { outline: none; }
.cq-done__ref { margin: 0; font-size: 1.05rem; }
.cq-done__ref b { font: 400 1.15rem var(--f-slab); color: var(--green); letter-spacing: .03em; }
.cq-done__lead { margin: 0; color: var(--ink-2); }
.cq-done__callout { background: #EAF5EE; border-inline-start: 4px solid var(--wa); padding: 12px 14px; border-radius: var(--radius); }
.cq-done__callout b { display: block; margin-bottom: 2px; }
.cq-done__callout p { margin: 0; }
.cq-done__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cq-done__btns .btn { flex: 1 1 180px; white-space: nowrap; }
.cq-done__help { margin: 0; font-size: .9rem; color: var(--muted); }
.cq-done__msg summary { cursor: pointer; font-weight: 700; color: var(--green); min-height: 40px; display: flex; align-items: center; }
.cq-done__msg textarea { width: 100%; font: 400 .9rem/1.6 var(--f-body); padding: 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.cq-done__next { margin: 0; padding-inline-start: 1.3em; color: var(--ink-2); display: grid; gap: 4px; }

/* mobile sticky summary bar */
.tbar { display: none; }

@media (max-width: 979px) {
  .cq-grid { grid-template-columns: 1fr; }
  .ticket { position: static; box-shadow: none; margin-bottom: 16px; }
  .studio:not([data-step="3"]) .ticket { display: none; }
  .studio[data-mode="explore"] .ticket { display: grid; }
  .tbar { display: flex; position: fixed; inset: auto 0 0; z-index: 46; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--green); color: var(--cream); padding: 10px var(--gut-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gut); box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); }
  .tbar__sum { display: grid; min-width: 0; line-height: 1.25; }
  .tbar__sum small { color: #C9D3CC; font-size: .8rem; }
  .tbar__vat { opacity: .8; white-space: nowrap; }
  .tbar__sum b { font: 400 1.25rem/1.15 var(--f-slab); }
  .tbar .btn { flex: none; min-height: 46px; padding: 10px 16px; font-size: .95rem; }
  .studio[data-step="3"] .tbar, .studio.is-done .tbar, .studio.is-typing .tbar { display: none; }
  .studio .cq-main { padding-bottom: 84px; }
  .studio[data-step="3"] .cq-main { padding-bottom: 0; }
  .page-catering-quote .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 720px) {
  .cq-cards { grid-template-columns: 1fr; }
  .cq-steps button { flex-direction: column; gap: 3px; font-size: .8rem; padding: 4px 2px; }
}
@media (max-width: 560px) {
  .cq-form .form__row { grid-template-columns: 1fr; }
  .cq-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .cq-actions .btn { flex: 1 1 auto; }
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cq-hero h1 { font-size: var(--step-3); }
}
@media (max-width: 340px) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .sc, .chip > span, .sc__toggle { transition: none; } }

/* additional services (clown, beverages) — v4.8 addendum */
.cq-extras { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.cq-sub { margin: 0 0 4px; font-size: var(--step-1); }
.cq-sub__p { margin: 0 0 14px; color: var(--ink-2); font-size: .93rem; }
.sc__qty { display: grid; gap: 8px; }
.sc__qty > label { font-weight: 700; font-size: .92rem; }
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid var(--rule); border-radius: var(--radius); background: #fff; width: max-content; }
.qty input { width: 6.5rem; border: 0; text-align: center; font: 700 1.05rem var(--f-body); padding: 10px 6px; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green); }
.qty__btn { min-width: 46px; min-height: 46px; border: 0; background: var(--cream); color: var(--green); font: 700 1.3rem var(--f-body); cursor: pointer; }
.qty__btn:focus-visible { outline: 3px solid var(--copper); outline-offset: -3px; }
.sc__qty .hint { color: var(--muted); font-size: .84rem; }
.sc__qty .hint b { color: var(--green); }
.sc__qty .err { color: var(--danger); font-size: .85rem; font-weight: 600; }
.sc__qty .err:empty { display: none; }
/* Riyadh city question */
.cq-city { border: 0; padding: 0; margin: 0; }
.cq-city legend { margin-bottom: 6px; }
.cq-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cq-seg label { position: relative; cursor: pointer; }
.cq-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cq-seg span { display: grid; place-items: center; text-align: center; min-height: 48px; padding: 8px; border: 1.5px solid var(--rule); border-radius: var(--radius); background: #fff; font-weight: 700; font-size: .92rem; }
.cq-seg input:checked + span { background: var(--green); border-color: var(--green); color: var(--cream); }
.cq-seg input:focus-visible + span { outline: 3px solid var(--copper); outline-offset: 2px; }
.cq-city.is-invalid .cq-seg span { border-color: var(--danger); }
.cq-terms__extra { margin-top: 10px !important; }
.cq-form select { min-height: 50px; }
@media (max-width: 420px) { .cq-seg { grid-template-columns: 1fr; } }
.sc__tile-brand--text { font-family: var(--f-ar-display); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); direction: inherit; }
[lang="en"] .sc__tile-brand--text { font-family: var(--f-slab); }

/* v4.8 design review fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .cq-steps { top: 0; padding-block: 4px; }
  .cq-steps button { min-height: 40px; flex-direction: row; }
  .tbar { padding-block: 6px calc(6px + env(safe-area-inset-bottom, 0px)); }
}
.tbar__sum b { white-space: nowrap; }
@media (max-width: 359px) { .tbar__sum small:first-child { display: none; } .tbar .btn { padding-inline: 12px; } }
@media (max-width: 979px) { .studio .cq-step[data-panel="1"] .cq-actions { display: none; } }
.ticket__total dt small { white-space: nowrap; }
.cq-step__head p, .cq-hero .lead { text-wrap: pretty; }
.cq-done .kicker { color: var(--wa); }
.cq-done[data-recorded="false"] .kicker { color: var(--copper); }
.textbtn { min-height: 44px; padding-inline: 8px; }
.studio.has-error [data-send] { opacity: .6; }
@media (max-height: 500px) and (orientation: landscape) { .cq-hero .wrap { padding-block: 14px 16px; gap: 6px; } .cq-hero h1 { font-size: var(--step-3); } }
.ticket__sum dt small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.ticket__prov { color: var(--danger) !important; font-weight: 700 !important; }
.cq-preview-banner { background: #FFF1D6; color: #6B4500; text-align: center; font-weight: 700; font-size: .9rem; padding: 10px 16px; border-bottom: 1px solid #E8D3A6; }
.cq-explore { margin-top: 22px; background: #fff; border: 1px solid var(--rule); border-inline-start: 4px solid var(--wa); border-radius: var(--card-r, 18px); padding: 16px 18px; display: grid; gap: 12px; }
.cq-explore p { margin: 0; color: var(--ink-2); }
.cq-explore .btn { justify-self: start; }
@media (max-width: 979px) { .studio[data-mode="explore"] .cq-main { padding-bottom: 84px; } }
.sc__flag--soft { background: rgba(255,255,255,.88); color: var(--ink-2); font-weight: 600; }
