/* Hartomation booking page. Calm pass: same Hart-blue palette as the
   main site (deep navies #0b1e3a / #1d3557 / #123a75, mid blues,
   near-white background). No orange on this page: the confirm button
   is navy like every other booking button. No gradients, no glow,
   system fonts. */

:root {
  --navy: #1d3557;
  --navy-dark: #0b1e3a;
  --btn-navy: #123a75;
  --btn-navy-hover: #1a4f9c;
  --blue: #1a4f9c;
  --ink: #2f3e4d;
  --charcoal: #41505f;
  --muted: #64788c;
  --line: #d9e3ee;
  --bg: #f8f8f9;
  --bg-alt: #eef3fa;
  --good: #1f7a4d;
  --bad: #b3261e;
  --focus: #2563b8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
}

a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.book-header { background: var(--navy); }
.book-header-inner {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.6rem 1rem;
}
.wordmark { color: #fff; font-weight: 800; letter-spacing: 0.14em; font-size: 1.05rem; text-decoration: none; }
.wordmark { display: inline-flex; align-items: center; gap: 0.5rem; }
.logo-mark { width: 1.75rem; height: 1.75rem; flex: 0 0 auto; }
.book-header-phone { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.book-header-phone:hover { text-decoration: underline; }

.book-main { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; }

.book-host { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.book-host-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.book-host-name { margin: 0; color: var(--charcoal); font-size: 0.98rem; line-height: 1.35; }
.book-host-name strong { color: var(--navy); font-size: 1.15rem; }

h1 { font-size: 1.6rem; color: var(--navy); line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; color: var(--navy); margin: 0 0 0.6rem; }
.sub { color: var(--muted); margin: 0 0 1rem; }
.note { font-size: 0.85rem; color: var(--muted); }
.err { color: var(--bad); font-size: 0.95rem; font-weight: 600; margin: 0.6rem 0 0; }
.ok { color: var(--good); }
.big { font-size: 1.25rem; font-weight: 800; color: var(--navy); }

.card {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--navy);
  border-radius: 10px; padding: 1rem; margin-bottom: 0.9rem;
}
.sum {
  background: var(--navy); color: #fff; border-radius: 10px;
  padding: 0.8rem 1rem; margin-bottom: 0.9rem;
}
.sum b { display: block; }

.types { display: grid; gap: 0.6rem; }
.type {
  display: block; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--navy);
  border-radius: 10px; padding: 0.9rem 1rem; cursor: pointer;
  font: inherit; color: inherit;
}
.type:hover, .type:focus-visible { border-color: var(--navy); }
.type b { display: block; font-size: 1.05rem; color: var(--navy); }
.type .m { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.type p { margin: 0.4rem 0 0; font-size: 0.95rem; }

.back {
  background: none; border: 0; color: var(--navy); padding: 0;
  margin: 0 0 0.6rem; font: inherit; font-weight: 700; cursor: pointer;
}

.pick { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 680px) { .pick { grid-template-columns: 330px 1fr; } }

.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.cal-h b { color: var(--navy); }
.cal-h button {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; color: var(--ink);
}
.cal-h button:hover:not(:disabled) { border-color: var(--navy); }
.cal-h button:disabled { opacity: 0.35; cursor: default; }

.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.grid .dow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); padding: 4px 0; }
.grid button, .grid i { height: 42px; border-radius: 8px; border: 0; font: inherit; font-style: normal; }
.grid i { display: block; color: #b4b4bc; line-height: 42px; }
.grid button { background: var(--bg-alt); color: var(--navy); font-weight: 800; cursor: pointer; }
.grid button:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--navy); }
.grid button:disabled { background: none; color: #b4b4bc; font-weight: 400; cursor: default; }
.grid button.on { background: var(--navy); color: #fff; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; }
.times button {
  padding: 0.7rem 0.4rem; border: 1px solid var(--btn-navy); background: #fff; color: var(--btn-navy);
  border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; min-height: 48px;
}
.times button:hover { background: var(--btn-navy); color: #fff; }

label { display: block; font-size: 0.95rem; font-weight: 700; margin: 0.8rem 0 0.3rem; color: var(--navy); }
label span { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; padding: 0.7rem 0.75rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.18); }

.modes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.modes label {
  display: flex; align-items: center; gap: 0.5rem; margin: 0;
  padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: 8px;
  font-weight: 600; cursor: pointer; background: #fff; color: var(--ink);
}
.modes input { accent-color: var(--navy); }

.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  background: var(--btn-navy); color: #fff;
  border: 0; border-radius: 8px; padding: 0.7rem 1.3rem;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover:not(:disabled) { background: var(--btn-navy-hover); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn.ghost:hover { background: var(--bg-alt); }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid var(--bad); }
.btn.danger:hover { background: #fdf0ef; }
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }

.sms-optin {
  margin: 1rem 0; padding: 0.8rem 0.9rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-alt);
}
.sms-optin label {
  display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer;
  font-size: 0.9rem; font-weight: 400; line-height: 1.5; color: var(--ink); margin: 0;
}
.sms-optin input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.sms-optin .sms-note { margin: 0.5rem 0 0 30px; font-size: 0.8rem; line-height: 1.45; color: var(--muted); }

.book-talk { font-size: 1.05rem; margin-top: 1.5rem; }
.book-talk a { font-weight: 700; }

.book-footer {
  max-width: 760px; margin: 0 auto; padding: 0 1rem 2rem;
  color: var(--muted); font-size: 0.85rem;
}
.book-footer a { color: var(--blue); }

@media (max-width: 760px) {
  .row .btn { flex: 1 1 auto; }
}
