/* =====================================================================================
   Glass message window (build 06.14; 06.16: the owner kept the glass for the message window only, always on;
   the drawers went back to their classic look). Frosted blue glass, white text, see-through fields; the heading
   stays in place with a line under it and only the form scrolls under that line.
   Phones: a sheet that comes up from the bottom edge (rounded only at the top), a little narrower than the
   screen so the glass edges show. Browsers without blur get a nearly solid panel; "reduce motion": no movement.
   ===================================================================================== */

:root {
  --glass-blue-1: rgba(30, 64, 130, 0.78);
  --glass-blue-2: rgba(6, 16, 42, 0.86);
  --glass-edge: rgba(255, 255, 255, 0.2);
  --glass-edge-top: rgba(255, 255, 255, 0.42);
  --glass-accent: #f39a45;
  --glass-blur: blur(18px) saturate(160%);
}

/* ---- Message window: all glass, white text, see-through fields ---- */
.enquiry-dialog {
  background: linear-gradient(160deg, var(--glass-blue-1), var(--glass-blue-2));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); border-top: 1px solid var(--glass-edge-top); border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 24px 60px rgba(5, 12, 30, 0.55);
  color: #ffffff; overflow: hidden;
}
/* The heading stays in place with a light line under it; only the part below scrolls and disappears there. */
.enquiry-dialog[open] { display: flex; flex-direction: column; }
.enquiry-dialog-head {
  position: static; flex: none; background: transparent; margin: 0 1.25rem; padding: 1rem 0 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.enquiry-dialog > form, .enquiry-dialog-sent { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.enquiry-form.enquiry-form--popup { padding: 1rem 1.25rem 1.25rem; }
.enquiry-dialog::backdrop { background: rgba(10, 20, 40, 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.enquiry-dialog-head h2 { color: #ffffff; }
.enquiry-dialog-close { background: rgba(255, 255, 255, 0.12); border-color: var(--glass-edge); color: #ffffff; }
.enquiry-dialog-close:hover { background: rgba(255, 255, 255, 0.22); }
.enquiry-dialog .enquiry-intro, .enquiry-dialog label, .enquiry-dialog legend,
.enquiry-dialog .check, .enquiry-dialog .consent, .enquiry-dialog .check--single,
.enquiry-dialog .enquiry-dialog-sent { color: #ffffff; }
.enquiry-dialog .field-hint, .enquiry-dialog .optional, .enquiry-dialog .enquiry-hours { color: rgba(226, 233, 242, 0.85); }
.enquiry-dialog .field-error { color: #ffc2c2; }
.enquiry-dialog input[type="text"], .enquiry-dialog input[type="email"], .enquiry-dialog input[type="tel"],
.enquiry-dialog textarea, .enquiry-dialog .c-select-btn, .enquiry-dialog .multi-pick-btn {
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.32); color: #ffffff; caret-color: #ffffff;
}
.enquiry-dialog input::placeholder, .enquiry-dialog textarea::placeholder { color: rgba(226, 233, 242, 0.6); }
.enquiry-dialog input:hover, .enquiry-dialog textarea:hover { border-color: rgba(255, 255, 255, 0.5); }
.enquiry-dialog input:focus, .enquiry-dialog textarea:focus, .enquiry-dialog .c-select-btn:focus-visible {
  outline: none; border-color: #ffffff; box-shadow: 0 0 0 3px rgba(243, 154, 69, 0.35); background: rgba(255, 255, 255, 0.16);
}
.enquiry-dialog input[aria-invalid="true"], .enquiry-dialog textarea[aria-invalid="true"] { border-color: #ffb0b0; }
/* Browser autofill paints fields light yellow: keep the glass and white text. */
.enquiry-dialog input:-webkit-autofill {
  -webkit-text-fill-color: #ffffff; -webkit-box-shadow: 0 0 0 40px rgba(30, 60, 120, 0.95) inset; transition: background-color 9999s;
}
.enquiry-dialog .check input, .enquiry-dialog input[type="radio"], .enquiry-dialog input[type="checkbox"] { accent-color: var(--glass-accent); }
.enquiry-dialog .notice--error { background: rgba(255, 120, 120, 0.16); border-color: rgba(255, 176, 176, 0.6); color: #ffffff; }
.enquiry-dialog .c-select.is-empty .c-select-text { color: rgba(226, 233, 242, 0.75); }

/* Phones: a sheet from the bottom edge, rounded only at the top, the glass edges visible at the sides. */
@media (max-width: 639px) {
  .enquiry-dialog {
    width: calc(100vw - 1.5rem); max-width: none; max-height: calc(100dvh - 2.5rem);
    margin: auto auto 0; border-bottom: 0; border-radius: 20px 20px 0 0;
  }
}

/* ---- Movement ---- */
@media (prefers-reduced-motion: no-preference) {
  .enquiry-dialog[open] { animation: glass-dialog-in 0.32s ease-out; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 639px) {
  .enquiry-dialog[open] { animation: glass-sheet-up 0.38s cubic-bezier(0.2, 0.8, 0.3, 1); }
}
@keyframes glass-dialog-in {
  from { opacity: 0; transform: translateY(1rem) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes glass-sheet-up {
  from { transform: translateY(100%); }
  to { transform: none; }
}

/* Browsers without blur: a nearly solid panel, so the text never sits on a busy photo. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .enquiry-dialog { background: linear-gradient(160deg, rgba(30, 56, 104, 0.97), rgba(10, 22, 50, 0.98)); }
}

/* The white form card rules (charter.css, 06.13) are more specific: inside the glass window the labels,
   choices and hints stay white / light. */
.enquiry-dialog .enquiry-form label, .enquiry-dialog .enquiry-form legend, .enquiry-dialog .enquiry-form .field > label,
.enquiry-dialog .enquiry-form .field > legend, .enquiry-dialog .enquiry-form .check, .enquiry-dialog .enquiry-form .check--single,
.enquiry-dialog .enquiry-form .consent, .enquiry-dialog .enquiry-form .multi-pick-label { color: #ffffff; }
.enquiry-dialog .enquiry-form .optional, .enquiry-dialog .enquiry-form .field-hint { color: rgba(226, 233, 242, 0.85); opacity: 1; }
.enquiry-dialog .enquiry-form input[type="text"], .enquiry-dialog .enquiry-form input[type="email"], .enquiry-dialog .enquiry-form input[type="tel"],
.enquiry-dialog .enquiry-form textarea, .enquiry-dialog .enquiry-form .c-select-btn {
  background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.32); color: #ffffff;
}
.enquiry-dialog .enquiry-form input:focus, .enquiry-dialog .enquiry-form textarea:focus {
  border-color: #ffffff; box-shadow: 0 0 0 3px rgba(243, 154, 69, 0.35); background: rgba(255, 255, 255, 0.16);
}
/* The navy Send button disappeared on the blue glass: white with navy text here. */
.enquiry-dialog .enquiry-form button[type="submit"].btn, .enquiry-dialog .enquiry-dialog-sent .btn {
  background: #ffffff; color: var(--btn-navy, #1b2a47); border: 1px solid #ffffff; box-shadow: 0 6px 18px rgba(5, 12, 30, 0.35);
}
.enquiry-dialog .enquiry-form button[type="submit"].btn:hover, .enquiry-dialog .enquiry-form button[type="submit"].btn:focus-visible,
.enquiry-dialog .enquiry-dialog-sent .btn:hover { background: #eef1f4; color: var(--btn-navy, #1b2a47); border-color: #eef1f4; }

/* ===== Build 06.23 ===== */

/* Thank-you message in the glass message window: no white box, the glass shows through. */
.enquiry-dialog .enquiry-dialog-sent.notice {
  background: transparent; border: 0; border-radius: 0; margin: 0; padding: 1.1rem 1.25rem 1.4rem; color: #ffffff;
}
.enquiry-dialog .enquiry-dialog-sent-title { color: #ffffff; font-weight: 650; font-size: 1.1rem; }

/* Cruising Routes "Read more" window: the same glass as the message window, white text; a sheet from the
   bottom edge on phones. (The routes styles load later in the page, hence the extra "html" in front.) */
html .ekmar-routes-section .ekmar-routes__dialog {
  background: linear-gradient(160deg, var(--glass-blue-1), var(--glass-blue-2));
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); border-top: 1px solid var(--glass-edge-top); border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 24px 60px rgba(5, 12, 30, 0.55);
  color: #ffffff;
}
html .ekmar-routes-section .ekmar-routes__dialog::backdrop {
  background: rgba(10, 20, 40, 0.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
html .ekmar-routes-section .ekmar-routes__dialog .ekmar-routes__dialog-body { border-top-color: var(--glass-accent); }
html .ekmar-routes-section .ekmar-routes__dialog .ekmar-routes__dialog-where { color: rgba(226, 233, 242, 0.85); }
html .ekmar-routes-section .ekmar-routes__dialog .ekmar-routes__dialog-title { color: #ffffff; }
html .ekmar-routes-section .ekmar-routes__dialog .ekmar-routes__dialog-text { color: rgba(255, 255, 255, 0.92); }
html .ekmar-routes-section .ekmar-routes__dialog .ekmar-routes__dialog-link { color: #ffffff; text-decoration-color: var(--glass-accent); }
html .ekmar-routes-section .ekmar-routes__dialog .ekmar-routes__close {
  background: rgba(255, 255, 255, 0.12); border: 1px solid var(--glass-edge); color: #ffffff; line-height: 30px;
}
html .ekmar-routes-section .ekmar-routes__dialog .ekmar-routes__close:hover,
html .ekmar-routes-section .ekmar-routes__dialog .ekmar-routes__close:focus-visible { background: rgba(255, 255, 255, 0.22); }
@media (max-width: 639px) {
  html .ekmar-routes-section .ekmar-routes__dialog {
    width: calc(100vw - 1.5rem); max-width: none; max-height: calc(100dvh - 2.5rem);
    margin: auto auto 0; border-bottom: 0; border-radius: 20px 20px 0 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html .ekmar-routes-section .ekmar-routes__dialog[open] { animation: glass-dialog-in 0.32s ease-out; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 639px) {
  html .ekmar-routes-section .ekmar-routes__dialog[open] { animation: glass-sheet-up 0.38s cubic-bezier(0.2, 0.8, 0.3, 1); }
}

/* The small stop card on the map: a lighter piece of the same glass, so the map shows through. */
html .ekmar-routes-section .ekmar-routes__card {
  background: linear-gradient(160deg, rgba(30, 64, 130, 0.62), rgba(6, 16, 42, 0.74));
  -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-edge); border-top-color: var(--glass-edge-top);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 28px rgba(5, 12, 30, 0.4);
  color: #ffffff;
}
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__card-body { border-top-color: var(--glass-accent); }
html .ekmar-routes-section .ekmar-routes__card--compact .ekmar-routes__card-body { border-left-color: var(--glass-accent); }
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__card-title { color: #ffffff; }
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__card-text { color: rgba(255, 255, 255, 0.9); }
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__where,
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__extra-lbl { color: rgba(226, 233, 242, 0.8); }
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__xchip {
  background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.32); color: #ffffff;
}
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__xchip:hover,
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__xchip:focus-visible { border-color: var(--glass-accent); }
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__back,
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__showmap { color: #ffffff; text-decoration-color: var(--glass-accent); }
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__close {
  background: rgba(255, 255, 255, 0.12); border: 1px solid var(--glass-edge); color: #ffffff;
}
/* "Read more" on the card: white with navy text, like the Send button in the glass message window. */
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__more {
  background: #ffffff; color: var(--btn-navy, #1b2a47); border: 1px solid #ffffff; box-shadow: 0 4px 12px rgba(5, 12, 30, 0.3);
}
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__more:hover,
html .ekmar-routes-section .ekmar-routes__card .ekmar-routes__more:focus-visible { background: #eef1f4; filter: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html .ekmar-routes-section .ekmar-routes__dialog { background: linear-gradient(160deg, rgba(30, 56, 104, 0.97), rgba(10, 22, 50, 0.98)); }
  html .ekmar-routes-section .ekmar-routes__card { background: linear-gradient(160deg, rgba(30, 56, 104, 0.95), rgba(10, 22, 50, 0.96)); }
}
