/* The request page.
 *
 * Three attempts got here. The first was a plain form on a cream page — correct,
 * and it looked like an unstyled template. The second put it in a card on a dark
 * band, which fixed "does not look like us" but not "flat". The objection each
 * time was the same and it was right: the page had layout but no idea.
 *
 * The idea it has now is the business itself. Aeroinis is one desk with two
 * halves, so the page opens as two halves — full height, no scroll, choose a
 * side. The side you choose opens; the other folds to a rail you can go back to.
 *
 * And then the part nobody else has: as you type the dimensions, the form
 * answers. Every competitor takes your numbers away and comes back later. This
 * one tells you, while you are still typing, which freighters your piece clears —
 * from the same sourced door data the aircraft guide publishes.
 *
 * No hero video: the moving picture is behind the *choice*, where it sells, and
 * gone by the time there are fields to read.
 */

body.inquire-page { background: #0B0D0F; }
/* The floating side tab and the foot bar are the same offer twice. */
body.inquire-page .ai-side-contact { display: none; }

.iq-wrap { width: min(calc(100% - 44px), 1180px); margin: 0 auto; }

/* ======================================================================== */
/* 1 — the split                                                            */
/* ======================================================================== */
/* A <fieldset> is the right element — this is one question with two answers —
   but it does not honour min-height as a grid container, which is why the first
   attempt left the halves short and a band of dead space beneath them. Stating
   the row height directly fixes it, and min-inline-size:0 stops the fieldset's
   own intrinsic sizing from fighting the grid. */
.iq-split { display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(calc(100svh - 66px), 480px);
  min-inline-size: 0; border: 0; padding: 0; margin: 0; }
.iq-split.is-resolved { display: none; }

.iq-half { position: relative; overflow: hidden; cursor: pointer; }
.iq-half input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  margin: 0; cursor: pointer; z-index: 4; }

.iq-half__media { position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: grayscale(.85) brightness(.42);
  transform: scale(1.06);
  transition: filter .7s cubic-bezier(.22,.9,.24,1), transform 1.1s cubic-bezier(.22,.9,.24,1); }
.iq-half::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,13,15,.35) 0%, rgba(11,13,15,.28) 45%, rgba(11,13,15,.9) 100%); }
/* A hairline of gold between the halves, not a border box. */
.iq-half + .iq-half::before { content: ""; position: absolute; left: 0; top: 8%; bottom: 8%;
  width: 1px; z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(200,169,106,.5), transparent); }

.iq-half__body { position: relative; z-index: 2; display: flex; flex-direction: column;
  justify-content: flex-end; height: 100%; padding: clamp(26px, 4vw, 58px); pointer-events: none; }
.iq-half__no { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .72rem;
  letter-spacing: .22em; color: #C8A96A; }
.iq-half__name { margin: 14px 0 0; font-family: Newsreader, Georgia, serif; font-weight: 400;
  font-size: clamp(38px, 5.6vw, 76px); line-height: .98; letter-spacing: -.025em; color: #F5F4F0; }
.iq-half__meta { margin: 14px 0 0; max-width: 34ch; font-size: .92rem; line-height: 1.6;
  color: rgba(245,244,240,.74); }
.iq-half__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #F5F4F0; }
.iq-half__go i { display: grid; place-items: center; width: 34px; height: 34px; font-style: normal;
  border: 1px solid rgba(245,244,240,.4); border-radius: 50%;
  transition: background .3s, border-color .3s, color .3s, transform .3s; }

.iq-half:hover .iq-half__media,
.iq-half:focus-within .iq-half__media { filter: grayscale(0) brightness(.56); transform: scale(1); }
.iq-half:hover .iq-half__go i,
.iq-half:focus-within .iq-half__go i { background: #C8A96A; border-color: #C8A96A; color: #14171B;
  transform: translateX(4px); }
.iq-half input:focus-visible ~ .iq-half__body .iq-half__go i { outline: 2px solid #F5F4F0; outline-offset: 3px; }

/* ======================================================================== */
/* 2 — the desk, once a side is chosen                                      */
/* ======================================================================== */
.iq-desk { display: none; }
.iq-desk.is-open { display: block; animation: iq-rise .5s cubic-bezier(.22,.9,.24,1) both; }
@keyframes iq-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* The chosen side stays on screen as a band, so you always know which desk you
   are writing to — and can change your mind without losing what you typed. */
.iq-mode { position: relative; overflow: hidden; }
.iq-mode__media { position: absolute; inset: 0; background-size: cover; background-position: center 62%;
  filter: brightness(.42); }
.iq-mode::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,15,.5), rgba(11,13,15,.88)); }
.iq-mode__inner { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 18px 30px; padding: clamp(30px, 4vw, 54px) 0 clamp(66px, 8vw, 104px); }
.iq-mode__no { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .72rem;
  letter-spacing: .22em; color: #C8A96A; }
.iq-mode__name { margin: 8px 0 0; font-family: Newsreader, Georgia, serif; font-weight: 400;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.02; letter-spacing: -.022em; color: #F5F4F0; }
.iq-mode__meta { margin: 10px 0 0; max-width: 52ch; font-size: .94rem; line-height: 1.65;
  color: rgba(245,244,240,.74); }
.iq-mode__swap { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border: 1px solid rgba(245,244,240,.34); border-radius: 999px;
  background: transparent; font: inherit; font-size: .8rem; font-weight: 700; color: #F5F4F0;
  cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.iq-mode__swap:hover { border-color: #C8A96A; background: #C8A96A; color: #14171B; }

/* ======================================================================== */
/* 3 — the form                                                             */
/* ======================================================================== */
.iq-body { position: relative; z-index: 3; margin-top: clamp(-88px, -6vw, -56px); padding-bottom: 84px; }
.iq-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.iq-card { padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(11,13,15,.08);
  border-radius: 18px; background: #FCFBF8; box-shadow: 0 30px 70px rgba(0,0,0,.42); }

.iq-prog { margin: 0 0 22px; }
.iq-prog__track { position: relative; height: 2px; border-radius: 999px; background: rgba(11,13,15,.12); }
.iq-prog__track i { position: absolute; inset: 0 auto 0 0; width: 50%; border-radius: 999px;
  background: linear-gradient(90deg, #C8A96A, #E6CE9B);
  transition: width .5s cubic-bezier(.22,.9,.24,1); }
.iq-prog__list { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: baseline;
  margin: 13px 0 0; padding: 0; list-style: none; }
.iq-prog__list li { display: flex; align-items: baseline; gap: 9px; font-size: .84rem;
  font-weight: 700; color: #A9A296; transition: color .25s; }
.iq-prog__list li b { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .7rem; }
.iq-prog__list li.is-on { color: #0B0D0F; }
.iq-prog__list li.is-on b { color: #806536; }
.iq__req { justify-self: end; font-size: .72rem; font-weight: 500; color: #8B8578; }
.iq__req span { color: #A2402F; }

.iq__panel[hidden], [data-iq-step][hidden] { display: none; }
[data-iq-step] { animation: iq-rise .38s cubic-bezier(.22,.9,.24,1) both; }
.iq__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.iq__f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.iq__f--wide { grid-column: 1 / -1; }
.iq__f label { font-size: .68rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: #6B7076; }
.iq__f label em { font-style: normal; color: #A2402F; }
.iq__f input, .iq__f select, .iq__f textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(11,13,15,.15);
  border-radius: 10px; background: #fff; font: inherit; font-size: .98rem; color: #0B0D0F;
  transition: border-color .18s, box-shadow .18s; }
.iq__f textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.iq__f input:focus, .iq__f select:focus, .iq__f textarea:focus {
  outline: none; border-color: #C8A96A; box-shadow: 0 0 0 3px rgba(200,169,106,.26); }
.iq__f input::placeholder, .iq__f textarea::placeholder { color: #ADA79B; }
.iq__hint { font-size: .78rem; line-height: 1.6; color: #6B7076; }
.iq__trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* ---- the live answer ---------------------------------------------------- */
/* The whole argument of this page. Every other broker takes your numbers away
   and replies later; this says something true while you are still typing, from
   the same published door data the aircraft guide is built on. */
.iq-live { grid-column: 1 / -1; margin-top: 4px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid rgba(11,13,15,.12); background: #fff;
  transition: border-color .3s, background .3s; }
.iq-live[data-state="idle"] { color: #6B7076; }
.iq-live[data-state="fits"] { border-color: rgba(63,125,88,.45); background: #F2F7F3; }
.iq-live[data-state="tight"] { border-color: rgba(154,123,47,.45); background: #FAF6EA; }
.iq-live[data-state="no"] { border-color: rgba(162,64,47,.45); background: #FBF2F0; }
.iq-live__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.iq-live__n { font-family: Newsreader, Georgia, serif; font-size: 1.6rem; line-height: 1; color: #0B0D0F; }
.iq-live__t { font-size: .92rem; font-weight: 700; color: #0B0D0F; }
.iq-live__sub { margin: 7px 0 0; font-size: .8rem; line-height: 1.6; color: #5F6469; }
.iq-live__bars { display: flex; gap: 4px; margin: 12px 0 0; }
.iq-live__bars i { flex: 1 1 0; height: 5px; border-radius: 999px; background: rgba(11,13,15,.12);
  transition: background .35s; }
.iq-live__bars i.is-fits { background: #3F7D58; }
.iq-live__bars i.is-tight { background: #9A7B2F; }
.iq-live__bars i.is-no { background: rgba(162,64,47,.35); }

/* ---- actions ------------------------------------------------------------ */
.iq__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin: 26px 0 0; padding-top: 22px; border-top: 1px solid rgba(11,13,15,.1); }
.iq__next, .iq__send { display: inline-flex; align-items: center; gap: 11px;
  padding: 15px 30px; border: 0; border-radius: 999px; background: #0B0D0F; color: #F5F4F0;
  font: inherit; font-size: .95rem; font-weight: 800; cursor: pointer;
  transition: background .18s, transform .18s; }
.iq__next:hover, .iq__send:hover { background: #C8A96A; color: #14171B; transform: translateY(-1px); }
.iq__back { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem;
  color: #5F6469; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.iq__back:hover { color: #0B0D0F; }
.iq__promise { margin: 18px 0 0; font-size: .82rem; line-height: 1.7; color: #6B7076; }

.iq__done { padding: 26px; border: 1px solid rgba(63,125,88,.42); border-radius: 14px; background: #F2F7F3; }
.iq__done[hidden] { display: none; }
.iq__done strong { display: block; font-size: 1.1rem; color: #0B0D0F; }
.iq__done p { margin: 10px 0 0; font-size: .9rem; line-height: 1.72; color: #3F4A42; }
.iq__done code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .95rem;
  color: #0B0D0F; background: rgba(11,13,15,.06); padding: 2px 7px; border-radius: 4px; }

/* ---- rail --------------------------------------------------------------- */
.iq-rail { display: flex; flex-direction: column; gap: 14px; }
.iq-rail__card { padding: 22px; border: 1px solid rgba(245,244,240,.12); border-radius: 14px;
  background: rgba(245,244,240,.045); color: rgba(245,244,240,.78); backdrop-filter: blur(6px); }
.iq-rail h2 { margin: 0 0 14px; font-family: Satoshi, system-ui, sans-serif; font-size: .68rem;
  font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: #C8A96A; }
.iq-rail ol { margin: 0; padding: 0; list-style: none; counter-reset: iq; }
.iq-rail ol li { position: relative; counter-increment: iq; padding: 0 0 15px 32px;
  font-size: .86rem; line-height: 1.6; }
.iq-rail ol li:last-child { padding-bottom: 0; }
.iq-rail ol li::before { content: counter(iq, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .7rem; font-weight: 700; color: #C8A96A; }
.iq-rail ol li b { display: block; color: #F5F4F0; font-weight: 700; }
.iq-rail p { margin: 0; font-size: .86rem; line-height: 1.68; }
.iq-rail p + p { margin-top: 10px; }
.iq-rail a { color: #E4CE9C; }
.iq-rail strong { color: #F5F4F0; }

/* ---- foot bar ----------------------------------------------------------- */
.iq-bar { position: sticky; bottom: 0; z-index: 30; border-top: 1px solid rgba(245,244,240,.12);
  background: rgba(11,13,15,.88); backdrop-filter: blur(12px); }
.iq-bar__inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.iq-bar a { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 10px;
  font-size: .86rem; font-weight: 700; color: #F5F4F0; text-decoration: none; }
.iq-bar a + a { border-left: 1px solid rgba(245,244,240,.12); }
.iq-bar a:hover { color: #C8A96A; }
.iq-bar a:last-child { background: #C8A96A; color: #14171B; border-radius: 10px; margin: 7px 0; }
.iq-bar a:last-child:hover { background: #DCC088; color: #14171B; }
.iq-bar svg { flex: none; }

@media (max-width: 980px) {
  .iq-split { grid-template-columns: 1fr; min-height: 0; }
  .iq-half { min-height: 46svh; }
  .iq-half + .iq-half::before { left: 8%; right: 8%; top: 0; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,169,106,.5), transparent); }
  .iq-cols { grid-template-columns: 1fr; }
  .iq-rail { flex-direction: row; flex-wrap: wrap; }
  .iq-rail__card { flex: 1 1 290px; }
}
@media (max-width: 700px) {
  .iq__grid, .iq__trio { grid-template-columns: 1fr; }
  .iq-prog__list { grid-template-columns: 1fr 1fr; }
  .iq__req { grid-column: 1 / -1; justify-self: start; }
  .iq-bar__inner { grid-template-columns: 1fr 1fr; }
  .iq-bar a:last-child { grid-column: 1 / -1; margin: 7px 10px; }
  .iq-bar a + a { border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .iq-half__media, .iq-half__go i, .iq-prog__track i, .iq-live, .iq-live__bars i { transition: none; }
  .iq-desk.is-open, [data-iq-step] { animation: none; }
}
