/* ============================================================
   BOOK PAGE — Amelia-inspired multi-step booking widget
   Brand-adapted to Storfloen (forest, cream, ochre, terracotta)
   ============================================================ */

/* Accessibility helper */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Hero override — shorter than homepage since we have sections below */
.hero.hero-book { min-height: auto; padding: 9rem 2.5rem 5rem; }
@media (max-width: 960px) { .hero.hero-book { padding: 7rem 1.25rem 3rem; } }

/* ============================================================
   BOOK INFO — "Før du booker"-cards
   ============================================================ */
.book-info {
  background: var(--cream-warm);
  padding: 6rem 2.5rem;
}
.book-info .section-title { margin-bottom: 1rem; }
.book-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.book-info-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.8rem;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
}
.book-info-card:hover {
  transform: translateY(-4px);
  border-color: var(--forest);
  box-shadow: 0 18px 35px -16px rgba(31, 48, 39, 0.2);
}
.book-info-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: background 0.3s, transform 0.3s;
}
.book-info-card:hover .book-info-icon {
  background: var(--terracotta);
  transform: rotate(-4deg) scale(1.05);
}
.book-info-icon svg { width: 22px; height: 22px; }
.book-info-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.book-info-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.book-info-card p strong { color: var(--forest); font-weight: 600; }
.book-info-card a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 600;
}
.book-info-card a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .book-info { padding: 4rem 1.25rem; }
  .book-info-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ============================================================
   BOOK SECTION (widget container)
   ============================================================ */
.book-section {
  padding: 6rem 2.5rem;
  background: var(--cream);
}
.book-section .container { max-width: 1400px; }
@media (max-width: 960px) {
  .book-section { padding: 4rem 1.25rem; }
}

/* ----------------------------------------------------------------
 * Amelia booking widget — fill the available container width.
 *
 * Amelia caps the step form at 760px via --am-mw-main and the main
 * panel at 520px via --am-mw-fsm (both set as inline CSS variables
 * on the widget wrapper). We override the variables and the resolved
 * max-widths. NOTE: Amelia's Vue runtime sometimes re-binds inline
 * style; if this CSS doesn't take effect, set the width in wp-admin:
 * Amelia → Tilpass → Step-by-step booking.
 * --------------------------------------------------------------- */
.book-section .amelia-v2-booking,
.book-section #amelia-container,
.book-section .am-fs__wrapper,
.book-section .am-fs__main {
  --am-mw-main: 100% !important;
  --am-mw-fsm: 100% !important;
}
.book-section #amelia-container.am-fs__wrapper {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.book-section .am-fs__main {
  max-width: none !important;
  flex: 1 1 auto !important;
}

@media (max-width: 480px) {
  .book-section { padding: 2rem 1rem 4rem; }
  .book-hero-band { padding: 6.5rem 1.25rem 2.5rem; }
}
