:root {
  --nuit: #13234A;
  --champagne: #C9A04A;
  --creme: #FBF6EC;
  --kobalt: #1F4FB5;
  --azur: #5B93E0;
  --croisette: #2FA7B5;
  --mimosa: #F2C230;
  --bougainville: #C8306C;
  --terracotta: #EB7A55;
  --lijn: #E6DCC6;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--sans);
  color: var(--nuit);
  background-color: var(--creme);
  background-image: url("../img/tegel.svg");
  background-size: 120px 120px;
  background-position: center top;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- kaart ---------- */
.kaart {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--creme);
  padding: 12px;
  box-shadow: 0 0 0 8px var(--creme);
}
.kaart--breed { max-width: 620px; }

.kaart__binnen {
  border: 1px solid var(--champagne);
  padding: 56px 48px 52px;
  text-align: center;
}

.logo {
  display: block;
  width: 128px;
  height: auto;
  margin: 0 auto 28px;
}

.label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--kobalt);
  margin: 0 0 18px;
}
.label--roze { color: var(--bougainville); }

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 9vw, 60px);
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0 0 22px;
}
h1 em {
  display: block;
  font-style: italic;
  color: var(--bougainville);
}
h1.klein { font-size: clamp(36px, 7vw, 46px); }

.intro {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 auto 30px;
  max-width: 340px;
  color: var(--nuit);
}

.scheiding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px auto 26px;
}
.scheiding::before, .scheiding::after {
  content: "";
  width: 72px;
  height: 1px;
  background: var(--champagne);
}
.scheiding i {
  width: 6px; height: 6px; border-radius: 50%; display: block;
  background: var(--mimosa);
}
.scheiding i:nth-child(2) { width: 9px; height: 9px; background: var(--champagne); }
.scheiding i:nth-child(3) { background: var(--croisette); }

/* ---------- formulier ---------- */
form { text-align: left; max-width: 340px; margin: 0 auto; }
.kaart--breed form { max-width: 460px; }

.veld { margin-bottom: 18px; }
.veld label, .groep-label {
  display: block;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.veld label .optioneel {
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: none;
  color: #6b7590;
  margin-left: 4px;
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font: 400 17px/1.4 var(--sans);
  color: var(--nuit);
  background: #fff;
  border: 1px solid #D9CFB8;
  border-radius: 2px;
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--kobalt);
  box-shadow: 0 0 0 3px rgba(31, 79, 181, .15);
}
input.code {
  text-align: center;
  font-size: 20px;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 14px;
}

.rij { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.fout-tekst { color: var(--bougainville); font-size: 14px; margin: 6px 0 0; }
.veld.fout input, .veld.fout textarea { border-color: var(--bougainville); }

/* keuze: komt wel / niet */
.keuze { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.keuze input { position: absolute; opacity: 0; pointer-events: none; }
.keuze label {
  display: block;
  text-align: center;
  cursor: pointer;
  border: 1px solid #D9CFB8;
  background: #fff;
  padding: 14px 10px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
  transition: all .15s;
}
.keuze label small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6b7590;
  margin-top: 4px;
}
.keuze input:checked + label {
  background: var(--nuit);
  border-color: var(--nuit);
  color: var(--creme);
}
.keuze input:checked + label small { color: var(--champagne); }
.keuze input:focus-visible + label { box-shadow: 0 0 0 3px rgba(31, 79, 181, .3); }

.alleen-bij-ja[hidden] { display: none; }

.knop {
  display: block;
  width: 100%;
  margin-top: 26px;
  font: 500 14px/1 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--creme);
  background: var(--nuit);
  border: 0;
  border-radius: 2px;
  padding: 20px 16px;
  cursor: pointer;
  transition: background .15s;
}
.knop:hover { background: #0c1834; }
.knop:focus-visible { outline: 3px solid var(--azur); outline-offset: 2px; }

.voetnoot {
  font-size: 13px;
  letter-spacing: .04em;
  color: #57617c;
  margin: 26px 0 0;
  text-align: center;
}
.voetnoot a { color: var(--kobalt); }

.melding {
  background: #F3ECDC;
  border-left: 3px solid var(--champagne);
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 auto 24px;
  max-width: 460px;
  text-align: left;
}

/* ---------- details (bedankt) ---------- */
.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--lijn);
  border-bottom: 1px solid var(--lijn);
  margin: 6px 0 8px;
}
.details div { padding: 18px 8px; }
.details div + div { border-left: 1px solid var(--lijn); }
.details .label { font-size: 11px; margin-bottom: 8px; }
.details p { font-family: var(--serif); font-size: 19px; line-height: 1.25; margin: 0; }

/* ---------- ongeldige code ---------- */
.ongeldig-icoon {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid var(--champagne);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 34px;
  font-style: italic;
  color: var(--bougainville);
}

@media (max-width: 520px) {
  body { padding: 24px 16px; background-size: 96px 96px; }
  .kaart { padding: 8px; box-shadow: 0 0 0 4px var(--creme); }
  .kaart__binnen { padding: 40px 22px 36px; }
  .logo { width: 112px; margin-bottom: 22px; }
  .rij { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .details div + div { border-left: 0; border-top: 1px solid var(--lijn); }
}

/* ---------- te laat (na deadline) ---------- */
.te-laat {
  background: var(--bougainville);
  color: #fff;
  text-align: center;
  padding: 22px 22px 20px;
  margin: 0 auto 28px;
  max-width: 460px;
  border-radius: 2px;
}
.te-laat__kop {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 10px;
}
.te-laat p:last-child { font-size: 16px; line-height: 1.55; margin: 0; }
