:root {
  --booking-bg: #f7f7f4;
  --booking-surface: #ffffff;
  --booking-line: #e7e7e2;
  --booking-line-strong: #d8ddd8;
  --booking-ink: #202325;
  --booking-muted: #7b8184;
  --booking-accent: #0f5a50;
  --booking-accent-soft: #ecf7f2;
  --booking-accent-strong: #0b4b43;
  --booking-success: #1db98a;
  --booking-danger: #c25555;
  --booking-pink: #ef4f93;
  --booking-shadow: 0 18px 48px rgba(15, 24, 26, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(15, 90, 80, 0.04), transparent 28%),
    linear-gradient(180deg, #fafaf8 0%, var(--booking-bg) 100%);
  color: var(--booking-ink);
  font-family: "Chiron GoRound TC", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.booking-stage {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 22px 76px;
}

.booking-appbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.booking-appbar-home {
  display: none;
}

.booking-menu-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--booking-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.booking-menu-button span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #3d4346;
}

.booking-notice {
  margin: 0 auto 14px;
  max-width: 1040px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--booking-line);
  background: #ffffff;
  color: #4b5458;
  font-size: 13px;
}

.booking-notice.is-error {
  color: var(--booking-danger);
  border-color: rgba(194, 85, 85, 0.25);
  background: rgba(194, 85, 85, 0.05);
}

.booking-notice.is-success {
  color: var(--booking-accent-strong);
  border-color: rgba(15, 90, 80, 0.2);
  background: rgba(15, 90, 80, 0.06);
}

.booking-shell {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  background: var(--booking-surface);
  border: 1px solid #ecece6;
  box-shadow: var(--booking-shadow);
  overflow: hidden;
}

.booking-grid {
  display: grid;
  min-height: 610px;
}

.booking-grid--selection {
  grid-template-columns: 326px minmax(0, 1fr) 286px;
}

.booking-grid--confirm {
  grid-template-columns: 308px minmax(0, 1fr);
}

.booking-grid--manage {
  grid-template-columns: 284px minmax(0, 1fr) 220px;
}

.booking-panel {
  padding: 42px 30px 34px;
}

.booking-panel + .booking-panel {
  border-left: 1px solid var(--booking-line);
}

.booking-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  overflow: hidden;
  pointer-events: none;
}

.booking-ribbon::before {
  content: "";
  position: absolute;
  top: 16px;
  right: -44px;
  width: 198px;
  height: 48px;
  background: linear-gradient(135deg, #0f5a50 0%, #0a3f39 100%);
  transform: rotate(45deg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(11, 75, 67, 0.18);
}

.booking-ribbon strong {
  position: absolute;
  transform: rotate(45deg);
  transform-origin: center;
  top: 46px;
  right: 22px;
  color: #f7f7f1;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.booking-ribbon strong::after {
  content: "";
  display: block;
  width: 58px;
  height: 1px;
  margin: 7px auto 0;
  background: rgba(247, 247, 241, 0.72);
}

.booking-service-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.booking-service-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(15, 24, 26, 0.12);
}

.booking-service-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.booking-service-accent {
  color: var(--booking-pink);
  font-size: 18px;
}

.booking-info-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.booking-info-list--dense {
  gap: 10px;
  margin-bottom: 18px;
}

.booking-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #394144;
  font-size: 14px;
}

.booking-info-row p {
  margin: 4px 0 0;
  color: var(--booking-muted);
  font-size: 13px;
  line-height: 1.5;
}

.booking-info-icon {
  width: 16px;
  flex-shrink: 0;
  color: #42494c;
  text-align: center;
  font-size: 14px;
}

.booking-sidebar-copy {
  margin-top: 22px;
  color: #4b5154;
  font-size: 15px;
}

.booking-sidebar-lead,
.booking-sidebar-highlight {
  margin: 0;
}

.booking-sidebar-highlight {
  margin-top: 6px;
  font-weight: 600;
  color: #596063;
}

.booking-sidebar-copy ul {
  margin: 10px 0 0 22px;
  padding: 0;
}

.booking-sidebar-copy li + li {
  margin-top: 6px;
}

.booking-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.booking-section-head--compact {
  margin-bottom: 12px;
}

.booking-section-title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.booking-month-label,
.booking-selected-date {
  margin: 10px 0 0;
  font-size: 15px;
  color: #2d3538;
}

.booking-section-subtitle {
  margin: 8px 0 0;
  color: var(--booking-muted);
  font-size: 13px;
}

.booking-calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.booking-calendar-nav button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667073;
  font-size: 32px;
  line-height: 1;
  padding: 0;
}

.booking-calendar-wrap {
  margin-top: 22px;
}

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

.calendar-weekdays {
  margin-bottom: 16px;
  color: #50595c;
  font-size: 13px;
}

.calendar-weekdays > div {
  text-align: center;
}

.calendar-day {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #d0d6d8;
  font-size: 15px;
  font-weight: 400;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.calendar-day.is-available {
  background: #f2f8f5;
  color: var(--booking-success);
}

.calendar-day.is-selected {
  background: #10b98d;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(29, 185, 138, 0.24);
}

.calendar-day.is-disabled {
  color: #e2e6e7;
  cursor: default;
}

.calendar-day .day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.calendar-day .day-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  color: #10b98d;
  font-size: 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.booking-timezone-inline {
  margin-top: 30px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--booking-muted);
  font-size: 13px;
}

.booking-slot-table {
  margin-top: 16px;
  border: 1px solid var(--booking-line-strong);
  background: #ffffff;
}

.slot-list-empty {
  padding: 22px 18px;
  text-align: center;
  color: var(--booking-muted);
  font-size: 13px;
}

.slot-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--booking-line-strong);
  background: #ffffff;
  padding: 0 20px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #243137;
  transition: background-color 160ms ease;
}

.slot-item:last-child {
  border-bottom: 0;
}

.slot-item:hover:not(:disabled) {
  background: #fafcfb;
}

.slot-item.is-selected {
  background: rgba(16, 185, 141, 0.06);
}

.slot-item.is-disabled {
  background: #f8f9f7;
  color: #98a1a4;
  cursor: not-allowed;
}

.slot-item.is-disabled .slot-check {
  border-style: dashed;
  border-color: #d7dddf;
  background: #f1f3f2;
}

.slot-time {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.slot-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #9da7aa;
  background: #ffffff;
  position: relative;
}

.slot-item.is-selected .slot-check {
  background: #10b98d;
  border-color: #10b98d;
}

.slot-item.is-selected .slot-check::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.booking-submit-block {
  margin-top: 16px;
}

.booking-inline-status {
  color: var(--booking-muted);
  font-size: 13px;
}

.booking-inline-status--top {
  margin-bottom: 18px;
}

.booking-primary-button,
.booking-secondary-button,
.booking-ghost-button,
.booking-danger-button,
.booking-accent-button {
  width: 100%;
  min-height: 42px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.booking-primary-button {
  background: var(--booking-accent);
  color: #ffffff;
}

.booking-primary-button:hover:not(:disabled) {
  background: var(--booking-accent-strong);
}

.booking-primary-button:disabled,
.booking-secondary-button:disabled,
.booking-ghost-button:disabled,
.booking-danger-button:disabled,
.booking-accent-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.booking-primary-button--compact {
  width: 102px;
  min-height: 40px;
}

.booking-secondary-button {
  background: #ffffff;
  border-color: #18c6ad;
  color: #18a592;
}

.booking-danger-button {
  background: #cb3d4f;
  border-color: #cb3d4f;
  color: #ffffff;
}

.booking-danger-button:hover:not(:disabled) {
  background: #b53041;
  border-color: #b53041;
}

.booking-accent-button {
  background: #0f5a50;
  border-color: #0f5a50;
  color: #ffffff;
}

.booking-accent-button:hover:not(:disabled) {
  background: #0b4b43;
  border-color: #0b4b43;
}

.booking-ghost-button {
  background: transparent;
  border-color: var(--booking-line);
  color: #5f696d;
}

.booking-footnote {
  margin: 42px 0 0;
  text-align: center;
  color: #353d41;
  font-size: 15px;
}

.booking-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border: 1px solid var(--booking-line);
  border-radius: 999px;
  color: #7b8285;
  font-size: 16px;
}

.booking-picked-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.booking-picked-card {
  padding: 13px 14px;
  border: 1px solid var(--booking-line);
  background: #fafbf9;
}

.booking-picked-label {
  margin-bottom: 4px;
  color: #8a9092;
  font-size: 11px;
}

.booking-picked-time {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #2a3134;
}

.booking-form-header h2 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
}

.booking-form {
  max-width: 332px;
}

.booking-field,
.booking-question-group {
  margin: 0 0 16px;
}

.booking-field label,
.booking-question-group legend {
  display: block;
  margin-bottom: 7px;
  color: #586064;
  font-size: 11px;
  font-weight: 600;
}

.required {
  color: #18b495;
}

.booking-field input,
.booking-field textarea {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #d7dddf;
  background: #ffffff;
  color: #1e2629;
  outline: none;
}

.booking-field input:focus,
.booking-field textarea:focus {
  border-color: #8ab9b0;
}

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

.booking-link-button {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1fb593;
  font-size: 11px;
}

.booking-guest-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.booking-guest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.booking-guest-row button {
  padding: 0 10px;
  border: 1px solid var(--booking-line);
  background: #fff;
  color: #6b7477;
  font-size: 12px;
}

.booking-choice-list {
  display: grid;
  gap: 6px;
}

.booking-choice-row {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #2e3638;
  font-size: 12px;
}

.booking-choice-row input {
  margin: 0;
  accent-color: #18b495;
}

.booking-conditional-field.is-hidden {
  display: none;
}

.booking-form-actions {
  padding-top: 10px;
  border-top: 1px solid var(--booking-line);
}

.booking-success-panel {
  max-width: 360px;
  padding: 18px;
  border: 1px solid rgba(15, 90, 80, 0.16);
  background: rgba(15, 90, 80, 0.04);
}

.booking-success-panel h2 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.04em;
}

.booking-success-panel p,
.booking-success-panel div {
  color: #415054;
  font-size: 13px;
}

.booking-success-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.booking-success-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
}

.booking-success-primary {
  width: 100%;
}

.booking-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f2;
  color: #536063;
  font-size: 12px;
  font-weight: 700;
}

.booking-status-pill.is-pending {
  background: rgba(15, 90, 80, 0.1);
  color: var(--booking-accent);
}

.booking-status-pill.is-confirmed {
  background: rgba(29, 185, 138, 0.12);
  color: #0d7b5d;
}

.booking-status-pill.is-canceled {
  background: rgba(203, 61, 79, 0.12);
  color: #a62f3d;
}

.booking-status-pill.is-superseded {
  background: rgba(72, 109, 150, 0.12);
  color: #486d96;
}

.booking-manage-summary {
  display: grid;
  gap: 16px;
}

.booking-manage-card {
  padding: 18px 20px;
  border: 1px solid var(--booking-line);
  background: #ffffff;
}

.booking-manage-card h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.booking-manage-meta {
  display: grid;
  gap: 6px;
  color: #435056;
  font-size: 13px;
}

.booking-manage-meta strong {
  color: #1f292d;
}

.booking-manage-slots {
  display: grid;
  gap: 10px;
}

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

.booking-action-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .booking-grid--selection,
  .booking-grid--confirm,
  .booking-grid--manage {
    grid-template-columns: 1fr;
  }

  .booking-panel + .booking-panel {
    border-left: 0;
    border-top: 1px solid var(--booking-line);
  }

  .booking-form {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .booking-stage {
    padding: 18px 12px 40px;
  }

  .booking-shell {
    max-width: none;
  }

  .booking-panel {
    padding: 24px 18px;
  }

  .booking-ribbon {
    width: 110px;
    height: 110px;
  }

  .booking-ribbon::before {
    top: 10px;
    right: -58px;
    width: 160px;
  }

  .booking-ribbon strong {
    top: 35px;
    right: 10px;
    font-size: 13px;
  }

  .calendar-day {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .slot-item {
    min-height: 52px;
    padding: 0 14px;
  }
}
