/* ===== Inquiry page (/inquiry/): navy hero band + one centred two-step form card. Loaded only on that page (the page file lists it in $styles). ===== */
.iq {
  --iq-navy: #061a54;
  --iq-blue: var(--color-blue);
  --iq-red: var(--color-red);
  --iq-ink: #1c2a44;
  --iq-muted: #5b667a;
  --iq-line: #c9d1e0;
  --iq-soft: #f3f6fc;
  background: var(--color-grey-50);
  color: var(--iq-ink);
}
.iq [hidden] { display: none !important; }
.iq-narrow { width: min(52rem, 100% - 2rem); margin-inline: auto; }

/* Hero band */
.iq-hero {
  padding: calc(var(--nav-height) + 1.75rem) 0 5.5rem;
  color: #fff;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(59, 111, 224, .45) 0%, rgba(59, 111, 224, 0) 60%),
    linear-gradient(135deg, var(--iq-navy) 0%, #0a2a7a 55%, var(--color-blue) 100%);
}
.iq-hero :focus-visible { outline-color: #fff; }
.iq-back { display: inline-block; margin: 0 0 1.25rem; color: rgba(255, 255, 255, .88); font-size: .92rem; font-weight: 600; text-decoration: none; }
.iq-back:hover { color: #fff; text-decoration: underline; }
.iq-hero h1 { margin: 0 0 .7rem; color: #fff; font-weight: 300; font-size: clamp(2.1rem, 5.5vw, 3.2rem); }
.iq-hero h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .85rem; border-radius: 2px; background: var(--iq-red); }
.iq-lead { max-width: 36rem; margin: 0; color: rgba(255, 255, 255, .9); font-size: clamp(1rem, 2.4vw, 1.2rem); font-weight: 300; }

/* Form card */
.iq-main { position: relative; margin-top: -3.5rem; padding-bottom: clamp(2.5rem, 7vw, 5rem); }
.iq-card {
  padding: clamp(1.25rem, 4.5vw, 2.75rem);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(6, 26, 84, .14), 0 2px 8px rgba(6, 26, 84, .06);
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}
.iq-context { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; margin: 0 0 1.5rem; padding: .7rem 1rem; border: 1px solid #d7e1f8; border-radius: 12px; background: var(--iq-soft); color: var(--iq-navy); font-size: .95rem; }
.iq-context-label { color: var(--iq-muted); }
.iq-context-value { font-weight: 600; }

/* Progress: numbered steps over a track that fills half at step 1 and fully at step 2 */
.iq-progress { margin: 0 0 2rem; }
.iq-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.iq-step { display: flex; align-items: center; gap: .75rem; min-width: 0; color: var(--iq-muted); transition: color .25s; }
.iq-dot { position: relative; flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 2px solid #b4bfd4; border-radius: 50%; background: #fff; font-size: 1rem; font-weight: 600; line-height: 1; transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s; }
.iq-dot-check { display: none; }
.iq-step-text { min-width: 0; }
.iq-step-kicker { display: block; color: var(--iq-muted); font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.iq-step-name { display: block; font-size: 1rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.iq-step.is-active { color: var(--iq-navy); }
.iq-step.is-active .iq-dot { border-color: var(--iq-blue); background: var(--iq-blue); color: #fff; box-shadow: 0 0 0 5px rgba(0, 53, 168, .14); }
.iq-step.is-done { color: var(--iq-navy); }
.iq-step.is-done .iq-dot { border-color: var(--iq-navy); background: var(--iq-navy); color: #fff; }
.iq-step.is-done .iq-dot-num { display: none; }
.iq-step.is-done .iq-dot-check { display: block; }
.iq-bar { height: 6px; overflow: hidden; border-radius: 999px; background: #e3e9f5; }
.iq-bar-fill { display: block; width: 50%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--iq-blue), #3b6fe0); transition: width .4s cubic-bezier(.4, 0, .2, 1); }
.iq-progress[data-step="2"] .iq-bar-fill { width: 100%; }

/* Step panels */
.iq-panel-title { margin: 0 0 .35rem; color: var(--iq-navy); font-weight: 300; font-size: clamp(1.5rem, 3.6vw, 2rem); scroll-margin-top: calc(var(--nav-height) + 1.5rem); }
.iq-panel-title:focus { outline: none; }
.iq-panel-hint { margin: 0 0 1.6rem; color: var(--iq-muted); }
.iq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
.iq-field { min-width: 0; margin: 0 0 1.35rem; }
.iq-field--full { grid-column: 1 / -1; }
.iq label, .iq-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45rem; margin: 0 0 .45rem; color: var(--iq-ink); font-size: .93rem; font-weight: 600; }
.iq-req { color: var(--iq-red); }
.iq-opt { color: var(--iq-muted); font-size: .8rem; font-weight: 400; }

.iq input[type="text"], .iq input[type="email"], .iq input[type="tel"], .iq select, .iq textarea {
  display: block;
  width: 100%;
  min-height: 3.1rem;
  padding: .7rem 1rem;
  border: 1.5px solid var(--iq-line);
  border-radius: 12px;
  background-color: #fff;
  color: var(--iq-ink);
  font: 400 1rem/1.4 var(--font-body);   /* 16px: phones do not zoom the page when a field is focused */
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.iq textarea { min-height: 7.5rem; resize: vertical; }
.iq ::placeholder { color: #667085; opacity: 1; }
.iq input:hover:not(:disabled), .iq select:hover:not(:disabled), .iq textarea:hover { border-color: #9aa7c4; }
.iq input:focus, .iq select:focus, .iq textarea:focus { border-color: var(--iq-blue); outline: 2px solid transparent; box-shadow: 0 0 0 4px rgba(0, 53, 168, .18); }
.iq [aria-invalid="true"] { border-color: var(--iq-red); background-color: #fff8f8; }
.iq [aria-invalid="true"]:focus { border-color: var(--iq-red); box-shadow: 0 0 0 4px rgba(208, 0, 0, .16); }
.iq select:disabled, .iq input:disabled { background-color: #f1f3f8; color: #6f7a90; cursor: not-allowed; }
.iq select {
  padding-right: 2.75rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23061a54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: .8rem;
  text-overflow: ellipsis;
}
.iq select:disabled { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239aa5bb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.iq-qty-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: .6rem; }
.iq-qty-row select { padding-left: .85rem; padding-right: 2.2rem; background-position: right .8rem center; }
.iq-hint { margin: .45rem 0 0; color: var(--iq-muted); font-size: .84rem; }
.iq-hint--row { display: flex; justify-content: space-between; gap: 1rem; }
.iq-count { flex: none; font-variant-numeric: tabular-nums; }
.iq-err { display: flex; align-items: flex-start; gap: .45rem; margin: .45rem 0 0; color: #b00000; font-size: .87rem; font-weight: 600; }
.iq-err::before { content: "!"; flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #b00000; color: #fff; font-size: .75rem; line-height: 1.1rem; text-align: center; }

/* Consent */
.iq-check label { flex-wrap: nowrap; align-items: flex-start; gap: .8rem; margin: 0; font-size: .92rem; font-weight: 400; cursor: pointer; }
.iq-check input { flex: none; width: 1.4rem; height: 1.4rem; margin: .1rem 0 0; accent-color: var(--iq-blue); cursor: pointer; }
.iq-check input:focus-visible { outline: 3px solid var(--iq-blue); outline-offset: 3px; }
.iq-check input[aria-invalid="true"] { outline: 2px solid var(--iq-red); outline-offset: 2px; }
.iq-check a { font-weight: 600; }

/* Buttons reuse the site's .btn / .btn-enquire / .btn-ghost; only size and layout are adjusted here */
.iq .btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.1rem; padding: .75rem 1.9rem; border-radius: 12px; font-size: 1rem; }
.iq .btn-enquire { box-shadow: 0 8px 20px rgba(208, 0, 0, .22); }
.iq .btn:focus-visible { outline: 3px solid var(--iq-navy); outline-offset: 3px; }
.iq .btn[disabled], .iq .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.iq-arrow { flex: none; }
.iq-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .75rem; padding-top: 1.6rem; border-top: 1px solid #e6ebf5; }
.iq-actions--end { justify-content: flex-end; }
.iq-actions--start { justify-content: flex-start; flex-wrap: wrap; }
.iq-spinner { display: none; flex: none; width: 1.1rem; height: 1.1rem; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; }
.is-busy .iq-spinner { display: inline-block; animation: iq-spin .8s linear infinite; }
@keyframes iq-spin { to { transform: rotate(360deg); } }

/* Hidden trap field (kept off-screen, not display:none) */
.iq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Result panels */
.iq-result-title { margin: 0 0 .7rem; color: var(--iq-navy); font-weight: 300; font-size: clamp(1.6rem, 4vw, 2.1rem); scroll-margin-top: calc(var(--nav-height) + 1.5rem); }
.iq-result-title:focus { outline: none; }
.iq-result p { margin: 0 0 1rem; }
.iq-result .iq-actions { margin-top: 1.5rem; padding-top: 0; border-top: 0; }

.iq-alt { margin: 1.6rem 0 0; color: var(--iq-muted); font-size: .95rem; text-align: center; }
.iq-alt a { color: var(--iq-navy); font-weight: 600; white-space: nowrap; }
.iq-noscript { margin: 0 0 1.5rem; padding: .9rem 1.1rem; border-radius: 12px; background: #fff3cd; color: #6b2d00; }

/* Subtle entrance when a step or result appears */
@media (prefers-reduced-motion: no-preference) {
  .iq-panel, .iq-result { animation: iq-in .3s ease-out; }
  @keyframes iq-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .iq *, .iq *::before, .iq *::after { transition: none !important; animation: none !important; }
}

/* Tablet and phone */
@media (max-width: 639px) {
  .iq-hero { padding: calc(var(--nav-height) + 1rem) 0 4.5rem; }
  .iq-main { margin-top: -3rem; }
  .iq-grid { grid-template-columns: 1fr; }
  .iq-actions { flex-direction: column-reverse; align-items: stretch; }
  .iq-actions .btn { width: 100%; }
}
@media (max-width: 479px) {
  .iq-step-kicker { display: none; }
  .iq-step { gap: .55rem; }
  .iq-dot { width: 2rem; height: 2rem; font-size: .9rem; }
  .iq-step-name { font-size: .88rem; }
}
@media (max-width: 360px) {
  .iq-steps { gap: .35rem; }
  .iq-step { gap: .45rem; }
  .iq-card { padding: 1.1rem; }
  .iq-dot { width: 1.8rem; height: 1.8rem; }
  .iq-step-name { font-size: .78rem; }
  .iq-qty-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .iq-qty-row select { padding-left: .7rem; padding-right: 2rem; background-position: right .65rem center; }
}
