@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/dcffb399-91ed-493e-9226-d463bd4e4232.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/5a53d9d3-dc10-4538-90a8-46b2b75339c4.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --muted: #6e6e6e;
  --line: #dedbd5;
  --paper: #f7f5f1;
  --white: #ffffff;
  --orange: #e8611f;
  --orange-soft: #fff0e7;
  --shadow: 0 24px 80px rgba(10, 10, 10, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", Arial, sans-serif;
}

button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.site-header {
  position: relative;
  height: 82px;
  padding: 0 clamp(20px, 4vw, 64px);
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; }
.brand strong { color: var(--orange); }
.header-title { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; color: var(--white); font-size: 18px; font-weight: 700; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  background: var(--orange); color: var(--ink);
  box-shadow: 0 0 20px rgba(232,97,31,.45);
}
.brand-symbol { position: absolute; inset: 22%; clip-path: polygon(0% 12%, 52% 12%, 100% 50%, 52% 88%, 0% 88%, 34% 50%); background: var(--ink); }
.back-link { color: rgba(255,255,255,.68); font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: 1px; text-transform: uppercase; }
.back-link:hover { color: var(--orange); }

main { padding: 1.5cm 20px 60px; }

.booking-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.panel { padding: clamp(28px, 4vw, 52px); }
.details-panel { border-right: 1px solid var(--line); }
.calendar-panel { background: #fcfbf9; }
.panel-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.panel-heading h2 { margin: 0 0 5px; font-size: 22px; text-transform: uppercase; letter-spacing: -.2px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.step-icon {
  width: 48px; height: 48px; flex: 0 0 48px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--white);
  font: 800 clamp(18px, 1.25vw, 22px)/1 "Space Grotesk", Arial, sans-serif;
}
.step-icon.accent { background: var(--orange); color: var(--ink); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.full-width { grid-column: 1 / -1; }
.field > span, .meeting-types legend { font-size: 13px; font-weight: 700; letter-spacing: .35px; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); color: var(--ink); outline: none;
  padding: 14px 15px; min-height: 52px; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,97,31,.12); }
.field input::placeholder, .field textarea::placeholder { color: #9b9995; }

.meeting-types { margin: 26px 0 0; padding: 0; border: 0; }
.meeting-types legend { margin-bottom: 12px; }
.meeting-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.meeting-option {
  min-height: 102px; padding: 12px 6px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 13px;
  transition: border-color .2s, background .2s, transform .2s;
}
.meeting-option:hover { border-color: var(--orange); transform: translateY(-2px); }
.meeting-option input { position: absolute; opacity: 0; pointer-events: none; }
.meeting-option:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); box-shadow: inset 0 0 0 1px var(--orange); }
.meeting-option:has(input:focus-visible) { outline: 3px solid rgba(232,97,31,.25); outline-offset: 2px; }
.option-icon { width: 28px; height: 28px; color: var(--ink); }
.option-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.option-icon .icon-fill { fill: currentColor; stroke: none; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }

.calendar-card { border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow: hidden; }
.calendar-toolbar { min-height: 66px; padding: 12px 14px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; text-align: center; border-bottom: 1px solid var(--line); }
.calendar-toolbar strong { font-size: 19px; }
.calendar-toolbar button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #444; display: grid; place-items: center; }
.calendar-toolbar button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.calendar-toolbar button:hover:not(:disabled) { background: var(--orange-soft); color: var(--orange); }
.calendar-toolbar button:disabled { opacity: .25; cursor: default; }
.weekday-row, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.weekday-row { padding: 15px 14px 7px; color: var(--muted); text-align: center; font-size: 12px; font-weight: 600; }
.calendar-days { padding: 4px 14px 18px; row-gap: 5px; }
.calendar-day { aspect-ratio: 1; min-height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
.calendar-day:hover:not(:disabled) { background: var(--orange-soft); }
.calendar-day.selected { background: var(--ink); color: var(--orange); font-weight: 700; box-shadow: 0 0 0 3px rgba(232,97,31,.18); }
.calendar-day.today:not(.selected) { color: var(--orange); font-weight: 700; }
.calendar-day:disabled { color: #c7c4bf; cursor: default; }
.calendar-day.empty { visibility: hidden; }
.times-section { border-top: 1px solid var(--line); padding: 22px 18px 20px; }
.times-section h3 { margin: 0 0 15px; font-size: 14px; }
.time-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-height: 116px; }
.time-slot { min-height: 50px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); font-weight: 600; }
.time-slot:hover { border-color: var(--orange); }
.time-slot.selected { background: var(--ink); color: var(--orange); border-color: var(--ink); }
.empty-times { grid-column: 1 / -1; align-self: center; color: var(--muted); text-align: center; font-size: 14px; }

.timezone-note { display: flex; gap: 9px; align-items: center; padding: 17px 4px 0; color: var(--muted); font-size: 14px; }
.note-icon { flex: 0 0 17px; }
.note-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.confirmation-note { margin-top: 24px; padding: 18px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(232,97,31,.26); border-radius: 9px; background: var(--orange-soft); }
.confirmation-note p { margin: 0; color: #5c514b; line-height: 1.5; font-size: 14px; }
.confirmation-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--white); font-weight: 700; }
.confirmation-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.submit-button { width: 100%; min-height: 58px; margin-top: 22px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 8px; background: var(--ink); color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: .35px; }
.button-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-loader { display: none; align-items: center; gap: 5px; }
.button-loader i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ellipsis-loader .9s infinite ease-in-out; }
.button-loader i:nth-child(2) { animation-delay: .15s; }
.button-loader i:nth-child(3) { animation-delay: .3s; }
.submit-button.sending .button-loader { display: flex; }
.submit-button.sending .button-icon { display: none; }
.submit-button.sending:disabled { opacity: 1; cursor: wait; }
.submit-button:hover:not(:disabled) { background: var(--orange); color: var(--ink); }
.submit-button:disabled { opacity: 1; background: #c7c5c1; color: #f7f7f7; cursor: not-allowed; }
.privacy-note { margin: 14px 0 0; color: #8a8782; font-size: 12px; text-align: center; }
.form-status { display: none; margin-top: 14px; padding: 13px 14px; border-radius: 7px; font-size: 14px; line-height: 1.45; }
.form-status.visible { display: block; animation: confirmation-drop .25s ease-out; }
.form-status.success { background: #eaf7ee; color: #175b2b; border: 1px solid #b9dfc3; }
.form-status.error { background: #fff0ed; color: #8a2317; border: 1px solid #efc0b8; }

@keyframes ellipsis-loader {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@keyframes confirmation-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

footer { padding: 34px clamp(20px, 4vw, 64px); display: flex; justify-content: space-between; gap: 20px; background: var(--ink); color: rgba(255,255,255,.45); font: 400 11px/1.5 "IBM Plex Mono", monospace; letter-spacing: .4px; }
footer a:hover { color: var(--orange); }

@media (min-width: 901px) and (min-height: 760px) {
  body { height: 100svh; display: grid; grid-template-rows: 64px minmax(0, 1fr); overflow: hidden; }
  .site-header { height: 64px; }
  main { min-height: 0; padding: 1.5cm 20px 12px; display: grid; grid-template-rows: minmax(0, 1fr); }
  .booking-shell { height: 100%; min-height: 0; }
  .panel { min-height: 0; padding: clamp(18px, 2.7vh, 26px); }
  .panel-heading { gap: 12px; margin-bottom: 14px; }
  .panel-heading h2 { margin-bottom: 3px; font-size: 18px; }
  .panel-heading p { font-size: 13px; }
  .step-icon { width: 42px; height: 42px; flex-basis: 42px; font-size: 20px; }
  .field-grid { gap: 9px 12px; }
  .field { gap: 5px; }
  .field > span, .meeting-types legend { font-size: 11px; }
  .field input, .field select, .field textarea { min-height: 40px; padding: 8px 11px; font-size: 13px; }
  .field textarea { min-height: 70px; height: 8vh; max-height: 82px; }
  .meeting-types { margin-top: 13px; }
  .meeting-types legend { margin-bottom: 7px; }
  .meeting-option { min-height: 68px; padding: 7px 5px; gap: 5px; font-size: 12px; }
  .option-icon { width: 23px; height: 23px; }
  .calendar-toolbar { min-height: 48px; padding: 4px 10px; }
  .calendar-toolbar strong { font-size: 16px; }
  .calendar-toolbar button { width: 34px; height: 34px; }
  .weekday-row { padding: 8px 12px 3px; font-size: 11px; }
  .calendar-days { padding: 2px 12px 8px; row-gap: 2px; }
  .calendar-day { width: 32px; height: clamp(28px, 3.4vh, 32px); min-height: 0; aspect-ratio: auto; justify-self: center; }
  .times-section { padding: 10px 14px 11px; }
  .times-section h3 { margin-bottom: 7px; font-size: 12px; }
  .time-slots { min-height: 66px; gap: 6px; }
  .time-slot { min-height: 31px; font-size: 12px; }
  .timezone-note { padding-top: 9px; font-size: 12px; }
  .confirmation-note { margin-top: 10px; padding: 10px 12px; gap: 10px; }
  .confirmation-note p { font-size: 12px; line-height: 1.35; }
  .confirmation-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .confirmation-icon svg { width: 17px; height: 17px; }
  .submit-button { min-height: 42px; margin-top: 10px; padding: 0 16px; font-size: 12px; }
  .privacy-note { margin-top: 7px; font-size: 10px; }
  .form-status { margin-top: 7px; padding: 8px 10px; font-size: 11px; }
}

@media (max-width: 900px) {
  .booking-shell { grid-template-columns: 1fr; }
  .details-panel { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .site-header { height: 72px; }
  .brand > span:last-child { display: none; }
  .header-title { font-size: 15px; }
  main { padding: 1.5cm 14px 70px; }
  .booking-shell { border-radius: 12px; }
  .panel { padding: 26px 18px; }
  .panel-heading h2 { font-size: 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .field { grid-column: 1; }
  .meeting-grid { grid-template-columns: 1fr 1fr; }
  .calendar-day { min-height: 38px; }
  .time-slots { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; }
}
