/* BICC booking enquiry form. Same colours and shapes as the form inside BICC Operations. */
:root {
  --ink: #14232b;
  --muted: #5a6b74;
  --line: #dbe3e7;
  --canvas: #f2f5f7;
  --harbour-900: #082838;
  --harbour-100: #d9eaf1;
  --brand: #107090;
  --brand-dark: #0b566f;
  --brass: #4ea8c8;
  --red: #b42318;
  --red-soft: #fef3f2;
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--harbour-900); color: var(--ink);
  font-family: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, p { margin: 0; }

.shell { display: grid; min-height: 100vh; }
.shell-single { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .shell:not(.shell-single) { grid-template-columns: 1.1fr 1fr; } }

/* Left: the dark panel, desktop only */
.side { display: none; position: relative; overflow: hidden; padding: 3rem; color: #fff; }
@media (min-width: 1024px) { .side { display: flex; flex-direction: column; justify-content: space-between; position: sticky; top: 0; height: 100vh; } }
.side-main { max-width: 28rem; }
.eyebrow { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .875rem; color: var(--brass); }
.side h1 { margin-top: .75rem; font-size: 2.25rem; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.side-lead { margin-top: 1rem; color: rgba(217, 234, 241, .7); line-height: 1.6; }
.side-foot { font-size: .75rem; color: rgba(217, 234, 241, .4); }

.mark-row { display: flex; align-items: center; gap: .75rem; font-size: .875rem; font-weight: 500; color: rgba(217, 234, 241, .8); }
.mark { display: grid; place-items: center; min-width: 2.75rem; height: 2.75rem; padding: 0 .4rem; border-radius: .25rem; background: var(--brass); color: var(--harbour-900); font-size: .8rem; font-weight: 700; }
.mark-row-small { margin-bottom: 2rem; color: var(--ink); font-weight: 600; }
.mark-row-small .mark { min-width: 2.5rem; height: 2.5rem; font-size: .75rem; }
@media (min-width: 1024px) { .mark-row-small { display: none; } }
.shell-single .mark-row { color: var(--ink); font-weight: 600; margin-bottom: 2rem; }

/* Right: the form */
.pane { display: flex; justify-content: center; background: var(--canvas); padding: 2.5rem 1rem; }
@media (min-width: 640px) { .pane { padding: 2.5rem 2rem; } }
@media (min-width: 1024px) { .pane { align-items: flex-start; padding-top: 3.5rem; padding-bottom: 3.5rem; } }
.pane-inner { width: 100%; max-width: 42rem; }
.pane-inner.narrow { max-width: 24rem; align-self: center; }

h2 { font-size: 1.25rem; font-weight: 600; }
.lead { margin-top: .5rem; font-size: .875rem; color: var(--muted); line-height: 1.6; }
#thanks .lead + p, .narrow .lead + p { margin-top: 1.5rem; }
.contact { margin-top: 1rem; font-size: .95rem; line-height: 1.7; }
.contact a { color: var(--brand); font-weight: 600; }

form { margin: 0; }
fieldset { margin: 1.5rem 0 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .75rem; font-size: .875rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }

label { display: block; margin-bottom: .25rem; font-size: .875rem; font-weight: 500; }
.req { color: var(--red); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=datetime-local], select, textarea {
  display: block; width: 100%; min-height: 2.5rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: .375rem;
  background: #fff; color: var(--ink); font: inherit; font-size: .9375rem;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(16, 112, 144, .2); }
[aria-invalid=true] { border-color: var(--red) !important; }
.error { margin-top: .25rem; font-size: .75rem; color: var(--red); }
.hint { margin-top: .75rem; font-size: .75rem; color: var(--muted); }
.grid .hint { margin-top: -.5rem; }

.checks { display: grid; gap: .5rem 1.5rem; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks label { display: flex; align-items: flex-start; gap: .5rem; margin: 0; font-weight: 400; cursor: pointer; }
.checks input { width: 1rem; height: 1rem; margin-top: .2rem; flex: none; accent-color: var(--brand); }
.checks small { font-size: .75rem; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: .5rem 1rem; border: 1px solid transparent; border-radius: .375rem;
  font: inherit; font-size: .875rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { background: var(--canvas); }
.btn[disabled] { opacity: .6; cursor: default; }
form .btn-primary { margin-top: 1.5rem; width: 100%; }
@media (min-width: 640px) { form .btn-primary { width: auto; } }

.notice { margin-top: 1rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: .5rem; background: #fff; font-size: .875rem; color: var(--muted); }
.notice-error { border-color: #fecdca; background: var(--red-soft); color: #7a271a; }

/* The trap for scripts: off screen, not display:none, so simple bots still fill it in. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
