/* =========================================================
   Contact page — "Forma" layout in lavender
   Loaded after site.css; shares fonts, footer and menu.
   ========================================================= */
.forma {
  --f-bg: #f0eff4;
  --f-ink: #17143a;
  --f-ink-soft: #3b3766;
  --f-muted: #6f6c8a;
  --f-line: #bdb9cf;
  --f-card: #ffffff;
  --f-card-line: #e4e2ec;
  --f-violet: #5b4bc4;
  --f-violet-soft: #8d7ef0;
  --f-dark: #07060b;
  background: var(--f-bg);
  color: var(--f-ink);
}
.forma ::selection { background: var(--f-violet); color: #fff; }

/* ---------- Header ---------- */
.f-header {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  padding: 1.1rem 1.5rem; max-width: 120rem; margin-inline: auto;
}
@media (min-width: 1024px) { .f-header { grid-template-columns: 1fr auto 1fr; padding: 1.1rem 3rem; } }
.f-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.125rem; letter-spacing: -0.01em; }
.f-brand .logo__mark { width: 0.55rem; height: 0.55rem; }
.f-nav { display: none; gap: 2.25rem; font-size: 0.875rem; }
@media (min-width: 1024px) { .f-nav { display: flex; } }
.f-nav a { position: relative; transition: color 0.3s; }
.f-nav a:hover { color: var(--f-violet); }
.f-right { justify-self: end; display: flex; align-items: center; gap: 1.5rem; font-size: 0.875rem; }
.f-right .lang { color: var(--f-ink); }
.f-current { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; display: none; }
@media (min-width: 1024px) { .f-current { display: inline; } }
.f-menu { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; }
.f-menu .menu-btn__icon i { background: var(--f-ink); }
@media (min-width: 1024px) { .f-menu { display: none; } }

/* ---------- Hero ---------- */
.f-hero {
  max-width: 120rem; margin-inline: auto;
  padding: 2.5rem 1.5rem 2rem;
  display: grid; gap: 1.5rem 3rem; align-items: end;
}
@media (min-width: 1024px) { .f-hero { grid-template-columns: 1.1fr 1fr; padding: 3.75rem 3rem 2.5rem; } }
.f-title { font-family: var(--sans); letter-spacing: -0.025em; line-height: 1.04; font-size: 2.6rem; }
@media (min-width: 640px) { .f-title { font-size: 3.4rem; } }
@media (min-width: 1024px) { .f-title { font-size: 4.2rem; } }
.f-title span { display: block; }
.f-title__light { font-weight: 300; color: var(--f-ink-soft); }
.f-title__strong { font-weight: 500; color: var(--f-ink); }
.f-intro { font-size: 1.05rem; line-height: 1.6; color: var(--f-ink-soft); max-width: 44ch; }

/* ---------- Form ---------- */
.f-formwrap {
  max-width: 120rem; margin-inline: auto; padding: 0 1.5rem 3rem;
  display: grid; gap: 1.5rem;
}
@media (min-width: 1024px) { .f-formwrap { grid-template-columns: 20rem minmax(0, 1fr); gap: 2.5rem; padding: 0 3rem 4rem; align-items: start; } }

.f-aside {
  background: var(--f-violet); color: #fff; border-radius: 1rem; padding: 1.75rem 1.5rem;
  position: relative; overflow: hidden;
  background-image: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(23, 20, 58, 0.45), transparent 70%);
}
@media (min-width: 1024px) { .f-aside { position: sticky; top: 1.5rem; } }
.f-aside__eyebrow { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; opacity: 0.8; }
.f-next { margin-top: 1.5rem; display: grid; gap: 1.4rem; }
.f-next li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.f-next strong { font-weight: 500; font-size: 1.05rem; }
.f-next p { font-size: 0.88rem; line-height: 1.5; opacity: 0.85; margin-top: 0.25rem; }
.f-aside .f-num { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.f-aside__test { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 0.9rem; }
.f-link { border-bottom: 1px solid currentColor; padding-bottom: 0.1rem; }

.f-form {
  background: var(--f-card); border: 1px solid var(--f-card-line); border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.75rem; display: grid; gap: 0.5rem;
}
@media (min-width: 640px) { .f-form { padding: 2rem 2.25rem 2.5rem; } }
.f-block { border: 0; margin: 0; padding: 1.5rem 0 1.75rem; min-width: 0; border-bottom: 1px solid var(--f-card-line); }
.f-block__head { display: flex; align-items: center; gap: 0.85rem; font-size: 1.35rem; font-weight: 500; letter-spacing: -0.015em; padding: 0; margin-bottom: 1.25rem; }
@media (min-width: 1024px) { .f-block__head { font-size: 1.6rem; } }
.f-num {
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--f-violet); color: var(--f-violet);
  display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; flex: none;
}
.f-grid { display: grid; gap: 1.25rem 2rem; }
@media (min-width: 760px) { .f-grid { grid-template-columns: 1fr 1fr; } }
.f-mt { margin-top: 1.4rem; }
.f-short { max-width: 22rem; }

.f-field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.f-field > span { font-size: 0.85rem; color: var(--f-ink-soft); }
.f-field input, .f-field textarea, .f-field select {
  width: 100%; background: #f7f6fb; border: 1px solid transparent; border-bottom-color: var(--f-line);
  padding: 0.85rem 0.9rem; font-size: 1.02rem; color: var(--f-ink); border-radius: 0.5rem 0.5rem 0 0;
  transition: border-color 0.3s, background-color 0.3s;
}
.f-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--f-ink-soft) 50%), linear-gradient(135deg, var(--f-ink-soft) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 1.25rem, calc(100% - 0.8rem) 1.25rem; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.25rem; }
.f-field textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.f-field input:focus, .f-field textarea:focus, .f-field select:focus { outline: none; background-color: #fff; border-color: var(--f-violet); }
.f-field input[aria-invalid="true"] { border-color: #c2414b; background-color: #fff6f7; }

.f-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.f-chip { position: relative; }
.f-chip input { position: absolute; opacity: 0; pointer-events: none; }
.f-chip > span {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.05rem; border-radius: 999px; font-size: 0.92rem;
  border: 1px solid var(--f-card-line); background: #f7f6fb; cursor: pointer; user-select: none;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s, transform 0.4s var(--ease-spring);
}
.f-chip > span::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 1px solid var(--f-violet); transition: background-color 0.25s, border-color 0.25s; }
.f-chip input[type="checkbox"] + span::before { border-radius: 0.15rem; }
.f-chip:hover > span { border-color: var(--f-violet-soft); }
.f-chip input:checked + span { background: var(--f-violet); border-color: var(--f-violet); color: #fff; }
.f-chip input:checked + span::before { background: #fff; border-color: #fff; }
.f-chip input:active + span { transform: scale(0.96); }
.f-chip input:focus-visible + span { outline: 2px solid var(--f-violet); outline-offset: 3px; }

.f-options { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .f-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .f-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.f-option { position: relative; cursor: pointer; }
.f-option input { position: absolute; opacity: 0; pointer-events: none; }
.f-option__box {
  display: grid; gap: 0.3rem; height: 100%; padding: 1.1rem 1.2rem 1.15rem 3rem; border-radius: 0.75rem;
  border: 1px solid var(--f-card-line); background: #f7f6fb; position: relative;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.3s, transform 0.45s var(--ease-spring-soft);
}
.f-option__box::before {
  content: ""; position: absolute; left: 1.15rem; top: 1.3rem; width: 1rem; height: 1rem; border-radius: 50%;
  border: 1.5px solid var(--f-violet); background: #fff; transition: box-shadow 0.25s, background-color 0.25s;
}
.f-option__box strong { font-weight: 500; font-size: 1.05rem; }
.f-option__box small { font-size: 0.85rem; color: var(--f-muted); line-height: 1.4; }
.f-option:hover .f-option__box { border-color: var(--f-violet-soft); transform: translateY(-2px); }
.f-option input:checked + .f-option__box { border-color: var(--f-violet); background: #fff; box-shadow: 0 0 0 3px rgba(91, 75, 196, 0.15); }
.f-option input:checked + .f-option__box::before { background: var(--f-violet); box-shadow: inset 0 0 0 3px #fff; }
.f-option input:focus-visible + .f-option__box { outline: 2px solid var(--f-violet); outline-offset: 3px; }

.f-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.f-send {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--f-ink); color: #fff; border-radius: 999px; padding: 1.05rem 2.1rem; font-size: 1rem;
  transition: background-color 0.3s, transform 0.4s var(--ease-spring);
}
.f-send:hover { background: var(--f-violet); transform: translateY(-2px); }
.f-send[disabled] { opacity: 0.6; cursor: progress; }
.f-submit__note { font-size: 0.85rem; color: var(--f-muted); max-width: 36ch; }
.f-status { font-size: 0.9rem; color: var(--f-ink-soft); min-height: 1.3em; }
.f-status.is-error { color: #b23a44; }
.f-thanks { padding: 2.5rem 0.5rem; text-align: center; }
.f-thanks strong { display: block; font-weight: 500; font-size: 1.8rem; letter-spacing: -0.01em; }
.f-thanks p { color: var(--f-ink-soft); margin-top: 0.5rem; font-size: 1.05rem; }

/* ---------- Underwater bubbles (purple things) ---------- */
.f-bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.f-bub {
  position: absolute; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 27%, #fff 0 10%, rgba(255, 255, 255, 0.55) 16%, rgba(196, 184, 245, 0.25) 45%, rgba(110, 92, 214, 0.45) 85%, rgba(74, 58, 170, 0.7) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(74, 58, 170, 0.45), 0 2px 8px rgba(74, 58, 170, 0.25);
  will-change: transform, opacity;
}

/* ---------- Scene ---------- */
.f-stage { max-width: 120rem; margin-inline: auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .f-stage { padding: 0 3rem; } }
.f-scene {
  position: relative; overflow: hidden; border-radius: 0.9rem;
  aspect-ratio: 4 / 3; background: #e4e0f3;
}
@media (min-width: 640px) { .f-scene { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) { .f-scene { aspect-ratio: 920 / 385; } }
.f-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.f-bubble { animation: f-float 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.f-bubble--b { animation-duration: 9s; animation-delay: -3s; }
.f-bubble--c { animation-duration: 6s; animation-delay: -1.5s; }
.f-disc { animation: f-float 11s ease-in-out infinite; animation-delay: -4s; transform-box: fill-box; }
@keyframes f-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.f-scene__quote {
  position: absolute; left: 1.25rem; bottom: 1.1rem; max-width: 22rem;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.35; color: #fff;
  text-shadow: 0 1px 12px rgba(40, 26, 90, 0.45);
}
@media (max-width: 639.98px) { .f-scene__quote { display: none; } }

/* ---------- Cards ---------- */
.f-cards {
  max-width: 120rem; margin-inline: auto; padding: 0.9rem 1.5rem 0;
  display: grid; gap: 0.9rem;
}
@media (min-width: 640px) { .f-cards { grid-template-columns: 1fr 1fr; } .f-card--dark { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .f-cards { grid-template-columns: 1fr 1fr 1.85fr; padding: 0.9rem 3rem 0; } .f-card--dark { grid-column: auto; } }
.f-card {
  background: var(--f-card); border: 1px solid var(--f-card-line); border-radius: 0.75rem;
  padding: 1.1rem 1.1rem 1.15rem; min-height: 7.5rem; display: flex; flex-direction: column;
}
.f-card__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.f-card__title { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.f-ring { width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 1px solid var(--f-violet); flex: none; }
.f-card__rule { height: 1px; background: var(--f-card-line); margin: 0.9rem 0 1rem; }
.f-card__row { display: flex; justify-content: space-between; font-size: 0.85rem; }
.f-bar { margin-top: 0.6rem; height: 0.3rem; border-radius: 999px; background: #ecebf3; overflow: hidden; }
.f-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2b1f86, var(--f-violet-soft)); transition: width 1.6s var(--ease-out) 0.3s; }
.f-bar.is-in i { width: var(--to, 66%); }
.f-card__text { font-size: 0.85rem; line-height: 1.45; color: var(--f-ink-soft); max-width: 30ch; }

.f-card--dark {
  position: relative; overflow: hidden; background: var(--f-dark); border-color: var(--f-dark); color: #fff;
  min-height: 9rem; justify-content: space-between;
}
.f-card--dark canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.f-card--dark > *:not(canvas) { position: relative; }
.f-card--dark .f-card__title { font-weight: 400; max-width: 16rem; font-size: 1.05rem; }
.f-card__actions { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }
.f-circle {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.45);
  display: grid; place-items: center; transition: background-color 0.3s, color 0.3s;
}
.f-circle svg { width: 0.85rem; height: 0.85rem; }
.f-circle:hover { background: #fff; color: var(--f-dark); }
.f-pill {
  display: inline-flex; align-items: center; gap: 0.45rem; background: #fff; color: var(--f-dark);
  border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.78rem; transition: background-color 0.3s;
}
.f-pill::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 1px solid var(--f-dark); }
.f-pill:hover { background: #e9e5ff; }

/* ---------- Details ---------- */
.f-details {
  max-width: 120rem; margin-inline: auto; padding: 4rem 1.5rem 5rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem;
}
@media (min-width: 1024px) { .f-details { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 5rem 3rem 6rem; } }
.f-details div { border-top: 1px solid var(--f-line); padding-top: 1.1rem; min-width: 0; }
.f-details dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--f-muted); }
.f-details dd { margin-top: 0.45rem; font-size: 1rem; overflow-wrap: anywhere; }
.f-details a { transition: color 0.3s; }
.f-details a:hover { color: var(--f-violet); }

@media (prefers-reduced-motion: reduce) {
  .f-bubble, .f-disc { animation: none; }
  .f-bar i { transition: none; }
  .f-bubbles { display: none; }
}
