/* Oneday Open Day booking page.
   Premium monochrome editorial system: cool off-white canvas, black type,
   white surfaces, soft grey borders, and restrained rounded geometry. */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --black: #000;
  --white: #fff;
  --canvas: #f4f6f9;
  --panel: #edf0f4;
  --muted: #999c9f;
  --line: #dde2e6;
  --ink-soft: #4a4f55;
  --radius-card: 28px;
  --radius-control: 14px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

/* Brand is strictly monochrome - a default-blue link is a brand break. */
a { color: var(--black); text-decoration: underline; }
a:hover { text-decoration-thickness: 2px; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--black);
  font-family: 'Poppins', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .pill, button, .label {
  font-family: 'Poppins', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 36px 24px 80px;
}

header .brand-logo {
  display: block;
  width: 108px;
  height: auto;
  max-height: 36px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 32px;
}
header .brand-logo.mba-brand-logo { width: 180px; }

h1 {
  font-size: clamp(30px, 4.8vw, 42px);
  line-height: 1.04;
  margin: 0 0 12px;
  font-weight: 700;
}

#intro {
  max-width: 100%;
  margin: 0 auto 28px;
  text-align: center;
}

.sub {
  color: var(--ink-soft);
  margin: 0 auto 12px;
  max-width: 70ch;
  line-height: 1.65;
}

.intro-lead {
  max-width: 64ch;
  margin: 0 auto 12px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.selection-intro h2,
.expectations h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.1;
}

.intro-summary {
  max-width: 76ch;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.55;
}

.intro-summary strong { color: var(--black); }
.nowrap { white-space: nowrap; }

.selection-intro {
  margin: 0 auto 14px;
  text-align: center;
}

.selection-intro h2 {
  margin: 0 0 8px;
}

.tzline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #7d858e;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
#tzselect {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--black);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  min-height: 42px;
  padding: 0 22px 0 0;
  cursor: pointer;
  max-width: 100%;
  /* Chevron drawn inline so nothing is fetched from another host. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23000' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.tzline:focus-within {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .12);
}
#tzselect:focus-visible { outline: none; }

.day {
  margin-bottom: 16px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.day h2 {
  font-size: 15px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 12px;
}

.slot {
  appearance: none;
  min-height: 48px;
  border: 1px solid #7d858e;
  background: var(--panel);
  color: var(--black);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  font-size: 15px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.slot:hover, .slot:focus-visible {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .16);
  transform: translateY(-1px);
}
.slot:active { transform: translateY(0); }
.slot[aria-pressed="true"] {
  background: var(--black);
  border-color: var(--black);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  color: var(--white);
}
.show-more-dates {
  display: block;
  min-height: 44px;
  margin: 4px auto 20px;
  padding: 10px 18px;
  border: 1px solid var(--black);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}
.show-more-dates:hover,
.show-more-dates:focus-visible {
  background: var(--black);
  color: var(--white);
}
.show-more-dates:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgba(21, 29, 38, .04);
  padding: 32px;
  margin-top: 20px;
}
.card h2 { font-size: 22px; margin: 0 0 8px; }
.card p.when { font-size: 18px; font-weight: 500; margin: 0 0 20px; }
.change-time {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -12px 0 14px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--panel);
  font-family: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  color: var(--black);
}
.field input:focus { outline: 2px solid var(--black); outline-offset: -1px; border-color: var(--black); background: var(--white); }
.field .err { color: #b00020; font-size: 13px; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: #b00020; }

.row { display: flex; gap: 12px; }
.row .field { flex: 1; }

/* Honeypot - visually gone, still focusable-free for real users. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cta {
  appearance: none;
  border: none;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-control);
  padding: 16px 30px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-top: 6px;
  transition: transform .16s ease, opacity .16s ease;
}
.cta:not(:disabled):hover, .cta:not(:disabled):focus-visible { transform: translateY(-1px); }
.cta:disabled { opacity: .45; cursor: default; }

.ghost {
  background: none;
  border: none;
  color: var(--black);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0 0;
}

.status {
  min-height: 20px;
  font-size: 14px;
  margin-top: 14px;
}
.status.bad { color: #b00020; }

.skeleton {
  height: 48px;
  border-radius: var(--radius-control);
  background: linear-gradient(90deg, var(--panel) 25%, #e2e7ed 37%, var(--panel) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

.empty {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
}
.empty h2 { font-size: 18px; margin: 0 0 8px; }
.empty p { margin: 0; color: var(--ink-soft); }

.expectations {
  margin-top: 24px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.expectations h2 {
  margin: 0 0 16px;
}

.expectations ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expectations li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.expectations li::before {
  position: absolute;
  top: .5em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black);
  content: "";
}

.confirm .tick {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.confirm a.joinlink {
  display: inline-block;
  word-break: break-all;
  color: var(--black);
  font-weight: 500;
}
.confirm .next {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

footer {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}
footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: inherit;
  font-weight: 500;
}
footer a:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

.hidden { display: none !important; }

@media (max-width: 600px) {
  .wrap { padding: 20px 16px 48px; }
  header .brand-logo { width: 92px; margin-bottom: 20px; }
  header .brand-logo.mba-brand-logo { width: 150px; }
  h1 {
    font-size: clamp(26px, 8vw, 29px);
    line-height: 1.12;
    margin-bottom: 8px;
  }
  #intro { margin-bottom: 16px; }
  .intro-lead {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.55;
  }
  .intro-summary {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
  }
  .desktop-reassurance { display: none; }
  .selection-intro { margin-bottom: 10px; }
  .selection-intro h2 {
    margin-bottom: 2px;
    font-size: 22px;
  }
  .tzline {
    display: inline-flex;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.2;
  }
  .tzline > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  #tzselect {
    min-height: 42px;
    font-size: 14px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .day { padding: 16px; border-radius: 22px; }
  .day h2 { margin-bottom: 12px; padding-bottom: 9px; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card, .empty { padding: 24px 20px; border-radius: 22px; }
  .expectations { padding: 24px 20px; border-radius: 22px; }
  .expectations ul { grid-template-columns: 1fr; gap: 12px; }
  .row { display: block; }
}
