/* Travas demo video gate. Colours and type follow travas.eu. No external fonts, no tracking. */

:root {
  --navy: #06093A;
  --text: #0D0F2B;
  --mid: #4B4F72;
  --muted: #6E7299;
  --blue: #2952CC;
  --blue-l: #3D66E8;
  --green: #1A5C24;
  --green-bg: #EBF4EC;
  --amber: #9C6B10;
  --amber-bg: #FBF4E6;
  --red: #C62828;
  --red-bg: #FDECEC;
  --rule: #E4E2DC;
  --off-white: #F8F7F4;
  --white: #FFFFFF;
  --font-b: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-h: "Archivo", "DM Sans", system-ui, sans-serif;
  --shadow: 0 4px 16px rgba(6, 9, 58, .08), 0 2px 4px rgba(6, 9, 58, .04);
  --t: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--off-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); }
a:hover { color: var(--blue-l); }

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
}
.site-header__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--white);
  text-decoration: none;
}
.wordmark:hover { color: var(--white); }
.logo { height: 36px; width: auto; display: block; }
.lang-switch {
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  padding: 5px 10px;
}
.lang-switch:hover { color: var(--white); border-color: rgba(255, 255, 255, .6); }

/* Page */
main {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 36px 20px 56px;
}
h1 {
  font-family: var(--font-h);
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
h2 {
  font-family: var(--font-h);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -.015em;
  margin: 34px 0 18px;
}
.lead {
  font-size: 17px;
  color: var(--mid);
  max-width: 62ch;
  margin: 0 0 28px;
}

/* Form */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  display: block;
}
.input {
  font-family: var(--font-b);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 13px;
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}
.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 82, 204, .15);
}
.input[aria-invalid="true"] { border-color: var(--red); }
select.input { appearance: auto; }
.error {
  font-size: 12px;
  color: var(--red);
  min-height: 15px;
  margin-top: 4px;
}

/* List choice */
.choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.option { position: relative; display: block; cursor: pointer; }
.option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.option__inner {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
  padding: 14px 15px;
  font-size: 14.5px;
  transition: border-color var(--t), box-shadow var(--t);
}
.option input:checked + .option__inner {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 82, 204, .15);
}
.option input:focus-visible + .option__inner { outline: 2px solid var(--blue); outline-offset: 2px; }
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex: none;
}
.dot--green { background: var(--green); }
.dot--amber { background: var(--amber); }
.dot--both { background: linear-gradient(90deg, var(--green) 50%, var(--amber) 50%); }

.privacy {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mid);
  margin: 8px 0 22px;
  max-width: 62ch;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 7px;
  padding: 15px 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t), transform var(--t);
}
.button:hover { background: var(--blue-l); color: var(--white); }
.button:disabled { opacity: .6; cursor: progress; }
.button--secondary {
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--rule);
}
.button--secondary:hover { background: var(--off-white); color: var(--blue); }
.button--large { font-size: 17px; padding: 18px 36px; }

/* Messages */
.notice {
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 20px;
  border: 1px solid var(--rule);
  background: var(--white);
}
.notice[hidden] { display: none; }
.notice--ok { background: var(--green-bg); border-color: #B9D8BE; }
.notice--warn { background: var(--amber-bg); border-color: #E6CF9C; }
.notice--error { background: var(--red-bg); border-color: #F0B4B4; }
.notice h2 { margin: 0 0 6px; font-size: 18px; }
.notice p { margin: 0 0 10px; }
.notice p:last-child { margin-bottom: 0; }

.customer {
  font-size: 13.5px;
  color: var(--muted);
  margin: 22px 0 0;
}

/* Viewing slots */
.slot-switch {
  font-size: 13.5px;
  color: var(--mid);
  margin: 6px 0 0;
}
#own-moment-field h2, #slot-field h2 { margin-top: 10px; }
.rebook { margin-top: 14px; }
.rebook summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 14.5px;
}
.rebook__form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  max-width: 420px;
}
.rebook__form .button { align-self: flex-start; margin-top: 6px; }
.rebook__form[hidden] { display: none; }
[data-countdown] { font-variant-numeric: tabular-nums; }

/* Watch page */
.player {
  position: relative;
  padding-top: 56.25%;
  background: var(--navy);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0 0 28px;
}
.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-h);
  font-size: 18px;
  margin: 0 0 12px;
}
.after {
  text-align: center;
  padding: 28px 20px 8px;
}
.after p { color: var(--mid); margin: 0 0 18px; }
.after__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.after__secondary {
  font-size: 15px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}
.site-footer__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a { color: var(--muted); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; gap: 0; }
  .choice { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  main { padding: 28px 16px 44px; }
}
