/* ==========================================================================
   Salon Maria: online agenda (contactpagina)
   Toestanden op .booking[data-state]:
     off      geen (geldige) Cal.com-config: nette fallback met WhatsApp en bellen
     ready    config actief, agenda nog niet geladen: uitleg + "Open de agenda"
     loading  Cal.com wordt geladen
     live     de agenda staat er
     error    laden mislukt: opnieuw proberen, nieuw venster of WhatsApp
   ========================================================================== */
.booking { display: flex; flex-direction: column; gap: 22px; width: 100%; }
.booking-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.booking-intro .p { max-width: 40em; }

/* "binnenkort beschikbaar": een status, geen knop die niet werkt */
.booking-soon {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 16px 0 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dark-70);
  background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(31, 32, 33, 0.08);
}
.booking-soon-dot { width: 8px; height: 8px; border-radius: 50%; background: #b89b6a; box-shadow: 0 0 0 4px rgba(184, 155, 106, 0.18); }

.booking-alt { display: flex; flex-wrap: wrap; gap: 12px; }
.booking-alt .btn { flex: 1 1 220px; justify-content: space-between; }
.booking-call { gap: 10px; }
.booking-call .booking-ic { width: 18px; height: 18px; flex: none; }
.booking-alt-on { font-size: 14px; line-height: 1.6; color: var(--dark-70); }
.booking-alt-on a, .booking-note a, .booking-gate-text a { color: var(--dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* keuze tussen behandelingen (alleen als er meerdere event types zijn) */
.booking-events { display: flex; flex-wrap: wrap; gap: 8px; }
.booking-events[hidden] { display: none; }
.booking-chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--dark-70);
  background: rgba(255, 255, 255, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(31, 32, 33, 0.08);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.booking-chip:hover { color: var(--dark); background: rgba(255, 255, 255, 0.8); }
.booking-chip[aria-pressed="true"] { color: #fff; background: var(--dark); box-shadow: 0 6px 16px -8px rgba(31, 32, 33, 0.5); }

/* het podium voor de agenda: warm ivoor, zelfde glaslijn als de rest */
.booking-stage { display: flex; flex-direction: column; gap: 12px; }
.booking-stage[hidden] { display: none; }
.booking-gate, .booking-embed {
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(253, 250, 245, 0.92), rgba(249, 241, 233, 0.86));
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(31, 32, 33, 0.07), 0 18px 44px -26px rgba(90, 56, 36, 0.35);
}
.booking-gate { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px; }
.booking-gate-text { max-width: 38em; font-size: 14px; line-height: 1.6; color: var(--dark-70); }
.booking-embed { position: relative; display: none; overflow: hidden; }
.booking-cal-host { width: 100%; }
.booking-cal { width: 100%; min-height: 640px; }
.booking-cal[hidden] { display: none; }
.booking-note { font-size: 13px; line-height: 1.5; color: var(--dark-50); display: none; }

.booking-loading, .booking-error { display: none; }
.booking-loading { flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 640px; font-size: 14px; color: var(--dark-70); }
.booking-spinner { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(31, 32, 33, 0.12); border-top-color: var(--dark); animation: bookingSpin 0.9s linear infinite; }
@keyframes bookingSpin { to { transform: rotate(360deg); } }
.booking-error { flex-direction: column; align-items: flex-start; gap: 10px; padding: 32px 28px; outline: none; }
.booking-error-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--dark); }
.booking-error-text { max-width: 36em; font-size: 15px; line-height: 1.6; color: var(--dark-70); }
.booking-error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 10px; }

/* toestanden */
.booking[data-state="loading"] .booking-gate, .booking[data-state="live"] .booking-gate, .booking[data-state="error"] .booking-gate { display: none; }
.booking[data-state="loading"] .booking-embed, .booking[data-state="live"] .booking-embed, .booking[data-state="error"] .booking-embed { display: block; }
.booking[data-state="loading"] .booking-loading { display: flex; }
.booking[data-state="error"] .booking-error { display: flex; }
.booking[data-state="loading"] .booking-cal-host, .booking[data-state="error"] .booking-cal-host { position: absolute; inset: 0; visibility: hidden; }
.booking[data-state="live"] .booking-note { display: block; }

html .booking-chip:focus-visible, html .booking-error:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }

@media (max-width: 809.98px) {
  .booking-gate { padding: 22px 20px; border-radius: 20px; }
  .booking-embed { border-radius: 20px; margin: 0 -6px; }
  .booking-cal, .booking-loading { min-height: 720px; }
  .booking-alt .btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .booking-spinner { animation: none; border-top-color: rgba(31, 32, 33, 0.45); }
}

/* het hidden-attribuut wint altijd van de display-regels hierboven */
.booking [hidden] { display: none !important; }
/* lange knoplabels mogen afbreken in plaats van uit beeld te lopen */
.booking-alt .btn { min-width: 0; white-space: normal; text-align: left; line-height: 1.3; padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 809.98px) { .booking-embed { margin: 0; } }

/* ---------- actieve koppeling (2026-09): rustiger, geen tweede zware kaart ---------- */
.booking-other { font-size: 14px; line-height: 1.6; color: var(--dark-70); max-width: 40em; }
/* de agenda staat direct op het glaspaneel van de contactpagina: alleen een zachte rand */
.booking-embed { background: transparent; box-shadow: inset 0 0 0 1px rgba(31, 32, 33, 0.07); border-radius: 22px; }
.booking[data-state="live"] .booking-embed { box-shadow: none; }
.booking-cal { min-height: 0; }
/* laden: een skelet van een maandagenda, geen spinner in een wit vlak */
.booking-loading { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px; min-height: 0; padding: 26px 24px 28px; }
.booking-loading-text { font-size: 14px; color: var(--dark-70); }
.booking-spinner { display: none; }
.booking-skeleton { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.booking-skeleton span { display: block; border-radius: 10px; background: linear-gradient(90deg, rgba(31, 32, 33, 0.05) 0%, rgba(31, 32, 33, 0.09) 50%, rgba(31, 32, 33, 0.05) 100%); background-size: 200% 100%; animation: bookingSheen 1.6s ease-in-out infinite; }
.booking-skeleton .sk-head { grid-column: 1 / -1; height: 18px; width: 38%; }
.booking-skeleton .sk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; background: none; animation: none; }
.booking-skeleton .sk-grid span { aspect-ratio: 1; border-radius: 12px; }
.booking-skeleton .sk-slots { display: flex; flex-direction: column; gap: 10px; background: none; animation: none; }
.booking-skeleton .sk-slots span { height: 42px; border-radius: 12px; }
@keyframes bookingSheen { from { background-position: 100% 0; } to { background-position: -100% 0; } }
/* fout: nette uitweg, nooit een lege container */
.booking-error-actions .btn { flex: 1 1 180px; justify-content: space-between; }
.booking-error-more { font-size: 13.5px; color: var(--dark-70); }
.booking-error-more a { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; }
.booking-textbtn { font: inherit; color: var(--dark); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
html .booking-textbtn:focus-visible, html #online-agenda:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }
#online-agenda:focus:not(:focus-visible) { outline: none; }
@media (max-width: 809.98px) {
  .booking-skeleton { grid-template-columns: 1fr; }
  .booking-skeleton .sk-slots { display: none; }
  .booking-loading { padding: 20px 16px 22px; }
}
@media (prefers-reduced-motion: reduce) { .booking-skeleton span { animation: none; } }
/* de agenda krijgt de volle breedte van het paneel (styles.css zet .booking op flex-start) */
.booking-stage, .booking-embed, .booking-cal-host, .booking-alt { align-self: stretch; width: 100%; }
.booking[data-state="error"] .booking-alt-on { display: none; }

/* ==========================================================================
   Contactformulier (e-mail): meldingen, hint en spamveld
   ========================================================================== */
.form-anchor { display: block; position: relative; top: -120px; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field-help { font-size: 12.5px; line-height: 1.5; color: var(--dark-50); }
.form-hint { margin-top: -4px; font-size: 14px; line-height: 1.55; color: var(--dark-70); }
.form-hint a { color: var(--dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.form-fields { display: flex; flex-direction: column; gap: inherit; }
.form-fields[hidden], .form-result[hidden] { display: none !important; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.form-result { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 24px; border-radius: 20px; outline: none;
  background: linear-gradient(160deg, rgba(253, 250, 245, 0.92), rgba(249, 241, 233, 0.86)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(31, 32, 33, 0.07); }
.form-result--ok { gap: 10px; padding: 28px; }
.form-result--ok .form-result-title::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; border-radius: 50%; background: #b89b6a; box-shadow: 0 0 0 4px rgba(184, 155, 106, 0.2); vertical-align: middle; }
.form-result-title { font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--dark); }
.form-result-text { font-size: 15px; line-height: 1.6; color: var(--dark-70); }
.form-result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; width: 100%; }
.form-result-actions .btn { flex: 1 1 160px; justify-content: space-between; min-width: 0; }
html .form-result:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }
