/* Alvo Marketing – formularsiden /lad-os-tage-en-snak.
   Bygger på site.css (farver, skrift, knapper, fokus). Bruges kun af denne side. */

.contact-page { --error: #A3261C; --field-line: rgba(20, 38, 56, 0.28); }

/* ---------- Top: logo + tilbage ---------- */
.contact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}
.contact-top .logo-img { height: 24px; }
.contact-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-underline-offset: 4px;
}
.contact-back:hover { text-decoration: underline; }

/* ---------- Layout: formular til venstre, tryghed til højre ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.contact-main { min-width: 0; max-width: 640px; }

/* ---------- Trin ---------- */
.step-count {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(20, 38, 56, 0.72);
}
.step { margin: 0; }
.contact-form:not(.is-stepped) .step + .step { margin-top: 64px; } /* kun uden JavaScript, hvor alle trin står samlet */
.step[hidden] { display: none; }

.step-title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  scroll-margin-top: 24px;
}
.step-lead {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(20, 38, 56, 0.86);
}

/* ---------- Spørgsmål ---------- */
.q {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.q[hidden] { display: none; }
.q + .q { margin-top: 36px; }
.q-legend {
  padding: 0;
  margin: 0 0 14px;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
}
.q-hint {
  margin: -6px 0 14px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(20, 38, 56, 0.8);
}

/* Valgmuligheder med stor klikflade */
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; }
/* Det native felt er usynligt men fokuserbart; klik går via labelen */
.choice input {
  position: absolute;
  left: 18px;
  top: 18px;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.choice { cursor: pointer; }
.choice-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 58px;
  padding: 16px 18px;
  border: 1.5px solid var(--field-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover .choice-box { border-color: var(--navy); }
.choice input:checked + .choice-box {
  border-color: var(--navy);
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--navy);
}
.choice input:focus-visible + .choice-box {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.choice-text { min-width: 0; }
.choice-hint {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(20, 38, 56, 0.8);
}

/* Radio/checkbox-markering */
.choice-mark {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  background: #FFFFFF;
}
.choice input:checked + .choice-box .choice-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--navy);
}
.choice-mark--check { border-radius: 5px; }
.choice input:checked + .choice-box .choice-mark--check { background: var(--navy); }
.choice input:checked + .choice-box .choice-mark--check::after {
  inset: auto;
  left: 5.5px;
  top: 2px;
  width: 6px;
  height: 11px;
  border-radius: 0;
  background: none;
  border: solid var(--lime);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Felter */
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin-top: 28px;
}
.field { min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
}
.field-optional { font-weight: 400; color: rgba(20, 38, 56, 0.72); }
.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font: inherit;
  font-size: 17px; /* min. 16 px, så iOS ikke zoomer */
  line-height: 1.4;
  color: var(--navy);
  background: #FFFFFF;
  border: 1.5px solid var(--field-line);
  border-radius: var(--radius-btn);
  transition: border-color 0.15s ease;
}
.input:hover { border-color: rgba(20, 38, 56, 0.5); }
.input:focus-visible { border-color: var(--navy); outline-offset: 2px; }
.input::placeholder { color: rgba(20, 38, 56, 0.55); }
.input:disabled { background: rgba(255, 255, 255, 0.5); color: rgba(20, 38, 56, 0.5); cursor: not-allowed; }
textarea.input { min-height: 120px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--error); }

/* Fejl */
.field-error {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--error);
}
.field-error[hidden] { display: none; }
.q.has-error .choice-box { border-color: var(--error); }

/* ---------- Knapper ---------- */
.step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 32px;
}
.step-actions .btn { min-height: 52px; padding: 15px 28px; font-size: 17px; }
.step-actions .btn:disabled { opacity: 0.7; cursor: progress; }
.step-back {
  min-height: 44px;
  padding: 10px 4px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.step-back:hover { text-decoration-thickness: 2px; }

.privacy-note {
  margin: 14px 0 0;
  font-size: 15px;
  color: rgba(20, 38, 56, 0.8);
}

.send-error {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--error);
  border-radius: 8px;
  background: #FFFFFF;
}
.send-error[hidden] { display: none; }
.send-error p { margin: 0 0 14px; font-size: 16px; line-height: 1.5; }

/* ---------- Kvittering ---------- */
.contact-done[hidden] { display: none; }
.contact-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  font-weight: 600;
  text-underline-offset: 4px;
}

/* ---------- Tryghed: overskrift + tre selvstændige casebokse ---------- */
.proof { min-width: 0; }
.proof-title {
  margin: 0 0 20px;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: var(--navy);
}
.proof-case {
  padding: 24px;
  border-radius: var(--radius-box);
  background: var(--navy);
  color: var(--cream);
}
.proof-case + .proof-case { margin-top: 24px; }
.proof-media,
.proof-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 20px;
  border-radius: 10px;
}
.proof-media { background: #2A3F55; } /* diskret lysere blå */
.proof-img { height: auto; object-fit: cover; }
.proof-client {
  margin: 0;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  color: var(--cream);
}
.proof-service {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(247, 244, 237, 0.7);
}
.proof-points { margin: 14px 0 0; padding: 0; list-style: none; }
.proof-points li {
  display: grid;
  grid-template-columns: 14px 1fr;
  column-gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}
.proof-points li + li { margin-top: 6px; }
.proof-points svg { width: 14px; height: 14px; margin-top: 0.22em; color: var(--lime); }
.proof-note,
.proof-quote {
  margin: 12px 0 0 24px; /* flugter med punkternes tekst */
}
.proof-note { font-size: 13px; line-height: 1.45; color: rgba(247, 244, 237, 0.7); }
.proof-quote blockquote { margin: 0; }
.proof-quote p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(247, 244, 237, 0.78); }
.proof-quote figcaption { margin-top: 4px; font-size: 13px; line-height: 1.4; color: rgba(247, 244, 237, 0.7); }

/* ---------- Tablet og mobil: formularen først, kompakt tryghed nedenunder ---------- */
@media (max-width: 899px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact-main { max-width: none; }
  .proof-title { font-size: 22px; }
}
@media (max-width: 560px) {
  .contact-top { min-height: 64px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .step-lead { font-size: 17px; }
  .q-legend { font-size: 19px; }
  .step-actions .btn { flex: 1 1 100%; }
  .step-actions { gap: 4px 24px; }
  .step-back { margin: 0 auto; }
  .privacy-note { text-align: center; }
}
