/* Coast Webinars: Coast brand colors (ocean blue #1E71C0, orange #EB602A, navy #1A2E44), same tokens as Sully. */
:root {
  --bg: #f4f5f7; --panel: #ffffff; --panel-2: #f8f9fb; --text: #1a2e44; --muted: #6b7a8c; --faint: #9aa6b4;
  --border: #e3e7ec; --accent: #1e71c0; --accent-soft: #e3effa; --orange: #eb602a; --orange-strong: #c84e1c;
  --orange-soft: #fdece4; --ink: #1a2e44; --ink-text: #fff; --ok: #18865a; --ok-soft: #e2f5ec; --warn: #a86a00;
  --warn-soft: #fdf1d8; --danger: #c0392b; --danger-soft: #fbe9e7; --live: #e5484d;
  --shadow: 0 1px 2px rgba(26,46,68,.04), 0 6px 24px rgba(26,46,68,.06); --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151c; --panel: #18212b; --panel-2: #1d2733; --text: #e6ecf2; --muted: #93a1b1; --faint: #6c7a8a;
    --border: #2a3542; --accent: #5ea6e6; --accent-soft: #1c3550; --ink: #e6ecf2; --ink-text: #0f151c; --orange: #f27a45;
    --orange-strong: #d4561f; --orange-soft: #3a2218; --ok: #4cc38a; --ok-soft: #173a2b; --warn: #e0a83a; --warn-soft: #3a2e14;
    --danger: #ff6b5b; --danger-soft: #3a1c18; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #0f151c; --panel: #18212b; --panel-2: #1d2733; --text: #e6ecf2; --muted: #93a1b1; --faint: #6c7a8a;
  --border: #2a3542; --accent: #5ea6e6; --accent-soft: #1c3550; --ink: #e6ecf2; --ink-text: #0f151c; --orange: #f27a45;
  --orange-strong: #d4561f; --orange-soft: #3a2218; --ok: #4cc38a; --ok-soft: #173a2b; --warn: #e0a83a; --warn-soft: #3a2e14;
  --danger: #ff6b5b; --danger-soft: #3a1c18; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* --font-body, --font-head and the --*-radius variables are only set by a brand (public/brand.js); the fallbacks are the original look. */
body { font: 15px/1.55 var(--font-body, "Segoe UI", system-ui, -apple-system, sans-serif); color: var(--text); background: var(--bg); min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 6px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 24px 0 10px; font-weight: 650; }
h3 { font-size: 15px; margin: 0 0 6px; font-weight: 650; }
h1, h2, h3 { font-family: var(--font-head, inherit); }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }
.narrow { max-width: 560px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }

label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; font-weight: 550; }
label.check { display: flex; gap: 8px; align-items: flex-start; color: var(--text); font-weight: 400; font-size: 14px; }
label.check input { width: auto; margin-top: 3px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--field-radius, 10px); border: 1px solid var(--border); background: var(--panel);
  color: var(--text); font: inherit;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: var(--btn-radius, 999px);
  border: 0; background: var(--ink); color: var(--ink-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
button:hover, .btn:hover { filter: brightness(1.08); text-decoration: none; }
button:disabled { opacity: .55; cursor: default; }
button.primary, .btn.primary { background: var(--orange-strong); color: #fff; }
button.blue, .btn.blue { background: var(--accent); color: #fff; }
button.ghost, .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 500; }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--border); font-weight: 500; }
button.small, .btn.small { padding: 6px 12px; font-size: 13px; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.blue { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill.orange { background: var(--orange-soft); color: var(--orange-strong); border-color: transparent; }

.error { color: var(--danger); background: var(--danger-soft); border-radius: 10px; padding: 10px 12px; margin-top: 12px; font-size: 14px; }
.notice { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--ink-text); padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow); z-index: 100; font-size: 14px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap { overflow-x: auto; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

.disclosure { font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 32px; padding-top: 16px; white-space: pre-line; }
.brandbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; max-width: 1080px; margin: 0 auto; }
.brandbar img { height: 34px; }
.brandbar .name { font-weight: 650; }

/* Modal (booking page) */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10,16,24,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal .box { background: var(--panel); color: var(--text); border-radius: var(--radius); width: min(860px, 100%); height: min(780px, 100%); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); }
.modal .head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.modal iframe { flex: 1; border: 0; width: 100%; background: #fff; }

/* Booking buttons ("CTAs"), built by public/cta.js for the room and for the admin's preview, so the two match.
   card: under the video. popup: over the video (inside .stage). bar: stuck to the bottom of the window. */
.cta { margin-top: 14px; padding: 16px; border-radius: var(--room-radius, 14px); background: var(--cta-bg, linear-gradient(135deg, #13284d, #1b3a66));
       border: 1px solid var(--cta-border, #2b4f8f); color: #e6ecf2; display: flex; gap: 14px; align-items: center; justify-content: space-between;
       flex-wrap: wrap; animation: pop .3s ease-out; }
.cta .t, .cta-pop .t, .cta-bar .t { font-weight: 650; font-size: 17px; }
.cta .s, .cta-pop .s, .cta-bar .s { color: #b8c7da; font-size: 14px; }
.cta-pop { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(6,10,16,.55); }
.cta-pop .box { position: relative; width: min(440px, 100%); max-height: 100%; overflow: auto; padding: 22px 22px 18px; text-align: center; color: #e6ecf2;
                border-radius: var(--room-radius, 14px); background: var(--cta-bg, linear-gradient(135deg, #13284d, #1b3a66)); border: 1px solid var(--cta-border, #2b4f8f);
                box-shadow: 0 12px 40px rgba(0,0,0,.45); animation: pop .3s ease-out; }
.cta-pop .t { font-size: 20px; line-height: 1.25; padding: 0 14px; }
.cta-pop .s { margin-top: 4px; }
.cta-pop button.primary { margin-top: 14px; }
.cta-x { position: absolute; top: 4px; right: 4px; background: transparent !important; color: #b8c7da !important; padding: 2px 8px !important; font-size: 20px !important; line-height: 1; }
.cta-chip { position: absolute; right: 10px; bottom: 10px; z-index: 5; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; color: #e6ecf2; background: var(--cta-bg, linear-gradient(135deg, #13284d, #1b3a66));
           border-top: 1px solid var(--cta-border, #2b4f8f); box-shadow: 0 -6px 24px rgba(0,0,0,.3); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); animation: up .3s ease-out; }
.cta-bar .in { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.cta-bar .txt { flex: 1; min-width: 0; }
.cta-bar .cta-x { position: static; }
.cta-bar.in-mock { position: absolute; }
@keyframes pop { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 600px) {
  .cta-pop { padding: 8px; }
  .cta-pop .box { padding: 12px 12px 10px; }
  .cta-pop .t { font-size: 15px; }
  .cta-pop .s { font-size: 12.5px; }
  .cta-pop button.primary { margin-top: 8px; padding: 8px 14px; }
  .cta-bar .t { font-size: 14.5px; }
  .cta-bar .s { display: none; }
  .cta-bar button.primary { padding: 9px 14px; white-space: nowrap; }
}
