/* ===== Concierge booking form (.cz): used inside the Book a visit popup (#popmake-777) and on /review/concierge.
   Self-contained: its own colour tokens, and selectors specific enough to beat the theme's generic input/button rules. ===== */
.cz {
  /* Colours taken from reefhospital.com: the magenta, its two light pinks, and the theme's text greys. No gradients. */
  --brand: #b5106a;
  --pink: #ffdaf9;
  --pink-soft: #fdf7fb;
  --pink-mid: #fce8f3;
  --line: #f0e0ea;
  --line-strong: #f7c8e4;
  --text: #313131;
  --muted: #584048;
  --err: #b4232c;
  --sans: "Lato", "Segoe UI", Helvetica, Arial, sans-serif;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.cz *, .cz *::before, .cz *::after { box-sizing: border-box; }
.cz ::selection { background: var(--pink); color: var(--text); }
.cz input, .cz select, .cz textarea, .cz button { font: inherit; color: inherit; caret-color: var(--brand); margin: 0; }
.cz :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.cz a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cz h2, .cz h3 { font-family: var(--sans); font-weight: 700; margin: 0; text-wrap: balance; color: var(--text); letter-spacing: 0; }
.cz p, .cz dl, .cz ol { margin: 0; }
.cz label { display: block; margin: 0; }

/* ----- the form card ----- */
.cz { display: grid; grid-template-columns: 320px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px -28px rgba(88, 64, 72, 0.35); }

.cz-panel { background: var(--pink); padding: 36px 30px; display: grid; align-content: start; gap: 22px; }
.cz-panel h2 { font-size: 28px; line-height: 1.12; }
.cz-panel-lede { margin: -8px 0 0; font-size: 15px; color: var(--muted); }
.cz-about { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.cz-facts { margin: 0; display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(49, 49, 49, 0.12); }
.cz-facts dt { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cz-facts dd { margin: 2px 0 0; font-size: 15px; color: var(--text); }
.cz-facts a { color: var(--text); font-weight: 700; text-decoration-color: var(--brand); }
.cz-chosen { margin: 0; padding: 14px 16px; border-radius: 12px; background: #fff; display: grid; gap: 2px; }
.cz-chosen span { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cz-chosen strong { font-size: 14.5px; color: var(--text); line-height: 1.4; }

.cz-form { padding: 36px 36px 32px; display: grid; gap: 24px; align-content: start; }
.cz-group { display: grid; gap: 10px; }
.cz-label, .cz-field label { font-size: 13.5px; font-weight: 700; color: var(--text); }
.cz-field label span { color: var(--brand); }

/* Booking type: light-pink tiles, white when chosen, magenta only while hovering. */
.cz-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cz .cz-types label { position: relative; margin: 0; display: grid; place-items: center; min-height: 52px; padding: 10px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--pink-soft); font-size: 14px; font-weight: 700; color: var(--text); text-align: center; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; }
.cz-types label:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.cz-types label.is-on { background: #fff; border: 2px solid var(--brand); color: var(--brand); padding: 9px 7px; }
.cz-types label.is-on::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.cz-types label.is-on:hover { background: var(--brand); color: #fff; }
.cz-types label.is-on:hover::after { background: #fff; }
.cz-types input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.cz-types label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

.cz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
/* The three steps are DOM groups; on desktop they dissolve into the grid and `order` restores the approved layout (name and phone first). */
.cz-step { display: contents; }
.cz-step.is-hidden { display: none; }
.cz-o0 { order: 0; } .cz-o1 { order: 1; } .cz-o2 { order: 2; } .cz-o3 { order: 3; }
.cz-field { display: grid; gap: 6px; align-content: start; }
.cz-span { grid-column: 1 / -1; }
.cz .cz-field input, .cz .cz-field select, .cz .cz-field textarea, .cz .cz-phone { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; font-size: 16px; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.cz .cz-field textarea { min-height: 92px; resize: vertical; }
.cz .cz-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5106a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.cz-field select:has(option[value=""]:checked) { color: var(--muted); }
.cz-field select option { color: var(--text); }
.cz-field select option:disabled { color: #9a9a9a; }
.cz-field input::placeholder, .cz-field textarea::placeholder { color: #8a7a82; }
.cz-field input:hover, .cz-field select:hover, .cz-field textarea:hover, .cz-phone:hover { background: var(--pink-soft); }
.cz-field input:focus, .cz-field select:focus, .cz-field textarea:focus, .cz-phone:focus-within { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(181, 16, 106, 0.14); }
.cz-field input:user-invalid, .cz-field select:user-invalid, .cz-phone:has(input:user-invalid) { border-color: var(--err); }
.cz .cz-phone { display: flex; align-items: center; gap: 10px; padding: 0 0 0 14px; }
.cz-phone span { font-weight: 700; color: var(--muted); }
.cz .cz-phone input { border: 0; padding: 12px 14px 12px 0; min-height: 48px; background: transparent; box-shadow: none; }
.cz-phone input:focus { outline: none; box-shadow: none; }
.cz-field input[type="date"] { appearance: none; -webkit-appearance: none; }
.cz-field input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.7; cursor: pointer; }

.cz-actions { display: grid; gap: 10px; justify-items: start; padding-top: 4px; }
.cz .cz-back { justify-self: center; border: 0; background: none; padding: 6px 10px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cz-back:hover { color: var(--text); }

/* ----- stepped mode (narrow cards) ----- */
.cz-progress { display: grid; gap: 4px; }
.cz-bars { display: flex; gap: 6px; margin-bottom: 10px; }
.cz-bars span { flex: 1; height: 4px; border-radius: 999px; background: var(--pink); }
.cz-bars span.is-on { background: var(--text); }
.cz-progress-n { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cz-progress h3 { font-size: 22px; line-height: 1.15; outline: none; }
.cz-progress p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.cz-saved { display: flex; align-items: center; gap: 8px; margin-top: 8px !important; font-size: 13.5px; font-weight: 700; color: var(--text) !important; }
.cz-saved svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cz-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--pink-soft); border: 1px solid var(--line); }
.cz-summary > div { display: grid; gap: 2px; }
.cz-summary span { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cz-summary strong { font-size: 14.5px; line-height: 1.4; }
.cz-summary em { font-style: normal; font-size: 14px; color: var(--muted); }
.cz .cz-summary button { flex: none; border: 0; background: none; padding: 2px 0; font-weight: 700; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cz-actions p { margin: 0; font-size: 13.5px; color: var(--muted); }
.cz .cz-btn { display: inline-flex; line-height: 1; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(181, 16, 106, 0.7); transition: transform 0.15s, filter 0.15s, box-shadow 0.15s; }
.cz .cz-btn:hover { transform: translateY(-1px); filter: brightness(0.92); box-shadow: 0 14px 28px -12px rgba(181, 16, 106, 0.7); }
.cz .cz-btn:active { transform: translateY(0); }
.cz .cz-actions .cz-btn { width: 100%; }
.cz .cz-btn:disabled { filter: none; opacity: 0.6; cursor: progress; transform: none; }
.cz-error { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #f0b4b8; background: #fff5f5; color: var(--err); font-size: 14px; }

.cz-done { padding: 48px 32px; text-align: center; display: grid; justify-items: center; gap: 12px; align-content: center; min-height: 100%; }
.cz-done svg { width: 56px; height: 56px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cz-done h3 { font-size: 26px; }
.cz-done p { margin: 0; max-width: 42ch; color: var(--muted); }
.cz-done .cz-btn { margin-top: 10px; }

/* ----- phone frame / narrow screens: the panel folds into a short strip above the form ----- */
@container (max-width: 720px) {
  .cz { grid-template-columns: 1fr; border-radius: 16px; }
  .cz-panel { padding: 22px 20px; gap: 14px; }
  .cz-panel h2 { font-size: 24px; }
  .cz-about { display: none; }
  .cz-facts { padding-top: 0; border-top: 0; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cz-facts div:last-child { display: none; }
  .cz-chosen { display: none; }
  .cz-form { padding: 22px 18px 24px; gap: 20px; }
  .cz-types { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cz-types label { min-height: 48px; font-size: 13.5px; }
  .cz-grid { grid-template-columns: 1fr; gap: 14px; }
  .cz-grid > .cz-step > * { order: 0; }
  .cz-field textarea { min-height: 64px; }
  /* After step 1 the strip shrinks to the title so the fields and button stay on one screen. */
  .cz.is-mid .cz-facts { display: none; }
  .cz.is-mid .cz-panel { padding: 16px 20px; }
  .cz.is-mid .cz-panel h2 { font-size: 20px; }
  .cz-progress h3 { font-size: 21px; }
  .cz-panel-lede { display: none; }
}
@media (max-width: 480px) {
  .czp { padding-left: 12px; padding-right: 12px; }
  .czp-head { padding-top: 32px; }
}


/* ----- inside the Popup Maker modal ----- */
#popmake-777.pum-container { padding: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 18px !important; }
#popmake-777 .pum-content { container-type: inline-size; color: inherit; }
#popmake-777 .pum-content + .pum-close { z-index: 5; top: -12px !important; right: -12px !important; width: 36px; height: 36px; padding: 0 !important; line-height: 36px !important; border-radius: 50% !important; font-weight: 700; font-size: 14px !important; }
@media (max-width: 767px) {
  #popmake-777 .pum-content + .pum-close { top: -6px !important; right: -6px !important; }
}
@media (min-width: 768px) {
  #popmake-777.pum-container { width: min(1040px, calc(100% - 48px)) !important; margin-left: calc(min(1040px, calc(100% - 48px)) / -2) !important; top: 40px !important; }
}

/* ----- /book/ page: the same form on its own page (Google Ads landing + conversion URL). Compact so the whole card sits on
   one laptop screen (header 157px + card inside a ~600px viewport). The page title is for search engines; the card has its own. */
.reef-book { container-type: inline-size; max-width: 1040px; margin: 30px auto 64px; padding: 0 20px; }
.reef-book-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reef-book .cz-panel { padding: 24px 24px 22px; gap: 14px; }
.reef-book .cz-panel h2 { font-size: 24px; }
.reef-book .cz-about { font-size: 14px; line-height: 1.5; }
.reef-book .cz-facts { padding-top: 14px; gap: 10px 12px; grid-template-columns: 1fr 1fr; }
.reef-book .cz-facts div:last-child { grid-column: 1 / -1; }
.reef-book .cz-facts dd { font-size: 14px; }
.reef-book .cz-chosen { display: none; }
.reef-book .cz-form { padding: 18px 24px 18px; gap: 12px; }
.reef-book .cz-grid { gap: 8px 14px; align-items: start; }
.reef-book .cz-field, .reef-book .cz-group { align-self: start; }
.reef-book .cz-group, .reef-book .cz-field { gap: 5px; }
.reef-book .cz-label, .reef-book .cz-field label { font-size: 13px; }
.reef-book .cz .cz-types label { min-height: 44px; padding: 8px; }
.reef-book .cz .cz-types label.is-on { padding: 7px; }
.reef-book .cz .cz-field input, .reef-book .cz .cz-field select, .reef-book .cz .cz-phone { min-height: 42px; height: 42px; padding: 8px 14px; }
.reef-book .cz .cz-phone input { min-height: 40px; height: 40px; padding: 8px 14px 8px 0; }
.reef-book .cz .cz-field textarea { min-height: 42px; height: 42px; padding: 9px 14px; }
.reef-book .cz-actions { gap: 6px; }
.reef-book .cz-actions .cz-btn { padding: 12px 20px; }
.reef-book .cz-actions p { display: none; }
.reef-thanks { max-width: 640px; margin: 56px auto 80px; padding: 0 20px; text-align: center; }
.reef-thanks svg { width: 64px; height: 64px; fill: none; stroke: #b5106a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reef-thanks h1 { font-size: 34px; line-height: 1.15; margin: 14px 0 10px; }
.reef-thanks p { color: #6b5560; font-size: 17px; line-height: 1.55; margin: 0 0 14px; }
.reef-thanks .cz-btn { display: inline-block; margin: 10px 6px 0; background: #b5106a; color: #fff; border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 700; text-decoration: none; }
.reef-thanks .cz-btn.is-ghost { background: #fff; color: #b5106a; border: 2px solid #ffdaf9; }
@media (max-width: 689.98px) { .reef-book { margin: 12px auto 40px; padding: 0 12px; } .reef-thanks h1 { font-size: 27px; } }
