/* =============================================================================
   REQUEST A QUOTE — public enquiry form
   -----------------------------------------------------------------------------
   Loaded only by /request-a-quote, so the homepage carries none of its weight.
   Built entirely on the site tokens in styles.css, so the page reads as a
   luxury catering experience rather than a generic dashboard form.
   ========================================================================== */

.quote-page { background: var(--bg); }

.quote-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251,247,240,.92);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.quote-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; }
.quote-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.quote-brand .brand-logo { height: 40px; width: auto; }
.quote-brand .brand-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }

.quote-main { padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 6rem); }
.quote-container { max-width: 820px; }
.quote-intro { text-align: center; margin-bottom: 2.4rem; }
.quote-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 600; line-height: 1.08; margin: .4rem 0 .7rem; }
.quote-lead { color: var(--muted); font-size: 1.02rem; max-width: 46ch; margin: 0 auto; }

/* ---- progress ---------------------------------------------------------- */
.quote-progress ol { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; gap: .4rem; }
.quote-progress li { flex: 1 1 0; }
.quote-progress button {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: .4rem;
  background: none; border: 0; padding: .5rem .2rem .7rem; cursor: pointer;
  border-bottom: 2px solid var(--line); color: var(--muted);
  font-family: var(--sans); font-size: .74rem; line-height: 1.2; text-align: center;
}
.quote-progress button:disabled { cursor: default; }
.quote-progress .n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font-size: .78rem; font-weight: 600; background: #fff;
}
.quote-progress li.on button { color: var(--ink); border-bottom-color: var(--gold); }
.quote-progress li.on .n { background: var(--gold); border-color: var(--gold); color: #fff; }
.quote-progress li.done button { color: var(--ink-soft); border-bottom-color: var(--gold-2); }
.quote-progress li.done .n { background: var(--gold-2); border-color: var(--gold-2); color: #fff; }

.quote-loading, .quote-unavailable { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.quote-unavailable h2 { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); margin-bottom: .5rem; }

/* ---- fields ------------------------------------------------------------ */
#quoteSections {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.qf-h { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 0; }
.qf-sub { color: var(--muted); margin: .3rem 0 1.6rem; font-size: .95rem; }
.qf-h3 {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  margin: 2rem 0 .3rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.qf-h3 em, .qf > label em, .qf > legend em { font-style: normal; color: var(--muted); font-weight: 400; font-size: .85em; }
.qf-note { color: var(--muted); font-size: .85rem; margin: 0 0 1rem; }

.qf { margin-bottom: 1.1rem; border: 0; padding: 0; min-width: 0; }
/* Direct children only. Without the child combinator this also matched the
   option labels inside .qf-opts and, being more specific than .qf-opt, stripped
   their padding and flex layout. */
.qf > label, .qf > legend { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .35rem; padding: 0; }
.qf .req { color: var(--gold); }

.qf input[type="text"], .qf input[type="email"], .qf input[type="tel"],
.qf input[type="number"], .qf input[type="date"], .qf input[type="time"],
.qf select, .qf textarea {
  width: 100%; padding: .85rem 1rem; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.qf input:focus, .qf select:focus, .qf textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
  box-shadow: 0 0 0 3px rgba(184,146,74,.14);
}
.qf textarea { resize: vertical; min-height: 90px; }
.qf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 1rem; }

.qf-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.qf-opts--inline { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.qf-opt {
  display: flex; align-items: center; gap: .6rem; margin: 0;
  min-height: 48px;                     /* comfortable touch target */
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); cursor: pointer;
  font-weight: 400; font-size: .9rem; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.qf-opt:hover { border-color: var(--gold-2); background: #fff; }
.qf-opt input { accent-color: var(--gold); width: 18px; height: 18px; margin: .1rem 0 0; flex: 0 0 auto; }
.qf-opt:has(input:checked) { border-color: var(--gold); background: #fff; box-shadow: inset 0 0 0 1px var(--gold); }
.qf-opt:focus-within { border-color: var(--gold); }

.qf-err { display: block; color: #B3261E; font-size: .82rem; margin-top: .35rem; font-weight: 500; }
.qf.has-error input, .qf.has-error select, .qf.has-error textarea { border-color: #B3261E; background: #FEF6F6; }

/* Honeypot: off-screen for people, still in the DOM for bots. */
.qf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- attachments ------------------------------------------------------- */
.qf input[type="file"] {
  width: 100%; padding: .8rem; border: 1px dashed var(--line);
  border-radius: 12px; background: var(--bg); font-size: .88rem;
}
.qf-files { list-style: none; margin: .7rem 0 0; padding: 0; }
.qf-files li {
  display: flex; align-items: center; gap: .8rem; padding: .55rem .8rem;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: .4rem;
  font-size: .87rem; background: #fff;
}
.qf-files li span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-file-size { color: var(--muted); font-size: .8rem; }
.qf-file-x { border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 .2rem; }
.qf-file-x:hover { color: #B3261E; }

/* ---- review ------------------------------------------------------------ */
.qr-block { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; margin-bottom: .9rem; background: var(--bg); }
.qr-block header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .7rem; }
.qr-block h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; margin: 0; }
.qr-edit {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .3rem .9rem; font-family: var(--sans); font-size: .78rem; font-weight: 600;
  color: var(--ink-soft); cursor: pointer;
}
.qr-edit:hover { border-color: var(--gold); color: var(--gold); }
.qr-block dl { display: grid; grid-template-columns: 170px 1fr; gap: .45rem 1rem; margin: 0; font-size: .9rem; }
.qr-block dt { color: var(--muted); font-size: .82rem; }
.qr-block dd { margin: 0; }

.qf-consent { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.qf-consent .qf-opt { align-items: flex-start; font-size: .9rem; line-height: 1.5; }

/* ---- navigation -------------------------------------------------------- */
.quote-nav { display: flex; gap: .8rem; justify-content: space-between; align-items: center; margin-top: 1.6rem; flex-wrap: wrap; }
.quote-nav .btn-gold { margin-left: auto; }
.quote-error {
  background: #FEF6F6; border: 1px solid #F0C9C6; color: #8C1D18;
  border-radius: 12px; padding: .9rem 1.1rem; margin-top: 1.2rem; font-size: .9rem;
}
.quote-autosave { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 1rem; }

/* ---- confirmation ------------------------------------------------------ */
.quote-done-inner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(2rem, 6vw, 3.4rem); text-align: center; box-shadow: var(--shadow-md);
}
.quote-done-inner h2 { font-family: var(--serif); font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 600; margin: .3rem 0 .7rem; }
.quote-done-lead { color: var(--muted); max-width: 44ch; margin: 0 auto 1.8rem; }
.quote-ref {
  display: inline-flex; flex-direction: column; gap: .3rem;
  padding: 1rem 2rem; border: 1px solid var(--gold); border-radius: 14px;
  background: rgba(184,146,74,.07);
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1.8rem;
}
.quote-ref strong { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .02em; text-transform: none; color: var(--ink); }
.quote-done-summary { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.4rem; text-align: left; max-width: 420px; margin: 0 auto 2rem; font-size: .92rem; }
.quote-done-summary dt { color: var(--muted); font-size: .84rem; }
.quote-done-summary dd { margin: 0; }

.quote-footer { border-top: 1px solid var(--line); padding: 2rem 0; text-align: center; color: var(--muted); font-size: .87rem; }
.quote-footer a { color: var(--gold); }

@media (max-width: 700px) {
  .quote-progress .t { display: none; }
  .quote-progress button { padding-bottom: .5rem; }
  .qr-block dl { grid-template-columns: 1fr; gap: .1rem; }
  .qr-block dt { margin-top: .5rem; }
  .quote-nav .btn { flex: 1 1 auto; justify-content: center; }
  /* Keeps Continue reachable without scrolling past a long step. */
  .quote-nav { position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, var(--bg) 30%); padding: 1rem 0 .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .qf input, .qf select, .qf textarea, .qf-opt { transition: none; }
}
