/* ═══════════════════════════════════════════════════════════════════════════
   MAVEA — INQUIRY FORM, shared component.

   ONE Typeform-style form used in two places:
     • inquiry.html          — standalone page, the form is the hero
     • index.html            — embedded in the closing CTA band (.inqf--embedded)

   Behaviour lives in js/inquiry-form.js, which drives every [data-inqf] root
   on the page independently.

   The card is deliberately compact: min-height (not height) sizes it to the
   intro screen, and a taller step — the three-option choice screen — simply
   grows the card rather than being clipped. Both pages share this sizing.
   Nothing here is page-specific except the --embedded modifier at the bottom.
   ═══════════════════════════════════════════════════════════════════════════ */


.inqf {
  padding: clamp(7.5rem, 14vh, 10rem) clamp(1.5rem, 6vw, 4rem) clamp(3.5rem, 7vw, 5.5rem);
}
.inqf__grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* ── LEFT — static copy ── */
.inqf__title {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.inqf__title b { font-weight: 700; }
/* the hand-drawn marker ellipse is the shared .circled component
   (css/style.css) — drawn on scroll by main.js */
.inqf__lead {
  margin: 0 0 1.6rem;
  max-width: 44ch;
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  line-height: 1.65;
  color: var(--grey);
}
.inqf__points { list-style: none; margin: 0; padding: 0; }
.inqf__points li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--dark);
}
.inqf__points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.48em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
}

/* ── RIGHT — the form card ── */
.inqf__card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: clamp(312px, 42vh, 392px);
}
.inqf__bar { height: 4px; background: rgba(255, 81, 171, 0.14); }
.inqf__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pink);
  transition: width 0.45s ease;
}
.inqf__stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(1.7rem, 3.4vw, 2.6rem);
}
.inqf__screen { display: none; flex: 1; flex-direction: column; }
.inqf__screen.is-active { display: flex; }
@keyframes inqf-in-next { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes inqf-in-back { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }
.inqf__screen.enter-next { animation: inqf-in-next 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
.inqf__screen.enter-back { animation: inqf-in-back 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
@media (prefers-reduced-motion: reduce) {
  .inqf__screen.enter-next, .inqf__screen.enter-back { animation: none; }
  .inqf__bar i { transition: none; }
}

/* intro screen */
.inqf__intro { text-align: center; justify-content: center; }
.inqf__intro-title {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.35;
  color: var(--dark);
  text-wrap: balance;
}
.inqf__intro-sub {
  margin: 0 auto 1.6rem;
  font-size: 0.92rem;
  color: var(--grey);
}
.inqf__clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;                 /* sits with the copy, not pinned down */
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--grey);
}
.inqf__clock svg { color: var(--pink); flex: 0 0 auto; }

/* question screens */
.inqf__num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0.9rem;
}
.inqf__q {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.3;
  color: var(--dark);
}
.inqf__input, .inqf__textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.14);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--dark);
  padding: 0.55rem 0.1rem;
  outline: none;
  transition: border-color 0.25s ease;
}
.inqf__input:focus, .inqf__textarea:focus { border-color: var(--pink); }
.inqf__input::placeholder, .inqf__textarea::placeholder { color: rgba(30, 30, 30, 0.32); font-weight: 400; }
.inqf__textarea { resize: none; min-height: 96px; line-height: 1.5; }
.inqf__choice {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 0.6rem;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--dark);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.inqf__choice:hover { border-color: var(--pink); }
.inqf__choice.is-picked { border-color: var(--pink); color: #C9166F; background: rgba(255, 81, 171, 0.06); }
.inqf__choice:focus-visible, .inqf__btn:focus-visible, .inqf__back:focus-visible {
  outline: 2px solid #636363; outline-offset: 2px;
}
.inqf__err {
  display: none;
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: #C9166F;
}
.inqf__err.is-on { display: block; }

/* controls */
/* Footer bar: "← Назад" on the left, the pink action button on the right.
   (There is no Enter hint — Enter still advances, it is just not advertised.) */
.inqf__ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
}
/* the button is authored first in the DOM (so it stays the primary control for
   assistive tech and Enter), but is painted last */
.inqf__ctrl .inqf__btn { order: 2; }
.inqf__ctrl .inqf__back { order: 1; }
.inqf__ctrl[hidden] { display: none; }   /* the explicit flex must not defeat [hidden] */
.inqf__btn {
  border: 0;
  border-radius: 12px;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.inqf__btn:hover { box-shadow: 0 8px 26px rgba(255, 81, 171, 0.4); transform: translateY(-1px); }
.inqf__btn:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.inqf__btn--full { width: 100%; }
.inqf__back {
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  cursor: pointer;
  padding: 0.4rem 0;
}
.inqf__back:hover { color: var(--dark); }

/* success screen */
.inqf__done { text-align: center; justify-content: center; }
.inqf__done-mark {
  width: 44px; height: 44px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: rgba(255, 81, 171, 0.12);
  color: var(--pink);
  display: flex; align-items: center; justify-content: center;
}
.inqf__done-text {
  margin: 0 auto;
  max-width: 34ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--dark);
}

/* honeypot — visually gone, present for bots */
.inqf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .inqf { padding-top: clamp(6.5rem, 12vh, 8rem); }
  .inqf__grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* ── Embedded variant — inside index.html's closing CTA band ──────────────
   The standalone page gives .inqf a hero-sized top padding; in the band that
   space is already provided by the section, so it is reset here. */
.site-cta--form {
  text-align: left;
  padding-block: clamp(2.6rem, 5vw, 4.5rem);
  scroll-margin-top: calc(var(--nav-h, 80px) + 20px);
}
.inqf--embedded {
  padding: 0;
}
.inqf--embedded .inqf__grid { max-width: 1160px; }

/* the band's heading is the site-wide .site-cta__title — keep it left-aligned
   and unconstrained here, and let the bullets sit directly under it */
.site-cta--form .site-cta__inner { max-width: none; padding-inline: 0; }
.site-cta--form .site-cta__title {
  margin: 0 0 1.4rem;
  text-align: left;
}

