@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --ink: #20242a;
  --muted: #707982;
  --accent: #26818b;
  --accent-dark: #205b80;
  --accent-soft: #edf5f8;
  --line: #e4e8ec;
  --surface: #ffffff;
  --canvas: #f6f7f8;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% -15%, #e8f1f5 0, transparent 48%),
    var(--canvas);
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  padding: 34px 20px 24px;
}

.brand {
  display: flex;
  width: min(100%, 1060px);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #000;
  object-fit: contain;
}

.brand-dot {
  color: var(--accent);
}

.booking-card {
  width: min(100%, 520px);
  margin: auto 0;
  padding: 40px 44px 38px;
  border: 1px solid rgba(224, 231, 236, 0.9);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(30, 57, 76, 0.09);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 390px;
  margin-bottom: 10px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: -1.3px;
  line-height: 1.2;
}

.intro-copy,
.section-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.intro-copy {
  margin-bottom: 27px;
}

.progress {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  margin-bottom: 31px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #929aa3;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.step-number {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #e0e5e9;
  border-radius: 50%;
  background: white;
  font-size: 11px;
}

.progress-step.is-active {
  color: var(--accent-dark);
}

.progress-step.is-active .step-number,
.progress-step.is-complete .step-number {
  border-color: var(--accent);
  color: white;
  background: var(--accent);
}

.progress-line {
  height: 1px;
  flex: 1;
  margin: 0 12px;
  background: var(--line);
}

.form-step h2 {
  margin-bottom: 5px;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.section-copy {
  margin-bottom: 21px;
  font-size: 13px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field > span,
.time-fieldset legend {
  display: block;
  margin-bottom: 8px;
  color: #343a42;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #e0e5e9;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input::placeholder {
  color: #9ca5ad;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(38, 129, 139, 0.13);
}

.field select:invalid {
  color: #9ca5ad;
}

.field select option {
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 150ms ease, transform 150ms ease;
}

.button:focus-visible,
.time-option:focus-within {
  outline: 3px solid rgba(38, 129, 139, 0.25);
  outline-offset: 2px;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  width: 100%;
  color: white;
  background: linear-gradient(115deg, #278a8d 0%, #245b85 100%);
}

.button-primary:hover {
  background: linear-gradient(115deg, #21777e 0%, #1d4f75 100%);
}

.button-primary span {
  font-size: 17px;
  font-weight: 400;
}

.time-fieldset {
  min-width: 0;
  margin: 0 0 25px;
  padding: 0;
  border: 0;
}

.time-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.time-option {
  position: relative;
  cursor: pointer;
}

.time-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.time-option span {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #e0e5e9;
  border-radius: 9px;
  color: #343a42;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.time-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.time-option input:checked + span {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.time-option input:checked + span small {
  color: var(--accent-dark);
}

.time-option.is-booked {
  cursor: not-allowed;
}

.time-option input:disabled + span {
  border-color: #e9ecef;
  color: #a3aab1;
  background: #f5f6f7;
  cursor: not-allowed;
}

.time-option input:disabled + span small {
  color: #9ba3aa;
}

.button-row {
  display: grid;
  grid-template-columns: 0.75fr 1.5fr;
  gap: 10px;
}

.review-details {
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.review-item {
  padding: 13px 15px;
}

.review-item + .review-item {
  border-top: 1px solid var(--line);
}

.review-item dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.review-item dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.button-secondary {
  border: 1px solid var(--line);
  color: #50615d;
  background: white;
}

.button-secondary:hover {
  background: #f7f9f8;
}

.email-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.form-message {
  margin: 12px 0 0;
  color: var(--accent-dark);
  font-size: 12px;
  line-height: 1.5;
}

.form-message:empty {
  display: none;
}

.success-panel {
  padding: 10px 0 2px;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 24px;
}

.success-panel h2,
.admin-heading h2 {
  margin-bottom: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.success-panel .button {
  margin-top: 8px;
}

.admin-page-card h1 {
  margin-bottom: 8px;
}

.login-button {
  margin-top: 3px;
}

.login-message {
  margin: 10px 0 0;
  color: #9e3326;
  font-size: 12px;
  line-height: 1.5;
}

.login-message:empty {
  display: none;
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-heading .eyebrow {
  margin-bottom: 7px;
}

.meeting-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 20px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
}

.appointment-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.appointment-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: #fff;
}

.appointment-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.appointment-date {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.appointment-time {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
}

.appointment-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.appointment-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.empty-agenda,
.admin-message {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.admin-message {
  border-color: #e7b5ad;
  color: #9e3326;
  background: #fff8f6;
}

.local-demo-note {
  margin: 16px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 10px;
}

.admin-actions .button {
  width: 100%;
  text-decoration: none;
}

.admin-actions .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

footer {
  color: #87938f;
  font-size: 11px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .page-shell {
    padding: 22px 15px 18px;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .booking-card {
    min-width: 0;
    margin: 32px 0;
    padding: 28px 18px 24px;
    border-radius: 16px;
  }

  .progress {
    justify-content: space-between;
    gap: 3px;
  }

  .progress-step {
    flex: 0 0 64px;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    text-align: center;
    white-space: normal;
  }

  .step-number {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
  }

  .progress-line {
    min-width: 8px;
    flex: 1 1 8px;
    margin: 0;
  }

  .admin-heading {
    align-items: flex-start;
  }

  .appointment-card-header {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
