/*
 * Booking enquiry page (templates/enquiry-page.php). Scoped to .iwt-enquiry-page.
 * Typography: Cormorant Garamond for headings, Manrope for everything else.
 */
.iwt-enquiry-page {
  --hv-green: var(--e-global-color-primary, #263126);
  --hv-green-2: var(--e-global-color-2da94da, #344034);
  --hv-gold: var(--e-global-color-accent, #b2a478);
  --hv-gold-dark: var(--e-global-color-afe58bc, #9f8f62);
  --hv-gold-light: #ddd1a8;
  --hv-cream: var(--e-global-color-secondary, #f1f0ea);
  --hv-paper: var(--e-global-color-854a996, #fbfaf7);
  --hv-ink: var(--e-global-color-text, #1b1b15);
  --hv-line: var(--e-global-color-3fd990f, #d8d6cd);
  --hv-field: #cfcbbf;
  --hv-muted: #55544c;
  --hv-serif: "Cormorant Garamond", Georgia, serif;
  --hv-sans: "Manrope", system-ui, sans-serif;
  --hv-wrap: 1160px;
  --hv-gutter: 40px;
  display: block;
  background: var(--hv-paper);
  color: var(--hv-muted);
  font: 400 16px/1.7 var(--hv-sans);
  overflow-x: clip;
}
.iwt-enquiry-page *, .iwt-enquiry-page *::before, .iwt-enquiry-page *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------- Hero */
.iwt-enquiry-hero { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: 440px; background: var(--hv-green); color: #fff; text-align: center; }
.iwt-enquiry-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 55%; }
/* About 60–70% black so the transparent header, logo and heading stay readable. */
.iwt-enquiry-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .64) 30%, rgba(0, 0, 0, .6) 65%, rgba(0, 0, 0, .72) 100%); }
.iwt-enquiry-hero.is-plain { background: radial-gradient(ellipse at 50% 20%, var(--hv-green-2) 0%, var(--hv-green) 55%, #161c16 100%); }
.iwt-enquiry-hero.is-plain::after { background: linear-gradient(180deg, rgba(0, 0, 0, .3), transparent 45%); }
/* 150px of top padding inside the hero keeps the heading clear of the overlapping header. */
.iwt-enquiry-hero-inner { width: 100%; max-width: var(--hv-wrap); margin: 0 auto; padding: 150px var(--hv-gutter) 64px; }
.iwt-enquiry-crumbs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 0 0 16px; font: 500 13px/1.4 var(--hv-sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.iwt-enquiry-crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.iwt-enquiry-crumbs a:hover, .iwt-enquiry-crumbs a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.iwt-enquiry-crumbs [aria-current] { color: var(--hv-gold-light); }
.iwt-enquiry-page .iwt-enquiry-title { margin: 0; font-family: var(--hv-serif); font-size: clamp(56px, 6vw, 80px); font-weight: 600; line-height: 1; color: #fff; text-shadow: 0 2px 28px rgba(0, 0, 0, .45); }
.iwt-enquiry-page .iwt-enquiry-title::after { content: ""; display: block; width: 64px; height: 1px; margin: 24px auto 0; background: var(--hv-gold); }

/* ---------------------------------------------------------------- Layout */
.iwt-enquiry-body { max-width: var(--hv-wrap); margin: 0 auto; padding: 72px var(--hv-gutter) 96px; }
.iwt-enquiry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.iwt-enquiry-page .iwt-enquiry-kicker { margin: 0 0 8px; font: 700 13px/1.4 var(--hv-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--hv-gold-dark); }

/* Form card. The shortcode's wrapper is flattened so its heading can sit under the card label. */
.iwt-enquiry-card { display: flex; flex-direction: column; padding: 44px 48px 48px; background: #fff; border: 1px solid var(--hv-line); border-top: 4px solid var(--hv-gold); box-shadow: 0 30px 70px rgba(27, 27, 21, .08); }
.iwt-enquiry-card > .iwt-hotel { display: contents; }
.iwt-enquiry-card > .iwt-enquiry-kicker { order: -2; }
.iwt-enquiry-page .iwt-enquiry-card .iwt-hotel > h2 { order: -1; margin: 0 0 10px; font-family: var(--hv-serif); font-size: clamp(34px, 3.4vw, 46px); font-weight: 600; line-height: 1.1; color: var(--hv-ink); }
.iwt-enquiry-page .iwt-enquiry-intro, .iwt-enquiry-page .iwt-enquiry-intro p { margin: 0 0 28px; font-size: 16px; line-height: 1.7; color: var(--hv-muted); }
/* Contact links are shown in the side panel instead. */
.iwt-enquiry-card .iwt-hotel-contacts { display: none; }

/* Fields: pairs on a 6-column grid; the three counters share one row. */
.iwt-enquiry-page .iwt-hotel-enquiry .iwt-hotel-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 18px; margin: 0 0 20px; }
.iwt-enquiry-page .iwt-hotel-enquiry .iwt-hotel-fields > label { grid-column: span 3; }
.iwt-enquiry-page .iwt-hotel-enquiry .iwt-hotel-fields > .iwt-hotel-stepper-field { grid-column: span 2; }
.iwt-enquiry-page .iwt-hotel-enquiry label { display: flex; flex-direction: column; gap: 8px; margin: 0; font: 600 14px/1.4 var(--hv-sans); color: var(--hv-ink); }
.iwt-enquiry-page .iwt-hotel-enquiry input:not([type="checkbox"]):not([type="radio"]),
.iwt-enquiry-page .iwt-hotel-enquiry select,
.iwt-enquiry-page .iwt-hotel-enquiry textarea { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid var(--hv-field); border-radius: 0; background: #fff; color: var(--hv-ink); font: 500 16px/1.4 var(--hv-sans); box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.iwt-enquiry-page .iwt-hotel-enquiry textarea { min-height: 150px; resize: vertical; }
.iwt-enquiry-page .iwt-hotel-enquiry input:hover, .iwt-enquiry-page .iwt-hotel-enquiry select:hover, .iwt-enquiry-page .iwt-hotel-enquiry textarea:hover { border-color: #b9b4a4; }
.iwt-enquiry-page .iwt-hotel-enquiry input:focus, .iwt-enquiry-page .iwt-hotel-enquiry select:focus, .iwt-enquiry-page .iwt-hotel-enquiry textarea:focus { outline: none; border-color: var(--hv-green); box-shadow: 0 0 0 3px rgba(178, 164, 120, .35); }
.iwt-enquiry-page .iwt-hotel-enquiry [aria-invalid="true"] { border-color: #a4262c; }
.iwt-enquiry-page .iwt-hotel-enquiry .iwt-hotel-field-error { font: 500 13px/1.4 var(--hv-sans); color: #a4262c; }
.iwt-enquiry-page .iwt-hotel-enquiry .iwt-hotel-field-error:empty { display: none; }
/* Guest counters */
.iwt-enquiry-page .iwt-hotel-enquiry .iwt-hotel-stepper-field input { padding-inline: 40px !important; text-align: center; }
.iwt-enquiry-page .iwt-hotel-enquiry .iwt-hotel-stepper { top: 37px; width: 38px; height: 38px; min-height: 38px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--hv-ink); }
.iwt-enquiry-page .iwt-hotel-enquiry .iwt-hotel-stepper:hover { background: var(--hv-cream); }
.iwt-enquiry-page .iwt-hotel-enquiry .iwt-hotel-stepper:disabled { opacity: .35; }
/* Message, status and submit */
.iwt-enquiry-page .iwt-hotel-enquiry > label { margin-bottom: 8px; }
.iwt-enquiry-page .iwt-hotel-enquiry .iwt-hotel-message:not(:empty) { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid #a4262c; background: #fbeeee; font-size: 15px; color: #7c1d22; }
.iwt-enquiry-page .iwt-hotel-enquiry .iwt-hotel-message[data-tone="success"] { border-color: #24634b; background: #ebf5f0; color: #1d5440; }
.iwt-enquiry-page .iwt-hotel-enquiry button[type="submit"] { width: 100%; min-height: 58px; margin-top: 20px; padding: 16px 24px; border: 1px solid var(--hv-green); border-radius: 0; background: var(--hv-green); color: #fff; font: 700 15px/1 var(--hv-sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, border-color .2s; }
.iwt-enquiry-page .iwt-hotel-enquiry button[type="submit"]:hover { border-color: var(--hv-ink); background: var(--hv-ink); }
.iwt-enquiry-page .iwt-hotel-enquiry button[type="submit"]:disabled { opacity: .6; cursor: wait; }

/* ---------------------------------------------------------------- Contact panel */
.iwt-enquiry-aside { padding: 36px 32px; background: var(--hv-green); color: rgba(255, 255, 255, .82); }
.iwt-enquiry-page .iwt-enquiry-aside .iwt-enquiry-kicker { color: var(--hv-gold-light); }
.iwt-enquiry-page .iwt-enquiry-aside h2 { margin: 0 0 24px; font-family: var(--hv-serif); font-size: 34px; font-weight: 600; line-height: 1.1; color: #fff; }
.iwt-enquiry-contact { margin: 0 0 24px; padding: 0; list-style: none; }
.iwt-enquiry-contact li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.iwt-enquiry-contact span { display: block; margin-bottom: 2px; font: 700 12px/1.4 var(--hv-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--hv-gold-light); }
.iwt-enquiry-contact a, .iwt-enquiry-contact address { font: 500 16px/1.5 var(--hv-sans); font-style: normal; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.iwt-enquiry-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.iwt-enquiry-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 28px; }
.iwt-enquiry-times div { padding: 14px; border: 1px solid rgba(255, 255, 255, .16); }
.iwt-enquiry-times dt { font: 700 12px/1.4 var(--hv-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--hv-gold-light); }
.iwt-enquiry-times dd { margin: 4px 0 0; font: 600 18px/1.3 var(--hv-sans); color: #fff; }
.iwt-enquiry-rooms-link { display: flex; align-items: center; justify-content: center; min-height: 50px; border: 1px solid var(--hv-gold); color: var(--hv-gold-light); font: 700 13px/1 var(--hv-sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; transition: background-color .2s, color .2s; }
.iwt-enquiry-rooms-link:hover { background: var(--hv-gold); color: var(--hv-ink); }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .iwt-enquiry-page { --hv-gutter: 32px; }
  .iwt-enquiry-hero { min-height: 380px; }
  .iwt-enquiry-hero-inner { padding-top: 130px; padding-bottom: 52px; }
  .iwt-enquiry-layout { grid-template-columns: minmax(0, 1fr); }
  .iwt-enquiry-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .iwt-enquiry-aside > .iwt-enquiry-kicker, .iwt-enquiry-aside > h2, .iwt-enquiry-rooms-link { grid-column: 1 / -1; }
  .iwt-enquiry-body { padding-top: 56px; padding-bottom: 80px; }
}
@media (max-width: 640px) {
  .iwt-enquiry-page { --hv-gutter: 16px; }
  .iwt-enquiry-hero { min-height: 300px; }
  .iwt-enquiry-hero-inner { padding-top: 112px; padding-bottom: 40px; }
  .iwt-enquiry-page .iwt-enquiry-title { font-size: 48px; }
  .iwt-enquiry-page .iwt-enquiry-title::after { margin-top: 16px; }
  .iwt-enquiry-body { padding-top: 32px; padding-bottom: 64px; }
  .iwt-enquiry-card { padding: 28px 20px 32px; }
  /* One field per row; the three counters stay together only where they fit. */
  .iwt-enquiry-page .iwt-hotel-enquiry .iwt-hotel-fields > label, .iwt-enquiry-page .iwt-hotel-enquiry .iwt-hotel-fields > .iwt-hotel-stepper-field { grid-column: 1 / -1; }
  .iwt-enquiry-aside { display: block; padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) { .iwt-enquiry-page * { transition: none !important; } }
