/* ==========================================================================
   EOTAK form pages: contact-us.html and EOTAK_TnE_Request_Page.html.

   One stylesheet for two pages, which is a deliberate exception to the
   one-page-one-stylesheet rule the solutions pages follow. Those pages are
   art directed and must not resemble each other; these two are the same
   object -- a form on a quiet ground -- and duplicating the field, label,
   error and status styling into two files would guarantee they drift.

   Loads after core.css and depends only on its tokens.
   ========================================================================== */

/* ---- page frame -------------------------------------------------------- */
.f-page{background:var(--bg)}
.f-hero{position:relative;padding:clamp(46px,7vh,96px) 0 clamp(28px,4vh,46px)}
.f-hero .lede{margin-top:18px;max-width:56ch}
.f-h1{font-family:var(--font-display);font-weight:800;letter-spacing:-.04em;
  font-size:clamp(36px,5vw,68px);line-height:1.0;margin-top:16px;max-width:16ch}
.f-crumb{font-family:var(--font-mono);font-size:10.5px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--mute);display:flex;gap:9px;align-items:center}
.f-crumb a{color:var(--mute)}
.f-crumb a:hover{color:var(--accent-txt)}
.f-crumb [aria-current]{color:var(--fg2)}

/* One quiet copper wash behind the header. It is a pseudo-element, not a
   background: a background stops at the border box and reads as a rectangle. */
.f-hero::before{content:"";position:absolute;z-index:0;pointer-events:none;
  left:-10%;right:-10%;top:-30%;bottom:-10%;
  background:radial-gradient(46% 44% at 26% 20%,
    rgba(var(--cop-rgb),.16),rgba(var(--cop-rgb),0) 72%)}
.f-hero > *{position:relative;z-index:1}   /* safe: no absolute children here */

/* ---- the two-column body ----------------------------------------------- */
.f-body{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr);
  gap:clamp(34px,5vw,86px);align-items:start;
  padding-bottom:clamp(60px,9vh,130px)}

/* ---- the form panel ---------------------------------------------------- */
.f-panel{position:relative;isolation:isolate;
  background:linear-gradient(180deg,rgba(var(--ovr-rgb),.05),rgba(var(--ovr-rgb),.013));
  border:1px solid var(--hair2);border-top:1px solid var(--line2);
  border-radius:var(--r-md);box-shadow:var(--lit),var(--sh-card);
  padding:clamp(26px,3.4vw,44px)}
.f-panel::before{content:"";position:absolute;z-index:-1;pointer-events:none;
  inset:-12% -14% -20%;
  background:radial-gradient(48% 40% at 50% 8%,
    rgba(var(--ovr-rgb),.045),rgba(var(--ovr-rgb),0) 72%)}
.f-panel h2{font-size:clamp(21px,2vw,27px);font-weight:600;letter-spacing:-.024em}
.f-panel .sub{font-size:14.5px;line-height:1.65;color:var(--fg2);
  font-weight:350;margin-top:9px;max-width:52ch}

/* ---- fields ------------------------------------------------------------ */
.f-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(14px,1.6vw,20px);
  margin-top:clamp(22px,3vh,30px)}
.f-field{display:flex;flex-direction:column;min-width:0}
.f-field.wide{grid-column:1 / -1}
.f-field label{font-family:var(--font-mono);font-size:10px;font-weight:500;
  letter-spacing:.2em;text-transform:uppercase;color:var(--mute);margin-bottom:8px}
.f-field label .req{color:var(--accent-txt);margin-left:3px}

.f-field input,.f-field select,.f-field textarea{
  font-family:var(--font-body);font-size:15px;line-height:1.5;color:var(--fg);
  background:var(--bg);border:1px solid var(--line);border-radius:var(--r-sm);
  padding:12px 14px;width:100%;
  transition:border-color var(--d-hover) var(--e-out),box-shadow var(--d-hover) var(--e-out)}
.f-field textarea{resize:vertical;min-height:132px}
.f-field select{appearance:none;cursor:pointer;padding-right:38px;
  background-image:linear-gradient(45deg,transparent 50%,var(--mute) 50%),
                   linear-gradient(135deg,var(--mute) 50%,transparent 50%);
  background-position:calc(100% - 19px) calc(50% + 1px),calc(100% - 14px) calc(50% + 1px);
  background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.f-field input::placeholder,.f-field textarea::placeholder{color:var(--dim)}
.f-field input:hover,.f-field select:hover,.f-field textarea:hover{border-color:var(--line2)}
.f-field input:focus,.f-field select:focus,.f-field textarea:focus{
  outline:2px solid var(--focus);outline-offset:2px;border-color:transparent}

/* Invalid state is announced as well as coloured: the copy in .ferr is what
   a screen reader reads, the border is only the sighted half of it. */
.f-field [aria-invalid="true"]{border-color:var(--bad)}
.ferr{font-size:12.5px;line-height:1.5;color:var(--bad);margin-top:7px;min-height:0}
.ferr:empty{display:none}

/* ---- actions and status ------------------------------------------------ */
.f-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  margin-top:clamp(24px,3.4vh,32px)}
.f-note{font-size:12.5px;line-height:1.6;color:var(--mute);max-width:40ch}
.fstatus{font-size:14.5px;line-height:1.6;margin-top:18px;font-weight:400}
.fstatus:empty{display:none}
.fstatus.is-good{color:var(--good)}
.fstatus.is-bad{color:var(--bad)}
.fstatus.is-idle{display:none}

/* the "you were reading about X" line, revealed only when ?product= matched */
.f-prod{font-family:var(--font-mono);font-size:10.5px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--mute);margin-top:16px;
  padding:11px 14px;border:1px dashed var(--line2);border-radius:var(--r-sm)}
.f-prod b{color:var(--accent-txt);font-weight:500}

/* ---- the details rail -------------------------------------------------- */
.f-rail{display:flex;flex-direction:column;gap:clamp(22px,3vh,32px);
  padding-top:clamp(4px,1vh,10px)}
.f-block{border-top:1px solid var(--line);padding-top:16px}
.f-block .k{font-family:var(--font-mono);font-size:10px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--mute)}
.f-block .v{font-size:16.5px;line-height:1.5;margin-top:9px;color:var(--fg);
  font-variant-numeric:tabular-nums}
.f-block .v a{color:var(--fg);border-bottom:1px solid var(--line2)}
.f-block .v a:hover{color:var(--accent-txt);border-bottom-color:var(--accent-txt)}
.f-block .s{font-size:13.5px;line-height:1.6;color:var(--fg2);
  font-weight:350;margin-top:8px}

/* ---- T&E: a longer form, so it gets section rules ---------------------- */
.f-set{border:0;padding:0;margin:clamp(28px,4vh,40px) 0 0}
.f-set:first-of-type{margin-top:clamp(22px,3vh,30px)}
.f-set legend{font-family:var(--font-mono);font-size:10px;font-weight:500;
  letter-spacing:.22em;text-transform:uppercase;color:var(--accent-txt);
  padding:0 0 12px;width:100%;border-bottom:1px solid var(--line);margin-bottom:4px}
.f-set .f-grid{margin-top:18px}

/* ==========================================================================
   Responsive. Nothing may widen the document at 390 / 1440 / 1920.
   ========================================================================== */
@media (max-width:1040px){
  .f-body{grid-template-columns:1fr;gap:clamp(30px,4vh,44px)}
  .f-rail{flex-direction:row;flex-wrap:wrap;gap:24px 44px}
  .f-block{flex:1 1 220px}
}
@media (max-width:620px){
  .f-grid{grid-template-columns:1fr}
  .f-panel{padding:clamp(20px,5vw,28px)}
  .f-actions{gap:14px}
  .f-actions .btn{width:100%;justify-content:center}
}

/* ==========================================================================
   Checkout compatibility hooks.

   js/stripe-checkout.js is shared with the pages below and manipulates these
   four class names directly. It was written against Tailwind, which is no
   longer loaded, so the rules have to live here — without them a rejected
   field is marked `.invalid` and appended a `.field-error` paragraph that
   render identically to valid ones, and the customer sees a form that simply
   refuses to submit with nothing to explain why.

   Do not rename these without changing js/stripe-checkout.js in the same edit.
   ========================================================================== */

/* clearErrors() / showErrors() toggle .invalid on the input itself */
.f-field .form-input.invalid,
.f-field input.invalid,
.f-field select.invalid{
  border-color:var(--bad,#c2564c);
  box-shadow:0 0 0 3px rgba(194,86,76,.16)
}

/* showErrors() creates <p class="field-error …"> inside the .f-field */
.f-field .field-error{
  margin-top:7px;
  font-size:12.5px;
  line-height:1.5;
  color:var(--bad,#c2564c)
}

/* the form-level failure box, and the generic display toggle the JS uses */
.form-error-message{
  margin-top:18px;
  padding:13px 15px;
  border-radius:10px;
  border:1px solid rgba(194,86,76,.4);
  background:rgba(194,86,76,.09);
  font-size:13.5px;
  line-height:1.6;
  color:var(--bad,#c2564c)
}
.hidden{display:none!important}

/* the submit button's inline spinner */
.btn-spinner{
  display:inline-block;
  width:14px;height:14px;
  margin-left:9px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  vertical-align:-2px;
  animation:btnspin .7s linear infinite
}
@keyframes btnspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.btn-spinner{animation-duration:2.4s}}

/* order summary rail used by checkout, the flex calculator and thank-you */
.f-sum{display:flex;justify-content:space-between;gap:16px;padding:11px 0;font-size:14px;border-bottom:1px solid var(--hair)}
.f-sum:last-of-type{border-bottom:0}
.f-sum .k{color:var(--mute)}
.f-sum .v{font-weight:600;text-align:right}
.f-total{display:flex;justify-content:space-between;gap:16px;margin-top:14px;padding-top:16px;border-top:1px solid var(--hair2);align-items:baseline}
.f-total .k{font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}
.f-total .v{font-family:'Space Grotesk',system-ui,sans-serif;font-size:28px;font-weight:700;color:var(--cop3)}
.f-feat{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:9px}
.f-feat li{position:relative;padding-left:22px;font-size:13.5px;line-height:1.65;color:var(--mute)}
.f-feat li::before{content:"";position:absolute;left:0;top:.55em;width:11px;height:6px;border-left:1.8px solid var(--cop3);border-bottom:1.8px solid var(--cop3);transform:rotate(-45deg)}

/* ==========================================================================
   FAQ accordion.

   Native <details>/<summary>: it opens without JavaScript, it is reachable by
   keyboard for free, and Ctrl-F finds text inside a closed panel in current
   browsers. A scripted accordion would give up all three.
   ========================================================================== */
.faq-grp{margin-top:44px}
.faq-grp > .megacap{color:var(--accent-txt)}
.faq-grp > h2{font-family:'Space Grotesk',system-ui,sans-serif;font-size:clamp(23px,2.4vw,30px);font-weight:700;letter-spacing:-.02em;margin:10px 0 0}
.faq-list{margin-top:18px;border-top:1px solid var(--hair)}
.faq{border-bottom:1px solid var(--hair)}
.faq > summary{
  list-style:none;cursor:pointer;display:flex;gap:16px;align-items:flex-start;
  padding:17px 0;font-size:15.5px;font-weight:600;line-height:1.5;
  transition:color .18s ease
}
.faq > summary::-webkit-details-marker{display:none}
.faq > summary:hover{color:var(--cop3)}
.faq > summary:focus-visible{outline:2px solid var(--cop3);outline-offset:3px;border-radius:4px}
/* the marker is a plus that becomes a minus; drawn in CSS so it inherits colour */
.faq > summary::after{
  content:"";flex:0 0 auto;margin-left:auto;position:relative;top:7px;
  width:11px;height:11px;
  background:
    linear-gradient(currentColor,currentColor) center/11px 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center/1.5px 11px no-repeat;
  opacity:.55;transition:transform .2s ease,opacity .18s ease
}
.faq[open] > summary::after{transform:rotate(90deg);background-size:11px 1.5px,0 0;opacity:1}
.faq[open] > summary{color:var(--cop3)}
.faq-a{padding:0 34px 20px 0;font-size:14px;line-height:1.75;color:var(--mute);max-width:78ch}
.faq-a p + p{margin-top:12px}
.faq-a a{color:var(--cop3)}
@media (prefers-reduced-motion:reduce){.faq > summary::after{transition:none}}

/* ==========================================================================
   Legal prose — privacy policy, terms, anything with numbered clauses.

   One measured column. Legal text is read in sequence rather than scanned, so
   it gets a comfortable measure and generous leading rather than the tighter
   marketing rhythm.
   ========================================================================== */
.legal{max-width:76ch;margin-top:8px}
.legal h2{
  font-family:'Space Grotesk',system-ui,sans-serif;
  font-size:clamp(19px,1.8vw,23px);font-weight:650;letter-spacing:-.01em;
  margin:46px 0 0;padding-bottom:11px;border-bottom:1px solid var(--hair2)
}
.legal h2:first-child{margin-top:0}
.legal h3{
  font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent-txt);margin:30px 0 0
}
.legal p{font-size:14.5px;line-height:1.8;color:var(--mute);margin:16px 0 0}
.legal ul{margin:16px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.legal li{position:relative;padding-left:20px;font-size:14.5px;line-height:1.8;color:var(--mute)}
.legal li::before{content:"";position:absolute;left:2px;top:.78em;width:5px;height:5px;border-radius:50%;background:var(--cop3);opacity:.75}
.legal strong{color:var(--txt);font-weight:650}
.legal a{color:var(--cop3)}
.legal address{
  font-style:normal;display:flex;flex-direction:column;gap:7px;
  margin-top:20px;padding:20px 22px;border-radius:12px;
  border:1px solid var(--hair2);background:var(--tint);
  font-size:14.5px;line-height:1.6;color:var(--mute)
}
.legal address strong{font-size:15px}
.legal-date{
  display:inline-block;margin-top:18px;padding:7px 13px;border-radius:999px;
  border:1px solid var(--hair2);background:var(--tint);
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim)
}
