/* Inquire: the form comes first. A quiet column with the intro and the ways to reach Patrizia,
   the form in a soft denim panel beside it, then the shared How it works, call panel and questions
   (loaded from patrace.css and studio.css). */

/* ---------- Opening: intro column + form panel ---------- */
.iq-open { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 110px); align-items: start; padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(90px, 9vw, 140px); }
.iq-side { position: sticky; top: calc(var(--header-h) + clamp(28px, 4vw, 56px)); max-width: 470px; }
.iq-title { font-family: var(--font-sans); font-weight: 300; font-size: var(--size-title); line-height: 1.18; letter-spacing: -.015em; margin: 18px 0 26px; }
.iq-side .body-s { margin: 0 0 16px; max-width: 440px; }
/* Ways to reach Patrizia: three quiet notes, no rules, so they never read as fields */
.iq-facts { display: flex; flex-wrap: wrap; gap: 22px clamp(28px, 3.4vw, 48px); margin-top: clamp(36px, 4vw, 56px); }
.iq-facts p { margin: 0; }
.iq-facts p:not(.label) { font-size: 13.5px; line-height: 1.6; }
.iq-facts .label { color: var(--soft-ink); margin-bottom: 6px; }
.iq-facts a:not(.link-bracket) { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: text-decoration-color .25s ease; }
.iq-facts a:not(.link-bracket):hover { text-decoration-color: var(--ink); }
.iq-facts .link-bracket { color: var(--plum); }

/* ---------- The form ---------- */
.iq-panel { background: var(--tint-denim-1); border-radius: 14px; padding: clamp(26px, 3.6vw, 56px); scroll-margin-top: calc(var(--header-h) + 16px); }
.iq-form { display: grid; gap: clamp(36px, 4vw, 52px); }
.iq-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 26px; }
/* Group heading: label on the left, number on the right, no line, so only the white boxes read as places to write */
.iq-legend { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; width: 100%; padding: 0; margin-bottom: 14px; }
.iq-legend .num { text-align: right; }
/* group titles in light Manrope, so they read as headings and the Questrial labels stay with their boxes */
.iq-gt { font-family: var(--font-sans); font-weight: 300; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.iq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px clamp(20px, 2.4vw, 34px); }
.iq-field { display: grid; gap: 8px; min-width: 0; }
.iq-field > .label { color: var(--soft-ink); }
.iq-opt { margin-left: 6px; opacity: .6; }
.iq-q { color: var(--soft-ink); margin-bottom: 4px; }

/* Every place to write is a single fine line */
.iq-field input, .iq-field textarea, .iq-field select {
  width: 100%; margin: 0; padding: 8px 0 10px;
  font-family: var(--font-sans); font-size: 15px; line-height: 1.5; color: var(--ink);
  background-color: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color .3s ease;
  -webkit-appearance: none; appearance: none;
}
.iq-field textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.iq-field select { cursor: pointer; padding-right: 24px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: right 6px center, right 1px center; background-size: 5px 5px; background-repeat: no-repeat; }
.iq-field select:invalid, .iq-field select option[value=""] { color: var(--soft-ink); }
.iq-field input::placeholder, .iq-field textarea::placeholder { color: var(--soft-ink); opacity: .55; }
.iq-field input:focus, .iq-field textarea:focus, .iq-field select:focus { outline: none; border-bottom-color: var(--ink); }
.iq-field.is-wrong input, .iq-field.is-wrong textarea { border-bottom-color: var(--bordeaux); }

/* Service choice: small square chips, plum once chosen */
.iq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.iq-chip { position: relative; cursor: pointer; }
.iq-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.iq-chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--line-strong); background: var(--white); font-family: var(--font-label); font-size: var(--size-label); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
.iq-chip:hover span { border-color: var(--washed-denim); }
.iq-chip input:checked + span { background: var(--plum); border-color: var(--plum); color: var(--white); }
.iq-chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }

/* Honeypot, off screen for people */
.iq-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.iq-end { display: grid; gap: 26px; padding-top: 6px; }
.iq-consent { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; font-size: 13px; line-height: 1.6; cursor: pointer; }
.iq-consent input { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin: 2px 0 0; border: 1px solid var(--line-strong); background: var(--white); border-radius: 0; cursor: pointer; display: grid; place-content: center; }
.iq-consent input::after { content: ""; width: 8px; height: 8px; background: var(--plum); transform: scale(0); transition: transform .2s ease; }
.iq-consent input:checked::after { transform: scale(1); }
.iq-consent input:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.iq-consent.is-wrong input { border-color: var(--bordeaux); }
.iq-consent a { border-bottom: 1px solid var(--line-strong); }
.iq-consent a:hover { border-color: var(--ink); }
.iq-send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.iq-send .button[disabled] { opacity: .6; cursor: progress; }
.iq-note { margin: 0; font-size: 13px; color: var(--soft-ink); }
.iq-msg { margin: 0; font-size: 13.5px; line-height: 1.6; padding: 14px 16px; background: var(--white); border-left: 2px solid var(--bordeaux); }

/* Thank-you state, in place of the form */
.iq-done { display: grid; justify-items: start; gap: 18px; padding-block: clamp(30px, 6vw, 90px); outline: none; }
.iq-done-t { margin: 0; font-family: var(--font-serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.22; letter-spacing: -.01em; max-width: 520px; }
.iq-done .body-s { margin: 0 0 10px; max-width: 460px; }
.js .iq-done:not([hidden]) > * { animation: heroIn 1s cubic-bezier(.2,.7,.2,1) both; }
.js .iq-done:not([hidden]) > *:nth-child(2) { animation-delay: .1s; }
.js .iq-done:not([hidden]) > *:nth-child(3) { animation-delay: .2s; }
.js .iq-done:not([hidden]) > *:nth-child(4) { animation-delay: .3s; }

/* The panel arrives after the intro, like the pictures elsewhere on the site */
.js .iq-panel { opacity: 0; transform: translateY(24px); animation: heroIn 1.3s cubic-bezier(.2,.7,.2,1) .35s forwards; }

/* ---------- Shared sections, tuned for this page ---------- */
/* After you send it: on white, opened by a fine grey line */
.iq-how { background: transparent; border-radius: 0; padding-block: 0 clamp(70px, 7vw, 110px); }
.iq-how > .box:first-child { border-top: 1px solid var(--line-strong); padding-top: clamp(56px, 6vw, 90px); }
.iq-how .head { margin-bottom: clamp(40px, 5vw, 70px); }
.iq-how .how { margin-top: 0; }
.iq-call { padding-block: var(--edge-gap) 0; }

@media (max-width: 900px) {
  .iq-open { grid-template-columns: 1fr; gap: 44px; padding-top: 36px; }
  .iq-side { position: static; max-width: none; }
}
@media (max-width: 600px) {
  .iq-row { grid-template-columns: 1fr; }
  .iq-panel { margin-inline: calc(var(--edge-gap) - var(--gutter)); padding: 28px 20px 34px; }
  .iq-chip span { min-height: 36px; padding: 0 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .iq-panel, .js .iq-done:not([hidden]) > * { animation: none; opacity: 1; transform: none; }
}

/* hidden states stay hidden whatever their display */
.iq-done[hidden], .iq-msg[hidden], .iq-form[hidden], .iq-ref[hidden] { display: none; }
.js .iq-ref:not([hidden]) { animation: heroIn .7s cubic-bezier(.2,.7,.2,1) both; }
