/* Packaging Studio · enquiry forms (Enquire page SB-P09, Box page SB-P03b frame 6). Ivory ground, Ebony text, Stone lines;
   the focus ring is Neon Violet 2 px (prompt 08); errors name the fix; the seal confirms only after the server saved. */
.enq { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; max-width: 980px; }
.enq__pre { grid-column: 1 / -1; font: italic 400 clamp(18px, 1.5vw, 24px)/1.4 var(--f-accent); color: #7A5C2A; }
.enq label { display: grid; gap: 8px; font: 500 12px/1.3 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: #5E574D; }
.enq label > span.req::after { content: ' *'; color: #7A5C2A; }
.enq input:not([type="checkbox"]):not([type="file"]), .enq select, .enq textarea { font: 400 16px/1.4 var(--f-ui); letter-spacing: 0; text-transform: none; color: var(--ebony);
  padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(11, 11, 11, .22); background: #fbf8f1; width: 100%; }
.enq input[type="file"] { font: 400 14px/1.4 var(--f-ui); letter-spacing: 0; text-transform: none; color: #3a352f; }
.enq input:focus-visible, .enq select:focus-visible, .enq textarea:focus-visible, .enq button:focus-visible { outline: 2px solid var(--violet, #8A3DFF); outline-offset: 2px; }
.enq [aria-invalid="true"] { border-color: #9b2c2c !important; }
.enq__err { font: 400 13px/1.4 var(--f-ui); letter-spacing: 0; text-transform: none; color: #9b2c2c; animation: enqFade .2s var(--ease) both; }
@keyframes enqFade { from { opacity: 0; } to { opacity: 1; } }
.enq__wide { grid-column: 1 / -1; }
.enq__help { font: 400 13px/1.4 var(--f-ui); letter-spacing: 0; text-transform: none; color: #6b645b; }
.enq__consent { display: flex !important; align-items: flex-start; gap: 12px; letter-spacing: 0 !important; text-transform: none !important; font: 400 14px/1.5 var(--f-ui) !important; color: #3a352f !important; }
.enq__consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: #7A5C2A; }
.enq__consent a { color: #7A5C2A; }
.enq__send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.enq__send [aria-busy="true"] { opacity: .6; pointer-events: none; }
.enq__fail { grid-column: 1 / -1; display: grid; gap: 10px; padding: 16px 18px; border-radius: 10px; background: #f6e9e2; color: #5c1f1f; font: 400 14px/1.5 var(--f-ui); }
.enq__fail a { color: #5c1f1f; font-weight: 500; }
.enq__trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.enq label.enq__check { display: flex; align-self: end; padding-bottom: 14px; align-items: center; gap: 10px; font: 400 14px/1.4 var(--f-ui) !important; letter-spacing: 0 !important; text-transform: none !important; color: #3a352f !important; }
.enq__check input { width: 18px; height: 18px; accent-color: #7A5C2A; }
.enq__progress { height: 2px; background: rgba(122, 92, 42, .15); border-radius: 2px; overflow: hidden; grid-column: 1 / -1; }
.enq__progress i { display: block; height: 100%; width: var(--p, 0%); background: #7A5C2A; transition: width .2s linear; }

/* sealed: the server has the enquiry */
.sealed { display: grid; justify-items: start; gap: 18px; }
.sealed[hidden] { display: none; }
.sealed__seal { width: 132px; height: 132px; animation: sealPress 1.2s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 50% 60%; }
@keyframes sealPress { 0% { transform: scale(1.5) rotate(-18deg); opacity: 0; } 55% { transform: scale(.94) rotate(2deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
.sealed__h { font: 300 clamp(32px, 3.4vw, 56px)/1.05 var(--f-display); color: var(--ebony); }
.sealed__p { font: 400 16px/1.6 var(--f-ui); color: #3a352f; max-width: 46ch; }
.sealed__links { display: flex; gap: 12px; flex-wrap: wrap; }
.sealed .pill--sec { color: var(--ebony); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .3); }
@media (prefers-reduced-motion: reduce) { .sealed__seal, .enq__err { animation: none; } }

@media (max-width: 767px) {
  .enq { grid-template-columns: 1fr; }
  .enq__send { position: sticky; bottom: 0; z-index: 5; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--ivory) 70%, rgba(243, 237, 224, 0)); }
  html:has(.enq__send) { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }   /* B80: a field you tap scrolls clear of the sticky Send bar */
}
.page-box, .page-enquire { color-scheme: light; }   /* light pages: native form controls (tick boxes, menus, dates) draw light */

/* phones (new pages): 24 px side margins (the shared token gives 60 px at 375 px), long eyebrows wrap, tabs share the width */
@media (max-width: 767px) {
  body.page-box, body.page-enquire, body.page-finishes { --m: 24px; }
  .page-box .eyebrow, .page-enquire .eyebrow, .page-finishes .eyebrow { white-space: normal; }
  .eq { grid-template-columns: minmax(0, 1fr); }
  .eq__tabs { width: auto; display: flex; }
  .eq__tab { flex: 1 1 0; white-space: normal; padding: 12px 10px; }
}
/* long option texts (box names) must not widen the form: fields shrink to their column */
.enq, .eq__set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.enq label, .enq select, .enq input, .enq textarea { min-width: 0; max-width: 100%; }
@media (max-width: 767px) { .enq, .eq__set { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .eq__set { grid-template-columns: minmax(0, 1fr); } }
