/* 365 Technologies Inc. - meet.365tech.ca gate page. Brand: Work Sans, Midnight #173F53, Cerulean #4EB3CE, Moss #4F7957, Sage #72AE7C. */
:root {
  --midnight: #173F53;
  --midnight-dark: #102E3D;
  --cerulean: #4EB3CE;
  --moss: #4F7957;
  --sage: #72AE7C;
  --ink: #1B2730;
  --muted: #5A6B76;
  --line: #D9E3E9;
  --bg: #F4F7F9;
  --card: #FFFFFF;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Work Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
a { color: var(--midnight); text-decoration-color: var(--cerulean); text-underline-offset: 3px; }
a:hover { color: var(--moss); }
:focus-visible { outline: 3px solid var(--cerulean); outline-offset: 2px; }

.band {
  background: var(--midnight);
  color: #fff;
  padding: 28px 0 76px;
  border-bottom: 6px solid var(--cerulean);
}
.logo img { display: block; width: 220px; height: auto; }
.band h1 { font-size: 32px; line-height: 1.2; font-weight: 700; margin: 36px 0 10px; letter-spacing: -0.01em; }
.lede { margin: 0; color: #D4E6EE; font-size: 18px; max-width: 34em; }
.intro { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.intro h1 { margin-top: 0; }
.headshot {
  flex: none; width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--cerulean);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); background: #D1D6DC;
}
.lede sup { font-size: 0.6em; }

main.wrap { margin-top: -48px; }
.card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(23, 63, 83, 0.12);
  padding: 32px;
  margin-bottom: 24px;
}
.card h2 { font-size: 24px; margin: 0 0 12px; color: var(--midnight); }
.card p { margin: 0 0 14px; }
.step { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--moss); margin-bottom: 6px !important; }
.question { font-weight: 600; margin-top: 20px !important; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
  font: inherit; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 10px; border: 2px solid var(--midnight);
  cursor: pointer; text-decoration: none;
}
.btn.primary { background: var(--midnight); color: #fff; }
.btn.primary:hover { background: var(--midnight-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--midnight); }
.btn.ghost:hover { background: #EAF6FA; color: var(--midnight); }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 8px; }
.option {
  display: flex; flex-direction: column;
  border: 2px solid var(--line); border-radius: 12px;
  padding: 20px; text-decoration: none; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.option:hover { border-color: var(--cerulean); box-shadow: 0 6px 18px rgba(78, 179, 206, 0.25); color: var(--ink); }
.option .len { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--midnight); background: #E3F3F8; border-radius: 999px; padding: 2px 10px; }
.option .name { font-size: 20px; font-weight: 700; color: var(--midnight); margin: 12px 0 6px; }
.option .desc { color: var(--muted); flex: 1; }
.option .go { margin-top: 16px; font-weight: 600; color: var(--midnight); }
.option .go::after { content: " \2192"; color: var(--cerulean); }

.small { font-size: 15px; color: var(--muted); margin-top: 16px !important; }
.foot { padding-top: 8px; padding-bottom: 32px; color: var(--muted); font-size: 14px; text-align: center; }
.foot a { color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .band { padding: 22px 0 64px; }
  .band h1 { font-size: 26px; }
  .intro { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 24px; }
  .headshot { width: 96px; height: 96px; border-width: 3px; }
  .card { padding: 24px 20px; }
  .options { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- booking steps (time picker, details form, confirmation) ---------- */
button.option { font: inherit; text-align: left; background: #fff; cursor: pointer; width: 100%; }
.muted { color: var(--muted); }
.summary { background: #EAF6FA; border-left: 4px solid var(--cerulean); border-radius: 8px; padding: 12px 16px; }
.notice { background: #FFF7E6; border-left: 4px solid #E0A526; border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
.notice.error { background: #FDECEC; border-left-color: #C0392B; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 18px 0; }
.spinner { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--cerulean); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 8px 0 6px; scrollbar-width: thin; }
.day {
  font: inherit; font-weight: 600; flex: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 92px; padding: 10px 12px; border-radius: 10px;
  border: 2px solid var(--line); background: #fff; color: var(--midnight);
}
.day small { font-weight: 500; font-size: 12px; color: var(--muted); }
.day:hover { border-color: var(--cerulean); }
.day.sel { background: var(--midnight); border-color: var(--midnight); color: #fff; }
.day.sel small { color: #D4E6EE; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin: 8px 0 4px; }
.slot {
  font: inherit; font-weight: 600; cursor: pointer; min-height: 46px;
  border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--midnight);
}
.slot:hover { border-color: var(--cerulean); background: #EAF6FA; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; color: var(--midnight); border: 0; padding: 0; margin: 0; min-width: 0; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
.field legend { padding: 0; margin-bottom: 6px; }
.field input:not([type="radio"]) {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  min-height: 46px; padding: 0 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
.field input:focus { border-color: var(--cerulean); outline: none; box-shadow: 0 0 0 3px rgba(78, 179, 206, 0.25); }
.radios { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 400; color: var(--ink); min-height: 46px; align-items: center; }
.radios input { accent-color: var(--midnight); width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: -3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.done-mark { color: var(--sage) !important; }
.done-mark::before { content: "\2713  "; }

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .times { grid-template-columns: repeat(3, 1fr); }
  .day { min-width: 84px; }
}

/* ---------- embedded on 365tech.ca (?embed=1): compact, no logo band or footer ---------- */
html.embed, html.embed body { background: transparent; }
html.embed .wrap { max-width: none; padding: 0 4px; }
html.embed .band { background: none; color: var(--midnight); padding: 4px 0 14px; border-bottom: 0; }
html.embed .logo, html.embed .foot { display: none; }
html.embed .intro { margin-top: 0; gap: 18px; }
html.embed .band h1 { font-size: 24px; color: var(--midnight); margin: 0 0 4px; }
html.embed .lede { color: var(--muted); font-size: 16px; }
html.embed .headshot { width: 84px; height: 84px; border-width: 3px; box-shadow: none; }
html.embed main.wrap { margin-top: 0; }
html.embed .card { box-shadow: 0 2px 10px rgba(23, 63, 83, 0.08); border: 1px solid var(--line); margin-bottom: 6px; }
html.no-intro .band { display: none; }
@media (max-width: 560px) {
  html.embed .intro { flex-direction: row; align-items: center; gap: 14px; margin-top: 0; }
  html.embed .headshot { width: 64px; height: 64px; }
  html.embed .band h1 { font-size: 20px; }
  html.embed .lede { font-size: 14px; }
}
