/* Montreal Life — booking pages (schedule.mtllife.ca). Colours and shapes taken from mtllife.ca. */
/* Montserrat (SIL Open Font License, see montserrat-OFL.txt), served from this site. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/montserrat-latin-wght.woff2') format('woff2-variations'), url('/assets/montserrat-latin-wght.woff2') format('woff2');
}
:root {
  --navy: #19234C;
  --navy-2: #222E5E;
  --red: #CB433F;
  --red-hover: #B8382F;
  --red-text: #C2363D;
  --ink: #0A0B0C;
  --text: #2D3032;
  --muted: #6B7072;
  --line: #D8DADC;
  --field: #F3F4F5;
  --sky: #E3EEFD;
  --sky-2: #DCE9FC;
  --soft: #F7FBFE;
  --bar: #BDC0C2;
  --ok: #1E7A44;
  --radius-card: 16px;
  --shadow-pill: 0 10px 30px rgba(25, 35, 76, .14);
  --shadow-card: 0 18px 50px rgba(10, 16, 40, .18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header pill (same as the website) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  padding: 14px 24px 0;
  pointer-events: none;
}
.pill {
  pointer-events: auto;
  max-width: 1180px; margin: 0 auto;
  height: 64px; padding: 0 12px 0 22px;
  background: #fff; border-radius: 999px;
  box-shadow: var(--shadow-pill);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand .logo-fr { display: none; }
html[lang="fr"] .brand .logo-en { display: none; }
html[lang="fr"] .brand .logo-fr { display: block; }
.lang {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--field); border-radius: 999px;
}
.lang button {
  border: 0; background: transparent; cursor: pointer;
  min-width: 44px; height: 36px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang button:focus-visible { outline: 3px solid var(--sky-2); outline-offset: 1px; }

/* ---------- hero (navy, like the website) ---------- */
.hero-wrap { padding: 0 16px; margin-top: -78px; }
.hero {
  max-width: 1180px; margin: 0 auto;
  background:
    radial-gradient(900px 420px at 80% -8%, rgba(120, 155, 220, .55), transparent 62%),
    linear-gradient(180deg, #46639F 0%, #2A3A73 26%, var(--navy) 52%);
  border-radius: 24px;
  color: #fff;
  padding: 112px 22px 0;
}
.hero-grid { display: grid; gap: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink);
  border-radius: 999px; padding: 7px 16px 7px 12px;
  font-size: 14.5px; font-weight: 500;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.badge img { width: 18px; height: 18px; }
.who { display: flex; align-items: center; gap: 16px; margin: 24px 0 18px; }
.avatar {
  position: relative;
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  background: var(--sky); color: var(--navy);
  display: grid; place-items: center; overflow: hidden;
  font-weight: 800; font-size: 22px; letter-spacing: .02em;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.who-text { font-size: 14.5px; line-height: 1.4; color: rgba(255, 255, 255, .82); }
.who-text strong { display: block; color: #fff; font-size: 19px; font-weight: 700; margin: 1px 0 2px; }
.hero h1 {
  margin: 6px 0 14px;
  font-size: 33px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-wrap: balance;
}
.hero .lead { margin: 0 0 20px; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .88); text-wrap: pretty; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 17px; text-wrap: balance; }
.checks li::before {
  content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8' fill='none' stroke='%2319234C' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---------- the booking card (like "Get My Free Quote") ---------- */
.card {
  position: relative;
  background: #fff; color: var(--text);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin: 0 2px -64px;
  scroll-margin-top: 96px;
}
.progress { height: 7px; background: var(--bar); }
.progress span { display: block; height: 100%; width: 25%; background: var(--red); border-radius: 0 999px 999px 0; transition: width .35s ease; }
.card-body { padding: 28px 24px 28px; }
.step-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); margin: 0 0 6px; }
.card h2 {
  margin: 0 0 24px; color: var(--ink);
  font-size: 24px; line-height: 1.3; font-weight: 700;
  display: inline; text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 6px;
}
.card h2 + * { margin-top: 24px; }
.field { display: block; margin: 0 0 18px; }
.field > span { display: block; margin: 0 0 8px; font-size: 16px; font-weight: 500; color: var(--text); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.control {
  display: block; width: 100%;
  min-height: 50px; padding: 12px 14px;
  background: var(--field); border: 1px solid var(--line); border-radius: 6px;
  font-size: 16px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea.control { min-height: 104px; resize: vertical; line-height: 1.45; }
select.control {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%232D3032' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
select.control:invalid, select.control.placeholder { color: var(--muted); }
.control:hover { border-color: #BFC2C5; }
.control:focus { outline: none; border-color: var(--navy); background-color: #fff; box-shadow: 0 0 0 4px rgba(25, 35, 76, .12); }
.control[aria-invalid="true"] { border-color: var(--red); background-color: #FFF8F8; }
.error-text { color: var(--red-text); font-size: 14px; font-weight: 500; margin-top: 8px; }
.row2 { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; padding: 12px 24px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--red); color: #fff;
  font-size: 17px; font-weight: 700; letter-spacing: .01em; line-height: 1.25; text-align: center;
  text-decoration: none;
  transition: background .15s, transform .05s, box-shadow .15s;
  box-shadow: 0 8px 20px rgba(203, 67, 63, .28);
}
.btn:hover { background: var(--red-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(203, 67, 63, .35); outline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: default; box-shadow: none; }
.btn.secondary { background: #fff; color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
.btn.secondary:hover { border-color: var(--navy); background: #fff; }
.actions { display: flex; gap: 12px; align-items: center; margin-top: 26px; }
.actions .btn { flex: 1; }
.linkbtn {
  border: 0; background: none; padding: 10px 6px; cursor: pointer;
  color: var(--navy); font-weight: 600; font-size: 16px; text-decoration: underline; text-underline-offset: 4px;
}
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- step 2: day + time ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.cal-head strong { font-size: 18px; color: var(--ink); text-transform: capitalize; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--navy);
}
.icon-btn[disabled] { opacity: .35; cursor: default; }
.icon-btn:not([disabled]):hover { border-color: var(--navy); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dow { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 0; text-transform: uppercase; letter-spacing: .04em; }
.day {
  aspect-ratio: 1; max-height: 52px; width: 100%; margin: 0 auto;
  border: 0; border-radius: 50%; background: transparent; cursor: default;
  font-size: 16px; font-weight: 500; color: #A4A8AA;
}
.day.open { background: var(--sky); color: var(--navy); font-weight: 700; cursor: pointer; }
.day.open:hover { background: var(--sky-2); }
.day.selected { background: var(--navy) !important; color: #fff; }
.day.today:not(.selected) { box-shadow: inset 0 0 0 1.5px var(--navy); }
.day:focus-visible { outline: 3px solid rgba(25, 35, 76, .3); outline-offset: 1px; }
.times-title { margin: 26px 0 12px; font-size: 16px; font-weight: 600; color: var(--ink); text-wrap: balance; }
.times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 380px) { .times { grid-template-columns: repeat(3, 1fr); } }
.time {
  min-height: 46px; border-radius: 8px; cursor: pointer; padding: 0 4px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy);
  font-size: 15.5px; font-weight: 600; white-space: nowrap;
  transition: border-color .12s, background .12s;
}
.time:hover { border-color: var(--navy); }
.slot-group + .slot-group { margin-top: 18px; }
.slot-label { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.time[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tz-line { margin-top: 18px; font-size: 14.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tz-line select { border: 0; background: transparent; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 0; max-width: 100%; }
.empty { text-align: center; padding: 26px 8px; color: var(--muted); }

/* ---------- step 3 summary chip ---------- */
.summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--soft); border: 1.5px solid var(--sky-2); border-radius: 14px;
  padding: 14px 16px; margin: 4px 0 24px;
}
.summary strong { display: block; color: var(--navy); font-size: 16px; line-height: 1.35; }
.summary span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.consent { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 6px 0 0; }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin-top: 18px; min-height: 0; }

/* ---------- step 4 done ---------- */
.done { text-align: center; padding: 6px 4px 4px; }
.done-mark {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--sky); display: grid; place-items: center;
}
.done-mark svg { width: 38px; height: 38px; }
.done h2 { display: block; text-decoration: none; margin-bottom: 14px; text-wrap: balance; }
.done p { margin: 0 0 12px; }
.done .when { font-weight: 700; color: var(--navy); }
.nw { white-space: nowrap; }
.done .reach { text-wrap: balance; margin: 16px 0; background: var(--soft); border: 1px solid #E6EDF7; border-radius: 12px; padding: 12px 14px; font-size: 15.5px; line-height: 1.5; }
.done .reach strong { color: var(--ink); font-weight: 600; }
.done .reach a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.done .btns { display: grid; gap: 12px; margin-top: 24px; }


/* ---------- advisors list (schedule.mtllife.ca/) ---------- */
.people { display: grid; gap: 14px; margin: 0 2px -64px; }
.person {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  background: #fff; color: var(--text); border-radius: 18px; padding: 16px 18px;
  box-shadow: var(--shadow-card);
}
.person .avatar { width: 60px; height: 60px; font-size: 21px; box-shadow: none; }
.person strong { display: block; color: var(--ink); font-size: 18px; }
.person small { color: var(--muted); font-size: 14px; }
.person .go { margin-left: auto; color: var(--red-text); font-weight: 700; white-space: nowrap; font-size: 15px; }
.person:hover { box-shadow: 0 0 0 2px var(--sky-2), var(--shadow-card); }

/* ---------- footer ---------- */
/* the booking card overlaps the top of the footer, like the quote card on mtllife.ca */
.foot { background: var(--soft); padding: 116px 20px 54px; text-align: center; color: var(--muted); font-size: 14.5px; }
.foot img { height: 36px; width: auto; margin: 0 auto 16px; }
.foot .logo-fr { display: none; }
html[lang="fr"] .foot .logo-en { display: none; }
html[lang="fr"] .foot .logo-fr { display: block; }
.foot a { color: var(--navy); font-weight: 600; text-decoration: none; }
.foot p { margin: 4px 0; }

/* ---------- loading / messages ---------- */
.skeleton { height: 58px; border-radius: 8px; background: linear-gradient(90deg, #F1F2F3, #F8F9FA, #F1F2F3); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin-bottom: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.notice { background: #FFF8E6; border: 1px solid #F3D9A0; color: #6B4A00; border-radius: 12px; padding: 12px 14px; font-size: 14.5px; margin: 0 0 18px; }
.alert { background: #FFF1F1; border: 1px solid #F2C2C2; color: #8E1F1F; border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 0 0 18px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .topbar { padding: 18px 32px 0; }
  .pill { height: 70px; padding: 0 14px 0 30px; }
  .brand img { height: 46px; }
  .hero-wrap { padding: 0 24px; }
  .hero { padding: 132px 56px 0; border-radius: 30px; }
  .hero-grid { grid-template-columns: 1fr 470px; gap: 56px; align-items: start; }
  .hero h1 { font-size: 46px; }
  .who .avatar { width: 84px; height: 84px; font-size: 26px; }
  .who-text strong { font-size: 21px; }
  .hero .lead { font-size: 19px; max-width: 560px; }
  .card { margin: 0 0 -90px; }
  .people { margin: 0 0 -90px; }
  .card-body { padding: 36px 36px 34px; }
  .times { grid-template-columns: repeat(4, 1fr); }
  .foot { padding-top: 150px; }
}
/* phones: a little more room inside the card so the button words stay on one line */
@media (max-width: 420px) {
  .hero { padding-left: 16px; padding-right: 16px; }
  .badge { font-size: 13px; }
  .badge span { text-wrap: balance; }
  .card-body { padding-left: 20px; padding-right: 20px; }
  .btn { font-size: 16px; padding: 12px 16px; }
  .actions.wide { flex-direction: column-reverse; align-items: stretch; gap: 6px; }
  .actions.wide .btn { flex: none; }
  .actions.wide .linkbtn { align-self: center; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 31px; }
  .row2 { grid-template-columns: 1fr; }
  .card-body { padding: 26px 18px; }
}
