:root {
  --background: #000;
  --surface: #000;
  --surface-soft: #111;
  --line: rgba(255, 255, 255, 0.14);
  --muted: #a7a7a7;
  --text: #fff;
  --accent: #fff;
  --accent-strong: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--background);
}

button,
a {
  font: inherit;
}

.agenda-page {
  width: min(100% - 28px, 480px);
  margin: 0 auto;
  padding: 20px 0 42px;
}

.agenda-cover {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 24px;
  border-radius: 16px;
}

.back-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
}

.agenda-header {
  max-width: 430px;
  margin: 28px auto 22px;
  text-align: center;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.agenda-header h1 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.agenda-header > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.booking-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.calendar-area,
.time-area,
.booking-summary {
  padding: 20px;
}

.calendar-area {
  border-right: 0;
}

.time-area {
  border-top: 1px solid var(--line);
  border-right: 0;
}

.details-area {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  background: var(--surface-soft);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.field textarea {
  min-height: 82px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #777;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.full-width {
  grid-column: 1 / -1;
}

.booking-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.booking-summary > .section-label,
.confirm-button,
.summary-note {
  grid-column: 1 / -1;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  margin-bottom: 20px;
}

.section-heading strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
  text-transform: capitalize;
}

.simple-heading {
  margin-bottom: 20px;
}

.month-actions {
  display: flex;
  gap: 8px;
}

.month-actions button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.month-actions button:hover:not(:disabled),
.month-actions button:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.month-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.day {
  min-width: 0;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.day:hover:not(:disabled),
.day:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.day:disabled {
  cursor: not-allowed;
  color: #4d4d4d;
}

.day.is-today {
  border-color: rgba(255, 255, 255, 0.55);
}

.day.is-selected {
  color: #000;
  background: #fff;
  border-color: var(--accent);
}

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

.time-button {
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.time-button:hover,
.time-button:focus-visible,
.time-button.is-selected {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.empty-state,
.timezone,
.summary-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
}

.timezone {
  margin: 22px 0 0;
}

.summary-line {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.summary-line span {
  color: var(--muted);
  font-size: 12px;
}

.summary-line strong {
  font-size: 14px;
}

.confirm-button {
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  color: #000;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.confirm-button:hover:not(:disabled),
.confirm-button:focus-visible {
  filter: brightness(1.12);
  outline: 3px solid rgba(255, 255, 255, 0.25);
  outline-offset: 2px;
}

.confirm-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.summary-note {
  margin: -6px 0 0;
  max-width: none;
}

.agenda-footer {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .confirm-button {
    grid-column: 1 / -1;
  }

  .summary-note {
    grid-column: 1 / -1;
    max-width: none;
    margin: -8px 0 0;
  }
}

@media (max-width: 430px) {
  .agenda-page {
    width: min(100% - 20px, 480px);
    padding-top: 20px;
  }

  .agenda-header {
    margin: 24px auto 20px;
  }

  .calendar-area,
  .time-area,
  .details-area,
  .booking-summary {
    padding: 20px 16px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .day {
    border-radius: 9px;
  }
}
