@charset "utf-8";
/* Astertype - Contact page only (form). Loaded after site.css. */

/* ---------- Contact form tokens ---------- */
:root {
  --lead-hero-pb: 5.4375rem;  --form-pt: 2.875rem;
  --field-gap: .5625rem;  --field-step: 2.6875rem;  --group-mt: 2.875rem;  --legend-gap: .5625rem;
  --choice-w: 9.0625rem;  --choice-w-short: 5.8125rem;  --choice-gx: .625rem;  --choice-gy: .5625rem;
  --msg-mt: 2.6875rem;  --csend-mt: .75rem;  --send-mt: 4rem;  --send-h: 2.625rem;  --send-w: 100%;  --back-mt: 3.0625rem;
}
@media (min-width: 48em) {
  :root {
    --lead-hero-pb: 5.4375rem;  --form-pt: 3.125rem;
    --field-gap: .75rem;  --field-step: 2.375rem;  --group-mt: 2.625rem;  --legend-gap: .75rem;
    --choice-w: 9.3125rem;  --choice-w-short: 4.1875rem;  --choice-gx: .9375rem;  --choice-gy: .75rem;
    --msg-mt: 2.3125rem;  --csend-mt: .9375rem;  --send-mt: 3.625rem;  --send-h: 2.75rem;  --send-w: 14.5625rem;
  }
}
@media (min-width: 75em) {
  :root {
    --lead-hero-pb: 9.3125rem;  --form-pt: 4.375rem;  --group-mt: 2.5rem;  --legend-gap: .625rem;  --choice-w: 6.875rem;  --choice-w-short: 6.875rem;  --choice-gx: 1.25rem;
    --msg-mt: 3.25rem;  --csend-mt: 1.125rem;  --send-w: 15rem;  --back-mt: 3rem;
  }
}
/* wide label column for the Contact note */
.note--wide { --note-c2: 15.625rem; --note-c3: minmax(0, 1fr); }
@media (min-width: 75em) { .note--wide { --note-c2: 24.375rem; --note-c3: 31.25rem; } }

/* ---------- Form section ---------- */
.formsec {
  border-top: 1px solid var(--grey);
  padding: var(--form-pt) 0 var(--contact-pb);
  display: flex;
  flex-direction: column;
}

/* info block: same typography as the body text (does not stand out) */
.cinfo { margin-bottom: 3rem; color: var(--white); }
.cinfo__label { color: var(--light-grey); }
.cinfo__label--gap { margin-top: var(--h3-lh); }
.cinfo__value a { transition: color .2s ease; }
.cinfo__value a:hover { color: var(--light-grey); }

/* text fields: placeholder + 2px underline */
.cfield + .cfield { margin-top: var(--field-step); }
.cfield__input {
  display: block;
  width: 100%;
  height: calc(var(--h4-lh) + var(--field-gap) + 2px);
  margin: 0;
  padding: 0 0 var(--field-gap);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--grey);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  outline: 0;
  color: var(--white);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  transition: border-color .2s ease;
}
.cfield__input::placeholder { color: var(--light-grey); opacity: 1; }
.cfield__input:focus-visible { border-bottom-color: var(--white); }
.cfield__input:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  box-shadow: 0 0 0 100px var(--black) inset;
  caret-color: var(--white);
}
.cfield--msg { margin-top: var(--msg-mt); }
.cfield__input--area {
  height: auto;
  min-height: 4.6875rem;               /* 75px: placeholder top → underline */
  resize: none;
  overflow: hidden;
}

/* choice groups (radio buttons styled as the Figma "check box" component) */
.cgroup { margin-top: var(--group-mt); }
.cgroup__label {
  margin-bottom: var(--legend-gap);
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  color: var(--light-grey);
}
.cgroup__options { display: flex; flex-wrap: wrap; gap: var(--choice-gy) var(--choice-gx); }

.choice {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: var(--choice-w);
  max-width: 100%;
  height: 2.625rem;                    /* 42 */
}
.choice--short { width: var(--choice-w-short); }
.choice__input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0;
  cursor: inherit;
}
.choice__box {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  border: 2px solid var(--grey);
  border-radius: 4px;
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  color: var(--white);
  text-align: center;
  /* Figma: click → selected variant, Smart animate · Ease out · 0.1s */
  transition:
    background-color .1s cubic-bezier(0, 0, .58, 1),
    border-color .1s cubic-bezier(0, 0, .58, 1),
    color .1s cubic-bezier(0, 0, .58, 1);
}
.choice__input:checked + .choice__box {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}
.choice__input:focus-visible + .choice__box { outline: 1px solid var(--white); outline-offset: 4px; }

/* consent + Send */
.csend { position: relative; display: flex; flex-direction: column; margin-top: var(--csend-mt); }
.csend__consent {
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  color: var(--grey);
}
.csend__consent a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-position: from-font;
  transition: color .2s ease;
}
.csend__consent a:hover { color: var(--light-grey); }

.send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--send-w);
  max-width: 100%;
  height: var(--send-h);
  margin-top: var(--send-mt);
  padding: 0 0 0 1.625rem;             /* 26 */
  background: transparent;
  border: 2px solid var(--grey);
  border-radius: 4px;
  color: var(--white);
  text-align: left;
  font-size: 1rem;
  line-height: 1.125rem;
  transition:
    background-color .1s cubic-bezier(0, 0, .58, 1),
    border-color .1s cubic-bezier(0, 0, .58, 1),
    color .1s cubic-bezier(0, 0, .58, 1),
    opacity .2s ease;
}
.send[disabled] { opacity: .6; }
.send__icon { flex: none; display: block; width: 2.5rem; height: 2.5rem; overflow: visible; }
.send__arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-miterlimit: 4;
}

/* Figma "Contact bottun": click → filled "Message sent" (0.1s), then the arrow runs
   -4,+4 (0.1s) → +4,-4 (0.3s, cubic-bezier .63,0,.36,1) → 0 (0.1s). Final state stays. */
.send.is-sent { background: var(--white); border-color: var(--white); color: var(--black); }
.send.is-sent .send__arrow { animation: send-arrow .6s forwards; }
@keyframes send-arrow {
  0%, 16.667% { transform: translate(0, 0);      animation-timing-function: cubic-bezier(0, 0, .58, 1); }
  33.333%     { transform: translate(-4px, 4px); animation-timing-function: cubic-bezier(.63, 0, .36, 1); }
  83.333%     { transform: translate(4px, -4px); animation-timing-function: cubic-bezier(0, 0, .58, 1); }
  100%        { transform: translate(0, 0); }
}

.csend__status {
  position: absolute;                   /* does not move the layout */
  top: 100%;
  left: 0;
  margin-top: .5rem;
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  color: var(--white);
}
.csend__status:empty { display: none; }
.csend__status a { text-decoration: underline; }

.formsec .back { margin-top: var(--back-mt); align-self: flex-start; }

/* tablet: two equal columns, back button on the Send row */
@media (min-width: 48em) {
  .formsec {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));     /* 314 + 20 + 314 */
    column-gap: 1.25rem;
    align-items: start;
  }
  .cinfo { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .cfields { grid-column: 2; grid-row: 1; padding-top: .125rem; }
  .csend { grid-column: 2; grid-row: 2; }
  .formsec .back { grid-column: 1; grid-row: 2; margin-top: 0; align-self: end; }
}

/* desktop: 500 | 630 columns, consent text to the right of Send, back button below */
@media (min-width: 75em) {
  .formsec { grid-template-columns: minmax(0, 31.25rem) minmax(0, 39.375rem); }
  .cfields { padding-top: .1875rem; }
  .csend { flex-direction: row; align-items: center; justify-content: space-between; }
  .send { order: 1; margin-top: 0; }
  .csend__consent { order: 2; width: 15rem; max-width: 15rem; }   /* fixed 240px column: short texts stay left-aligned at x=990 */
  .formsec .back { grid-column: 1; grid-row: 3; margin-top: var(--back-mt); align-self: start; }
}

/* ---------- Required-field warning (Figma "Warning en" / "Warning pt") ----------
   240 × 38.456 red bubble (assets/images/warning.svg) with its tail bottom-left, text in black.
   Created by contact.js. Desktop: just above the field's underline, 130px from the field's start
   (261px for the message, clear of its placeholder). Mobile + tablet: right-aligned in the field.
   Default → Variant2: slides up 20px and fades in. */
.cfield { position: relative; --warn-x: 8.125rem; }
.cfield--msg { --warn-x: 16.3125rem; }
.cwarn {
  position: absolute;
  z-index: 2;
  left: var(--warn-x);
  bottom: .40625rem;                    /* tail tip 6.5px above the bottom of the underline */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15rem;
  height: 2.4035rem;                    /* 38.456: 30px body + 8.456px tail */
  margin: 0;
  padding: 0 0 .5285rem;                /* text centred in the 30px body, above the tail */
  background: url("../images/warning.svg") no-repeat 0 0 / 100% 100%;
  color: var(--black);
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.25rem);
  transition:
    opacity .3s cubic-bezier(0, 0, .58, 1),
    transform .3s cubic-bezier(0, 0, .58, 1),
    visibility 0s linear .3s;
}
.cwarn.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity .3s cubic-bezier(0, 0, .58, 1),
    transform .3s cubic-bezier(0, 0, .58, 1),
    visibility 0s;
}
@media (max-width: 74.99875em) {
  .cwarn { left: auto; right: 0; }      /* narrower column: keep the bubble inside the field */
}

/* cursors for the new controls (same variables as the rest of the site) */
@media (hover: hover) and (pointer: fine) {
  .cfield__input { cursor: var(--cursor-text); }
  .choice, .choice__input { cursor: var(--cursor-pointer); }
}
