/* ============================================================================
   ONE-PAGE INQUIRY
   ----------------------------------------------------------------------------
   The Air Dev visual system applied to a form: square corners, no shadows,
   hairlines in rgba(149,126,104,.22), Storica uppercase headings with a short
   underline, Darker Grotesque for everything utilitarian.

   Three numbers here are requirements, not preferences:
     · inputs are 16px          — below that, iOS zooms on focus and the page
                                  starts scrolling sideways
     · controls are 48px tall   — the minimum reliable touch target
     · nothing is wider than    — a form that can scroll sideways on a phone
       100% of its column         is a form that gets abandoned
   ========================================================================== */

.iq {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  box-sizing: border-box;
}

/* ---- Head --------------------------------------------------------------- */
.iq__head { margin-bottom: 48px; }

.iq__eyebrow {
  font-family: 'Darker Grotesque', system-ui, sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 1.04px;
  text-transform: uppercase; color: #655c54; margin: 0 0 14px;
}

.iq__title {
  font-family: 'Storica', Georgia, serif;
  font-size: 34px; line-height: 38px; font-weight: 300;
  letter-spacing: 1.36px; text-transform: uppercase; color: #0D0D0D;
  margin: 0 0 18px;
}
/* The short underline is the Air Dev heading signature — content-width of the
   heading only would need JS, so a fixed short rule stands in for it. */
.iq__title::after {
  content: ''; display: block; width: 64px; height: 1px;
  background: rgba(149, 126, 104, 0.45); margin-top: 18px;
}

.iq__intro {
  font-family: 'Darker Grotesque', system-ui, sans-serif;
  font-size: 19px; line-height: 26px; color: #6B6259;
  margin: 0 0 14px; max-width: 56ch;
}

/* The promise about her time. Deliberately quiet, deliberately present. */
.iq__time {
  font-family: 'Darker Grotesque', system-ui, sans-serif;
  font-size: 14px; letter-spacing: 1.12px; text-transform: uppercase;
  color: #655c54; margin: 0;
}

/* ---- Sections ----------------------------------------------------------- */
.iq__section {
  border-top: 1px solid rgba(149, 126, 104, 0.22);
  padding-top: 32px;
  margin-bottom: 44px;
}

.iq__sectiontitle {
  font-family: 'Storica', Georgia, serif;
  font-size: 17px; line-height: 20px; font-weight: 300;
  letter-spacing: 1.36px; text-transform: uppercase; color: #0D0D0D;
  margin: 0 0 26px;
}

/* Two columns on desktop, one on mobile. Nothing else. */
.iq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}

.iq__field { min-width: 0; }            /* lets grid children actually shrink */
.iq__field--wide { grid-column: 1 / -1; }

.iq__label {
  display: block;
  font-family: 'Darker Grotesque', system-ui, sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 1.04px;
  text-transform: uppercase; color: #655c54; margin: 0 0 8px;
}

.iq__optional {
  font-weight: 400; letter-spacing: 1.04px;
  color: #A39488; text-transform: uppercase;
}

.iq__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  font-family: 'Darker Grotesque', system-ui, sans-serif;
  font-size: 16px;                       /* never lower — see the header note */
  line-height: 1.4;
  color: #0D0D0D;
  background: #FBF8F5;
  border: 1px solid rgba(149, 126, 104, 0.32);
  border-radius: 0;                      /* square, like everything else */
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.iq__input:hover { border-color: rgba(149, 126, 104, 0.55); }

/* A visible focus ring, always. The previous outline:none had no replacement,
   which made the form unusable by keyboard. */
.iq__input:focus-visible {
  outline: 2px solid #565F68;
  outline-offset: 1px;
  border-color: #565F68;
}

.iq__input--bad { border-color: #9B4B3F; background: #FDF6F4; }

.iq__select {
  /* Room for the chevron, and the chevron itself — drawn rather than an
     image so it inherits nothing and loads nothing. */
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, #655c54 50%),
    linear-gradient(135deg, #655c54 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.iq__area { min-height: 92px; resize: vertical; line-height: 1.5; }

.iq__help {
  font-family: 'Darker Grotesque', system-ui, sans-serif;
  font-size: 14px; color: #655c54; margin: 6px 0 0;
}

.iq__error {
  font-family: 'Darker Grotesque', system-ui, sans-serif;
  font-size: 14px; color: #9B4B3F; margin: 6px 0 0;
}

/* ---- Checkboxes --------------------------------------------------------- */
.iq__check {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: 'Darker Grotesque', system-ui, sans-serif;
  font-size: 16px; line-height: 22px; color: #3E3831;
  cursor: pointer;
  min-height: 48px;                      /* the whole label is the target */
  padding: 12px 0;
}

.iq__check input {
  flex: 0 0 auto;
  width: 20px; height: 20px; margin: 1px 0 0;
  accent-color: #565F68;
  border-radius: 0;
}

/* The acknowledgement sits directly above the submit button, every time. */
.iq__ack {
  border-top: 1px solid rgba(149, 126, 104, 0.22);
  padding-top: 24px;
  margin-bottom: 8px;
}

/* ---- Submit ------------------------------------------------------------- */
.iq__submit { margin-top: 24px; }

.iq__go {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 16px 28px;
  font-family: 'Darker Grotesque', system-ui, sans-serif;
  font-size: 15px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #EAE3DB;
  background: #565F68;
  border: 1px solid #565F68;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

.iq__go:hover { background: #454D55; border-color: #454D55; }
.iq__go:focus-visible { outline: 2px solid #0D0D0D; outline-offset: 2px; }
.iq__go[disabled] { opacity: 0.6; cursor: default; }

/* ---- Mobile ------------------------------------------------------------- */
@media (max-width: 767px) {
  .iq { padding: 36px 20px 72px; }
  .iq__head { margin-bottom: 36px; }
  .iq__title { font-size: 26px; line-height: 30px; letter-spacing: 1.04px; }
  .iq__intro { font-size: 17px; line-height: 24px; }

  /* One column. This is the rule that keeps 375px from scrolling sideways. */
  .iq__grid { grid-template-columns: 1fr; gap: 20px; }
  .iq__field--wide { grid-column: auto; }

  .iq__section { margin-bottom: 34px; padding-top: 26px; }
  .iq__sectiontitle { margin-bottom: 20px; }

  /* The button stays reachable rather than living at the end of a long
     scroll — the acknowledgement above it stays visible with it. */
  .iq__go { min-height: 52px; }
}

/* Nothing inside the form may exceed its column at any width. */
.iq, .iq * { max-width: 100%; }
.iq img { height: auto; }

/* The line that says the acknowledgement is optional. Sits under the box,
   indented to its text so it reads as part of the same thought. */
.iq__acknote {
  font-family: 'Darker Grotesque', system-ui, sans-serif;
  font-size: 15px;
  line-height: 20px;
  color: #655c54;
  margin: 0 0 4px 32px;
}
@media (max-width: 767px) {
  .iq__acknote { margin-left: 32px; font-size: 14px; }
}
