/* =================================================================
   ENQUIRY FORMS. One modal, three modes: quote, sample, visit. Markup
   is built by js/enquiry.js on the first open. Values are the handoff
   templates' inline styles.

   Two colourways, the same layout (Downloads/handoff 11, 2026-10-27,
   "Latest layout"):
   - the default: original colours (cream, graphite, walnut; Instrument
     Sans titles, Segoe UI body), on the home page;
   - .fe--blue: The Wrap House (ink, blue; Metropolis titles, Inter
     body), on /wrapping, which keeps its own brand.
   Loaded after home.css, whose 90% zoom on body.hp it relies on:
   lengths that must equal the window divide by --hp-z.
   ================================================================= */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/instrument-sans-latin-ext-v4.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/instrument-sans-latin-v4.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.fe {
 /* Original colours */
 --fe-ink: #1A1A1A;          /* text, side panel, selected and primary buttons */
 --fe-accent: #6B5B3E;       /* walnut: rules, ticks, check dots, submit hover */
 --fe-on-accent: #FFFFFF;    /* the tick drawn on the accent */
 --fe-hover-fg: #FFFFFF;     /* submit text on hover */
 --fe-fill: #ECE7DA;         /* fields */
 --fe-line: #ECE7DA;         /* unselected buttons */
 --fe-ring: #B8B3A6;         /* close button, check-dot ring */
 --fe-dash: #B8B3A6;         /* dashed rules */
 --fe-label: #666666;
 --fe-soft: #666666;
 --fe-side-sub: #B8B3A6;
 --fe-err: #A0432B;
 --fe-focus: rgba(107,91,62,.35);
 --fe-shade: 26,26,26;       /* rgb of the overlays and shadows */
 --fe-display: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
 --fe-display-w: 700;        /* the templates ask for 800; Instrument Sans stops at 700 */
 --fe-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
 position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
 padding: 20px; box-sizing: border-box; opacity: 0; pointer-events: none; transition: opacity .3s ease;
 font-family: var(--fe-body); color: var(--fe-ink); text-align: left;
}
.fe--blue {
 --fe-ink: #0B0B0B; --fe-accent: #8ba6a9; --fe-on-accent: #0B0B0B; --fe-hover-fg: #0B0B0B;
 --fe-fill: #F4F4F2; --fe-line: #e0e0e0; --fe-ring: #b3b3b3; --fe-dash: #c8c8c4;
 --fe-label: #4d4d48; --fe-soft: #666; --fe-side-sub: #e0e0e0; --fe-focus: rgba(139,166,169,.35); --fe-shade: 11,11,11;
 --fe-display: 'Metropolis', 'Inter', sans-serif; --fe-display-w: 800; --fe-body: 'Inter', system-ui, sans-serif;
}
.fe.is-open { opacity: 1; pointer-events: auto; }
.fe *, .fe *::before, .fe *::after { box-sizing: border-box; }
.fe__backdrop { position: absolute; inset: 0; background: rgba(var(--fe-shade),.55); }
.fe__card {
 position: relative; width: 100%; max-width: 1040px; max-height: calc(100vh / var(--hp-z, 1) - 40px);
 display: grid; grid-template-columns: minmax(0,1fr); border-radius: 28px; overflow: hidden;
 /* One row capped by max-height: an auto row grows to the whole form, so .fe__main never scrolls and Submit is cut off */
 grid-template-rows: minmax(0,1fr);
 background: #FFFFFF; box-shadow: 0 40px 100px rgba(var(--fe-shade),.3);
 transform: translateY(14px); transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
@supports (height: 100dvh) { .fe__card { max-height: calc(100dvh / var(--hp-z, 1) - 40px); } }
.fe.is-open .fe__card { transform: none; }
@media (min-width: 900px) { .fe__card { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); } }

/* Side panel */
.fe__side { display: none; }
@media (min-width: 900px) {
 .fe__side {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 28px; min-height: 100%; overflow: hidden; background: var(--fe-ink); color: #FFFFFF;
 }
}
.fe__photo {
 position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08);
 transition: opacity .7s ease, transform 1.6s cubic-bezier(.22,.61,.36,1);
}
.fe__photo.is-on { opacity: 1; transform: scale(1); }
.fe__shade { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(var(--fe-shade),.55) 0%,rgba(var(--fe-shade),.15) 34%,rgba(var(--fe-shade),.55) 62%,rgba(var(--fe-shade),.92) 100%); }
.fe__brand { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.fe__brand img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.fe__brand span { font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; padding-left: 2px; }
.fe__intro { position: relative; display: flex; flex-direction: column; gap: 18px; }
.fe__eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #FFFFFF; text-shadow: 0 1px 6px rgba(var(--fe-shade),.45); }
.fe__rule { display: block; flex: none; width: 28px; height: 2px; border-radius: 2px; background: var(--fe-accent); }
.fe__title {
 margin: 0; font-family: var(--fe-display); font-weight: var(--fe-display-w); font-size: clamp(32px,3.2vw,44px);
 line-height: .95; letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; color: inherit;
}
.fe__sub { margin: 0; font-size: 15px; line-height: 1.6; color: var(--fe-side-sub); text-wrap: pretty; }
.fe__ticks { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; margin: 0; list-style: none; }
.fe__ticks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; }
.fe__tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--fe-accent); color: var(--fe-on-accent); display: flex; align-items: center; justify-content: center; }

/* Right column */
.fe__main { position: relative; display: flex; flex-direction: column; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.fe__close {
 position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; padding: 0; border-radius: 50%;
 border: 1.5px solid var(--fe-ring); background: #FFFFFF; color: var(--fe-ink); display: flex; align-items: center; justify-content: center;
 cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.fe--blue .fe__close { border-color: #e0e0e0; }
.fe__close:hover { background: var(--fe-ink); color: #FFFFFF; border-color: var(--fe-ink); }
.fe__form { display: flex; flex-direction: column; gap: 16px; padding: 24px clamp(20px,3vw,36px) 22px; margin: 0; }
.fe__form[hidden], .fe__done[hidden], .fe [hidden] { display: none !important; }
.fe__head { display: flex; flex-direction: column; gap: 8px; padding-right: 48px; }
.fe__head .fe__title { font-size: 32px; letter-spacing: -.03em; }
.fe__head .fe__sub { font-size: 15px; line-height: 1.55; color: var(--fe-label); }
@media (min-width: 900px) { .fe__head { display: none; } }

.fe__group { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.fe__label { padding: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fe-label); }
.fe__hint { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--fe-soft); }
.fe__req { color: var(--fe-err); }

/* Choice buttons. aria-pressed carries the state. */
.fe__opt {
 border: 1.5px solid var(--fe-line); background: #FFFFFF; color: var(--fe-ink); font-family: var(--fe-body); cursor: pointer;
 transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.fe__opt[aria-pressed="true"] { background: var(--fe-ink); color: #FFFFFF; border-color: var(--fe-ink); }
.fe__opt:focus-visible, .fe__close:focus-visible, .fe__submit:focus-visible, .fe__btn:focus-visible { outline: 2px solid var(--fe-ink); outline-offset: 3px; }
.fe__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.fe__prod {
 height: 40px; padding: 0 14px 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
 text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 7px;
}
.fe__chk { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--fe-ring); display: flex; align-items: center; justify-content: center; color: var(--fe-on-accent); }
.fe__chk svg { opacity: 0; }
.fe__prod[aria-pressed="true"] .fe__chk { background: var(--fe-accent); box-shadow: inset 0 0 0 1.5px var(--fe-accent); }
.fe__prod[aria-pressed="true"] .fe__chk svg { opacity: 1; }
/* Project type: one row of four. */
.fe__types { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.fe__type { height: 40px; padding: 0 4px; border-radius: 12px; font-size: 13px; font-weight: 600; }
@media (max-width: 459px) { .fe__types { grid-template-columns: repeat(2,minmax(0,1fr)); } }
/* Approximate area: a 48px field like the others, the number in the display face. */
.fe__area { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 14px; background: var(--fe-fill); cursor: text; border: 1.5px solid transparent; transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.fe__area:focus-within { background: #FFFFFF; border-color: var(--fe-ink); box-shadow: 0 0 0 4px var(--fe-focus); }
.fe__area input {
 flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; outline: none; appearance: textfield; -moz-appearance: textfield;
 font-family: var(--fe-display); font-weight: var(--fe-display-w); font-size: 22px; line-height: 1; color: var(--fe-ink);
}
.fe__area input::-webkit-outer-spin-button, .fe__area input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fe__area span { font-size: 15px; font-weight: 600; color: var(--fe-label); }
.fe__note { font-size: 12.5px; color: var(--fe-soft); }
.fe__days { display: grid; grid-template-columns: repeat(7,minmax(54px,1fr)); gap: 6px; overflow-x: auto; }
.fe__day { height: 60px; padding: 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.fe__day small { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.fe__day b { font-family: var(--fe-display); font-weight: var(--fe-display-w); font-size: 19px; line-height: 1; }
.fe__day span { font-size: 11px; opacity: .75; }
.fe__slots { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.fe__slot { height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.fe__slot b { font-size: 13px; font-weight: 700; }
.fe__slot span { font-size: 12px; opacity: .7; }
.fe__room { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }

.fe__divider { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fe-ink); }
.fe__divider::after { content: ""; flex: 1; height: 0; border-top: 1.5px dashed var(--fe-dash); }
.fe__fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 14px 12px; }
.fe__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fe__field--wide { grid-column: 1 / -1; }
/* Quote and sample: community and area side by side on a full row, stacked below 560px. */
.fe__pair { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px 12px; align-items: start; }
@media (max-width: 559px) { .fe__pair { grid-template-columns: minmax(0,1fr); } }
.fe__input {
 width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 1.5px solid transparent; background: var(--fe-fill);
 font-family: var(--fe-body); font-size: 16px; color: var(--fe-ink); outline: none; margin: 0;
 transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
textarea.fe__input { height: auto; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.fe__input::placeholder { color: #9a968c; }
.fe--blue .fe__input::placeholder { color: #9a9a96; }
.fe__input:focus { background: #FFFFFF; border-color: var(--fe-ink); box-shadow: 0 0 0 4px var(--fe-focus); }
.fe__input[aria-invalid="true"] { border-color: var(--fe-err); }
.fe__err { font-size: 13px; color: var(--fe-err); }
.fe__tel { display: flex; gap: 6px; }
.fe__tel .fe__input { flex: 1; min-width: 0; }
.fe__cc {
 position: relative; flex: none; height: 48px; padding: 0 12px; display: flex; align-items: center; gap: 8px;
 border-radius: 14px; background: var(--fe-fill); font-size: 15px; font-weight: 600; color: var(--fe-ink); border: 1.5px solid transparent;
}
.fe__cc:focus-within { border-color: var(--fe-ink); }
.fe__cc img { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(var(--fe-shade),.1); }
.fe__cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }

.fe__foot { display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.fe__submit {
 height: 54px; border: 0; border-radius: 999px; background: var(--fe-ink); color: #FFFFFF; width: 100%;
 font-family: var(--fe-display); font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
 cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 12px 30px rgba(var(--fe-shade),.18);
 transition: background .3s ease, color .3s ease, transform .3s cubic-bezier(.22,.61,.36,1);
}
.fe__submit:hover:not(:disabled) { background: var(--fe-accent); color: var(--fe-hover-fg); transform: translateY(-2px); }
.fe__submit:disabled { cursor: progress; opacity: .7; }
.fe__privacy { text-align: center; font-size: 12.5px; color: var(--fe-soft); }
.fe__fail { margin: 0; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--fe-err); }
.fe__fail a { color: inherit; text-decoration: underline; }

/* Confirmation */
.fe__done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding: 40px clamp(20px,3vw,48px) 56px; }
.fe__ok { width: 92px; height: 92px; border-radius: 50%; background: var(--fe-accent); color: var(--fe-on-accent); display: flex; align-items: center; justify-content: center; transform: scale(.4); transition: transform .6s cubic-bezier(.34,1.56,.64,1); }
.fe__ok path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s cubic-bezier(.65,0,.35,1) .35s; }
.fe__done.is-in .fe__ok { transform: scale(1); }
.fe__done.is-in .fe__ok path { stroke-dashoffset: 0; }
.fe__done h3 { margin: 0; font-family: var(--fe-display); font-weight: var(--fe-display-w); font-size: clamp(30px,3vw,42px); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; color: var(--fe-ink); }
.fe__done p { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--fe-label); text-wrap: pretty; }
.fe__summary { width: min(420px,100%); margin: 0; display: flex; flex-direction: column; border-top: 1.5px dashed var(--fe-ring); text-align: left; }
.fe__summary div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1.5px dashed var(--fe-ring); font-size: 14px; }
.fe__summary dt { color: var(--fe-soft); }
.fe__summary dd { margin: 0; font-weight: 600; text-align: right; }
.fe__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.fe__btn {
 height: 52px; padding: 0 30px; border-radius: 999px; border: 0; background: var(--fe-ink); color: #FFFFFF; cursor: pointer;
 font-family: var(--fe-display); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
 display: inline-flex; align-items: center; text-decoration: none; transition: background .3s ease, color .3s ease;
}
.fe__btn--line { padding: 0 26px; border: 2px solid var(--fe-ink); background: transparent; color: var(--fe-ink); }
.fe__btn--line:hover { background: var(--fe-ink); color: #FFFFFF; }
.fe__urgent { font-size: 13px; color: var(--fe-soft); }

/* Phones: a little more room for the card. */
@media (max-width: 599px) {
 .fe { padding: 12px; }
 .fe__card { border-radius: 22px; max-height: calc(100vh - 24px); }
 @supports (height: 100dvh) { .fe__card { max-height: calc(100dvh - 24px); } }
}

@media (prefers-reduced-motion: reduce) {
 .fe, .fe__card, .fe__photo, .fe__ok, .fe__ok path { transition: none; }
 .fe__photo { transform: none; }
 .fe__ok { transform: none; }
 .fe__ok path { stroke-dashoffset: 0; }
}

/* Mobile quote bar (handoff 31, Stephen 2026-10-29). Built by js/enquiry.js on every page that
   has the form; phones only. It slides up once the hero has scrolled past. The body keeps room
   for it at the bottom so the footer is never hidden behind it. */
.fh-qbar { display: none; }
@media (max-width: 767px) {
 .fh-qbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; gap: 12px;
  padding: 13px 14px max(13px, env(safe-area-inset-bottom, 0px)) 18px; box-sizing: border-box;
  background: #1A1A1A; color: #FFFFFF; box-shadow: 0 -8px 24px rgba(26,26,26,.18);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  transform: translateY(100%); visibility: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), visibility 0s linear .35s;
 }
 .fh-qbar.is-on { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.22,.61,.36,1), visibility 0s; }
 .fh-qbar__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
 .fh-qbar__txt b { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; }
 .fh-qbar__txt span { font-size: 11px; line-height: 1.2; color: #B8B3A6; }
 .fh-qbar__btn {
  flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #F5F2EB; color: #1A1A1A;
  font-family: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: background .3s ease;
 }
 .fh-qbar__btn:hover, .fh-qbar__btn:active { background: #FFFFFF; }
 .fh-qbar__btn:focus-visible { outline: 2px solid #F5F2EB; outline-offset: 3px; }
 html.fh-qbar-page body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
 html.fh-qbar-on .hp-toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .fh-qbar, .fh-qbar.is-on { transition: none; } }
