:root {
  --bg: #eff4f8;
  --card: rgba(255, 255, 255, 0.94);
  --ink: #162233;
  --muted: #708197;
  --line: #dbe5ee;
  --soft: #f7fafc;
  --accent: #0d5b40;
  --accent-deep: #0a472f;
  --accent-soft: #e8f6ef;
  --blue: #4a90e2;
  --blue-deep: #108ee9;
  --shadow: 0 24px 60px rgba(11, 23, 39, 0.08);
  --radius-xl: 38px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --font-ui: "Manrope", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(116, 196, 168, 0.18), transparent 30%),
    linear-gradient(180deg, #f7fafc 0%, #edf3f7 100%);
  color: var(--ink);
  font-family: var(--font-ui);
}

body {
  min-height: 100vh;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

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

.is-hidden {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(219, 229, 238, 0.88);
}

.topbar-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(145deg, #136544 0%, #0b3c28 100%);
  box-shadow: 0 18px 30px rgba(15, 95, 63, 0.18);
  display: grid;
  place-items: center;
}

.brand-cap {
  color: white;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-2px);
}

.brand-icon {
  width: 24px;
  height: 24px;
  color: white;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-subtitle {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: uppercase;
}

.brand-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #617387;
  font-size: 14px;
  font-weight: 800;
  transition: 160ms ease;
}

.brand-link:hover {
  background: #f4f8fb;
  color: var(--accent);
}

.mini-arrow {
  margin-left: 4px;
}

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

.booking-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.booking-head {
  padding: 52px 52px 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-weight: 900;
  color: #8a9aad;
}

.booking-head h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.rate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #cfe9db;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.booking-body {
  padding: 42px 52px 52px;
}

.step-panel {
  display: none;
  animation: fadeUp 260ms ease;
}

.step-panel.active {
  display: block;
}

.field-block + .field-block {
  margin-top: 32px;
}

.section-label {
  display: block;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8292a6;
}

.date-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.date-strip::-webkit-scrollbar {
  display: none;
}

.date-item {
  min-width: 74px;
  height: 108px;
  border-radius: 26px;
  border: 2px solid #e9f0f5;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #697b8e;
  transition: 180ms ease;
}

.date-item:hover,
.time-item:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.date-item.active,
.time-item.active {
  color: white;
  border-color: var(--accent);
  background: linear-gradient(180deg, #126847 0%, #0c4d34 100%);
  box-shadow: 0 20px 34px rgba(15, 93, 61, 0.18);
}

.date-weekday {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  opacity: 0.72;
}

.date-day {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.slot-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.timezone-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #cfe9db;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.time-item {
  border: 2px solid #e9f0f5;
  border-radius: 20px;
  background: white;
  color: #617387;
  padding: 17px 12px;
  font-size: 15px;
  font-weight: 900;
  transition: 180ms ease;
}

.time-item:disabled,
.time-item.is-disabled {
  cursor: not-allowed;
  color: #9aaaba;
  background: #eef3f7;
  border-color: #e3ebf1;
  box-shadow: none;
  transform: none;
}

.slot-status {
  margin: 14px 2px 0;
  color: #6f8195;
  font-size: 13px;
  font-weight: 800;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-label {
  font-size: 14px;
  font-weight: 900;
  color: #2c3d52;
  padding-left: 6px;
}

.form-input {
  width: 100%;
  padding: 18px 22px;
  border-radius: 24px;
  border: 2px solid #e9f0f5;
  background: rgba(247, 250, 252, 0.9);
  color: var(--ink);
  outline: none;
  transition: 160ms ease;
  appearance: none;
}

.form-input:focus {
  border-color: var(--accent);
  background: white;
}

.form-input::placeholder {
  color: #9aabbd;
}

.form-textarea {
  resize: vertical;
  min-height: 128px;
}

.summary-card {
  border-radius: 32px;
  background: var(--soft);
  border: 1px solid #e2ebf1;
  padding: 28px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.summary-border {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #d8e3eb;
}

.summary-tag,
.summary-note {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8292a6;
}

.summary-date {
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

.summary-label {
  font-size: 18px;
  font-weight: 900;
  color: #34465a;
}

.summary-price-wrap {
  text-align: right;
}

.summary-price {
  display: block;
  font-size: clamp(42px, 7vw, 56px);
  font-weight: 900;
  letter-spacing: -0.08em;
  font-style: italic;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 24px;
  border-radius: 32px;
  border: 2px solid rgba(16, 142, 233, 0.22);
  background: linear-gradient(180deg, rgba(74, 144, 226, 0.08), rgba(74, 144, 226, 0.02));
}

.payment-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--blue-deep);
  color: white;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 18px 28px rgba(16, 142, 233, 0.22);
}

.payment-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-title {
  font-size: 20px;
  font-weight: 900;
  color: #12325a;
}

.payment-subtitle {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4f88c7;
}

.payment-check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid var(--blue-deep);
  position: relative;
}

.payment-check::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: var(--blue-deep);
}

.actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
}

.secondary-button,
.primary-button,
.pay-button {
  min-height: 62px;
  padding: 0 24px;
  border-radius: 24px;
  font-size: 18px;
  font-weight: 900;
  transition: 180ms ease;
}

.secondary-button {
  flex: 1;
  color: #7f8fa2;
  background: white;
  border: 2px solid #e9f0f5;
}

.primary-button {
  flex: 2;
  color: white;
  background: linear-gradient(180deg, #136544 0%, #0a472f 100%);
  box-shadow: 0 22px 36px rgba(13, 91, 64, 0.22);
}

.primary-button[disabled] {
  background: #e6edf2;
  color: #9caaba;
  box-shadow: none;
  cursor: not-allowed;
}

.solo-button {
  width: 100%;
}

.success-panel {
  padding: 38px 0 6px;
  text-align: center;
}

.success-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(180deg, #136544 0%, #0a472f 100%);
  box-shadow: 0 24px 40px rgba(13, 91, 64, 0.22);
}

.success-panel h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.success-panel p {
  margin: 18px auto 34px;
  max-width: 520px;
  color: #697b8e;
  font-size: 18px;
  line-height: 1.7;
}

.footer {
  padding: 26px 24px 52px;
  text-align: center;
}

.footer-icons {
  display: inline-flex;
  gap: 28px;
  color: #b2bfca;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer p {
  margin: 22px 0 0;
  color: #b7c2cd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 15, 26, 0.74);
  backdrop-filter: blur(14px);
}

.modal-card {
  position: relative;
  width: min(100%, 560px);
  border-radius: 54px;
  background: linear-gradient(180deg, #4a90e2 0%, #3c7fd0 100%);
  box-shadow: 0 36px 80px rgba(8, 18, 31, 0.32);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
  font-size: 32px;
  line-height: 1;
}

.modal-head {
  padding: 52px 24px 18px;
  text-align: center;
  color: white;
}

.modal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 42px;
  font-weight: 900;
}

.modal-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--blue-deep);
  font-size: 28px;
}

.modal-head h3 {
  margin: 22px 0 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-body {
  margin: 0 24px 20px;
  padding: 26px 24px 28px;
  border-radius: 44px;
  background: white;
  text-align: center;
}

.modal-body-image {
  padding: 12px 12px 20px;
}

.qr-frame {
  width: min(100%, 270px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  padding: 22px;
  border-radius: 32px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  display: grid;
  place-items: center;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-shot-frame {
  width: 100%;
  margin: 0 auto 14px;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(219, 229, 238, 0.8);
}

.payment-shot {
  display: block;
  width: 100%;
  height: auto;
}

.merchant,
.modal-caption,
.modal-foot {
  font-weight: 900;
  text-transform: uppercase;
}

.merchant {
  color: #97a6b7;
  font-size: 11px;
  letter-spacing: 0.28em;
}

.modal-price {
  margin-top: 12px;
  font-size: 60px;
  font-weight: 900;
  color: #162233;
  letter-spacing: -0.08em;
  font-style: italic;
}

.modal-caption {
  color: #617387;
  font-size: 17px;
  letter-spacing: 0.1em;
}

.pay-button {
  flex: 1.2;
  color: white;
  background: linear-gradient(180deg, #57a3ff 0%, #3e87de 100%);
  box-shadow: 0 22px 34px rgba(74, 144, 226, 0.24);
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.modal-secondary-button {
  flex: 0.9;
  min-height: 58px;
  border-radius: 24px;
  background: #edf3f8;
  color: #6b7d91;
  font-weight: 900;
}

.modal-foot {
  margin: 0;
  padding: 0 20px 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  letter-spacing: 0.32em;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .topbar-inner,
  .main-wrap,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .booking-head {
    padding: 40px 22px 0;
  }

  .booking-body {
    padding: 28px 22px 30px;
  }

  .time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-row,
  .slot-heading,
  .payment-method,
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-date,
  .summary-price-wrap {
    text-align: left;
  }

  .payment-check {
    align-self: flex-end;
  }

  .modal-brand {
    font-size: 32px;
  }

  .modal-head h3 {
    font-size: 24px;
  }

  .modal-actions {
    flex-direction: column;
  }
}
