/* Reserveren — page-specific styles. Extends styles.css; do not duplicate its tokens. */

:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- page hero ---------- */

.res-hero {
  position: relative;
  isolation: isolate;
  /* A height, not an aspect-ratio: aspect-ratio plus min-height transfers into a
     min-width and made this section 480px wide on a 390px phone. */
  height: clamp(420px, 43.75vw, 760px);
  overflow: hidden;
}
.res-hero-media { position: absolute; inset: 0; z-index: -1; background: var(--ink-soft); }
.res-hero-motion.motion-media { position: absolute; inset: 0; }
.res-hero-media img, .res-hero-media video { object-position: center 58%; }
.res-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(12, 10, 8, 0.86) 0%, rgba(12, 10, 8, 0.38) 52%, rgba(12, 10, 8, 0.18) 100%),
    linear-gradient(90deg, rgba(12, 10, 8, 0.6) 0%, transparent 60%);
}
.res-hero-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 160px 0 48px; }
.res-hero-eyebrow { margin-bottom: 16px; }
.res-hero-content h1 { margin: 0; max-width: 720px; color: var(--paper); font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; }
.res-hero-copy { max-width: 460px; margin: 18px 0 0; color: rgba(241, 233, 220, 0.82); font-size: 0.98rem; }

/* ---------- form section ---------- */

.res-form-section { padding: 96px 0 140px; color: var(--paper); background: var(--surface); }
.res-form-shell { max-width: 760px; }
.res-form-intro h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.res-form-intro-copy { max-width: 560px; margin: 20px 0 48px; color: var(--muted-dark); font-size: 0.98rem; line-height: 1.6; }
.res-form-intro-copy a { color: var(--ember-surface); text-decoration: underline; text-underline-offset: 3px; }

.res-form-status {
  margin: 0 0 28px;
  padding: 14px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--paper);
  background: rgba(241, 233, 220, 0.06);
  font-size: 0.88rem;
}
.res-form-status.is-error { border-color: rgba(226, 118, 66, 0.55); background: rgba(226, 118, 66, 0.12); color: var(--paper); }
.res-form-status.is-success { border-color: rgba(230, 162, 76, 0.55); background: rgba(230, 162, 76, 0.12); }

.res-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
.res-field { display: flex; flex-direction: column; gap: 8px; }
.res-field-wide { grid-column: 1 / -1; }
.res-field label { color: var(--muted-dark); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.res-field input[type="text"],
.res-field input[type="tel"],
.res-field input[type="email"],
.res-field input[type="date"],
.res-field select,
.res-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--paper);
  background: rgba(241, 233, 220, 0.05);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 180ms ease, background 180ms ease;
  appearance: none;
  -webkit-appearance: none;
}
.res-field textarea { min-height: 96px; padding-top: 14px; padding-bottom: 14px; resize: vertical; }
.res-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23c8b9a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.res-field select option { color: #171411; background: #f1e9dc; }
.res-field input::placeholder, .res-field textarea::placeholder { color: var(--muted); }
.res-field input:hover, .res-field select:hover, .res-field textarea:hover { border-color: rgba(241, 233, 220, 0.4); }
.res-field input:focus, .res-field select:focus, .res-field textarea:focus { border-color: var(--saffron); background: rgba(241, 233, 220, 0.09); }
.res-field input:focus:not(:focus-visible), .res-field select:focus:not(:focus-visible), .res-field textarea:focus:not(:focus-visible) { outline: none; }
.res-field.has-error input, .res-field.has-error select, .res-field.has-error textarea { border-color: var(--ember); }

/* Native date input's calendar icon, recolored for a dark field */
.res-field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.85) sepia(0.2) saturate(2) hue-rotate(340deg); cursor: pointer; }

.res-hint { color: var(--muted); font-size: 0.74rem; }
.res-error { display: block; min-height: 0; color: var(--ember); font-size: 0.76rem; }
.res-error:empty { display: none; }

.res-call-reveal { margin: 2px 0 0; color: var(--muted-dark); font-size: 0.82rem; }
.res-call-reveal a { color: var(--ember-surface); text-decoration: underline; text-underline-offset: 3px; }

.res-checkbox { display: flex; align-items: flex-start; gap: 12px; color: var(--muted-dark); font-size: 0.86rem; line-height: 1.5; cursor: pointer; }
.res-checkbox input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: rgba(241, 233, 220, 0.05);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
}
.res-checkbox input[type="checkbox"]:checked { border-color: var(--saffron); background: var(--saffron); }
.res-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.res-checkbox a { color: var(--ember-surface); text-decoration: underline; text-underline-offset: 3px; }
.res-consent-field.has-error .res-checkbox { color: var(--paper); }
.res-consent-field.has-error input[type="checkbox"] { border-color: var(--ember); }

.res-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 40px; }
.res-submit { position: relative; }
.res-submit[disabled] { opacity: 0.75; cursor: progress; }
.res-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(23, 20, 17, 0.35);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: res-spin 700ms linear infinite;
}
@keyframes res-spin { to { transform: rotate(360deg); } }
.res-call-fallback { margin: 0; color: var(--muted); font-size: 0.8rem; }
.res-call-fallback a { color: var(--ember-surface); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- success panel (shown in place of the form by JS) ---------- */

.res-success h2 { margin: 14px 0 0; font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; }
.res-success-reference { margin: 18px 0 0; color: var(--ember-surface); font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
.res-success > p { max-width: 520px; margin: 14px 0 0; color: var(--muted-dark); font-size: 0.96rem; line-height: 1.6; }
.res-success-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }

/* ---------- static "received" page ---------- */

.res-received { padding: 200px 0 140px; color: var(--paper); background: var(--surface); min-height: 60vh; }
.res-received-shell { max-width: 640px; }
.res-received-shell h1 { margin: 14px 0 0; font-size: clamp(2.3rem, 4.6vw, 3.2rem); font-weight: 500; letter-spacing: -0.03em; }
.res-received-copy { max-width: 520px; margin: 18px 0 0; color: var(--muted-dark); font-size: 1rem; line-height: 1.65; }
.res-received .res-success-actions { margin-top: 36px; }

@media (max-width: 900px) {
  .res-form-section { padding: 76px 0 100px; }
  .res-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .res-hero { height: clamp(360px, 92vw, 480px); }
  .res-hero-content { padding: 128px 0 32px; }
  .res-hero-content h1 { font-size: 2rem; }
  .res-form-section { padding: 56px 0 88px; }
  .res-form-intro-copy { margin-bottom: 36px; }
  .res-submit-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .res-submit { width: 100%; }
  .res-received { padding: 156px 0 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .res-spinner { animation-duration: 1.4s; }
}
