/* Restore the earlier narrow product column and wide booking panel. */
.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-kicker {
  margin: 0 0 24px;
  color: var(--orange);
  font: 700 10px/1.4 var(--mono);
}

.hero-copy .overlap-title {
  max-width: none;
  margin: 0;
  font: 900 clamp(88px, 7.5vw, 116px)/0.84 var(--display);
  letter-spacing: 0;
}

.overlap-title span {
  display: block;
  width: max-content;
}

.overlap-title .title-white {
  position: relative;
  z-index: 2;
  color: #fff;
}

.overlap-title .title-orange {
  position: relative;
  z-index: 1;
  margin-top: -22px;
  color: var(--orange);
}

.hero-copy .hero-subtitle {
  max-width: 420px;
  margin-top: 28px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
}

.hero-copy .hero-desc {
  max-width: 430px;
}

.product-stage::before {
  display: none;
}

.product-stage {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 180px;
  flex: 1 1 220px;
  margin-top: clamp(32px, 5vh, 56px);
}

.product-stage img {
  width: min(78%, 520px);
  max-height: 100%;
  object-position: center bottom;
  mix-blend-mode: normal;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.52));
}

.form-section legend {
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  color: var(--text);
  font: 700 20px/1.3 var(--display);
}

.form-section legend small {
  margin-left: 7px;
  color: var(--soft);
  font: 400 12px/1.4 var(--body);
}

.option-section {
  min-width: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.device-version-fieldset {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.device-version-fieldset legend {
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  color: var(--text);
  font: 700 17px/1.3 var(--display);
}

.device-version-fieldset legend small {
  margin-left: 7px;
  color: var(--soft);
  font: 400 12px/1.4 var(--body);
}

.option-section .section-intro {
  margin-top: -10px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  margin-bottom: 20px;
  border-top: 1px solid var(--line);
}

.option-grid .check-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.check-option input,
.model-option input,
.slot-option input {
  width: 17px;
  height: 17px;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--orange);
}

.option-grid .check-option > span {
  min-width: 0;
  margin: 0;
  color: #30322f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.model-option-list {
  border-top: 1px solid var(--line);
}

.model-option {
  display: grid;
  grid-template-columns: 18px 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.model-option .model-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
}

.model-option .model-name strong {
  font: 800 25px/1 var(--display);
}

.model-option .model-name b {
  color: var(--orange);
  font-size: 11px;
}

.model-option .model-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}

.booking-date {
  max-width: 380px;
}

.slot-fieldset {
  min-width: 0;
  margin: 7px 0 22px;
  padding: 0;
  border: 0;
}

.slot-fieldset legend {
  margin-bottom: 9px;
  color: #30322f;
  font: 600 13px/1.4 var(--body);
}

.slot-fieldset legend i {
  color: var(--orange);
  font-style: normal;
}

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

.slot-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 13px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.slot-option:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.slot-option > span {
  margin: 0;
}

.slot-option b,
.slot-option small {
  display: block;
}

.slot-option b {
  color: var(--text);
  font-size: 13px;
}

.slot-option small {
  margin-top: 3px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.4;
}

.wecom-contact {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 25px 0 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wecom-qr {
  display: block;
  padding: 6px;
  border: 1px solid var(--line);
  background: #fff;
}

.wecom-qr img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.wecom-contact strong {
  font-size: 16px;
}

.wecom-contact p {
  max-width: 430px;
  margin: 7px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

@media (min-width: 1180px) {
  .hero-booking {
    grid-template-columns: minmax(0, 0.78fr) minmax(620px, 1.22fr);
  }

  .hero-copy {
    position: sticky;
    top: 0;
    align-self: start;
    height: calc(100svh - 72px);
    min-height: 720px;
    padding-right: clamp(30px, 4vw, 64px);
    padding-left: clamp(30px, 4vw, 64px);
    border-right: 0;
  }

  .booking-panel {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .product-stage {
    height: auto;
  }
}

@media (min-width: 900px) and (max-width: 1179px) {
  .hero-booking {
    grid-template-columns: minmax(0, 0.72fr) minmax(560px, 1.28fr);
  }

  .hero-copy {
    position: sticky;
    top: 0;
    align-self: start;
    height: calc(100svh - 72px);
    min-height: 720px;
    border-right: 0;
  }

  .booking-panel {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-copy .overlap-title {
    font-size: clamp(78px, 8.2vw, 90px);
  }

  .overlap-title .title-orange {
    margin-top: -18px;
  }

  .product-stage {
    height: auto;
  }
}

@media (max-width: 899px) {
  .hero-copy {
    min-height: 680px;
  }

  .hero-kicker {
    margin-bottom: 20px;
  }

  .hero-copy .overlap-title {
    font-size: clamp(70px, 19vw, 88px);
  }

  .overlap-title .title-orange {
    margin-top: -16px;
  }

  .hero-copy .hero-subtitle {
    margin-top: 23px;
  }

  .product-stage {
    height: auto;
    min-height: 210px;
  }

  .product-stage img {
    width: min(84%, 360px);
  }
}

@media (max-width: 640px) {
  .option-grid,
  .slot-grid {
    grid-template-columns: 1fr;
  }

  .model-option {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .model-option .model-copy {
    grid-column: 2;
  }

  .wecom-contact {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 380px) {
  .wecom-contact {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .hero-copy {
    min-height: 690px;
  }

  .hero-copy .overlap-title {
    font-size: clamp(66px, 20vw, 78px);
  }

  .overlap-title .title-orange {
    margin-top: -14px;
  }
}

/* ---------- 自定义日期选择器 ---------- */
.booking-date {
  max-width: 380px;
}

.date-picker {
  position: relative;
}

.date-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line, #dadbd5);
  border-radius: 4px;
  background: #fff;
  color: var(--text, #1b1c1a);
  font: 14px/1.4 var(--body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
}

.date-picker-trigger:hover { border-color: #b9bbb5; }
.date-picker-trigger:focus,
.date-picker-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--orange, #f4512d);
  box-shadow: 0 0 0 3px rgba(244, 81, 45, 0.12);
}

.date-display {
  flex: 1;
  min-width: 0;
  color: var(--text, #1b1c1a);
  font-weight: 500;
}

.date-display:empty::before {
  content: '请选择预约日期';
  color: var(--soft, #73766f);
}

.date-display:not(:empty) {
  color: var(--text, #1b1c1a);
}

.date-picker-icon {
  flex: none;
  color: var(--muted, #656760);
}

.calendar-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: 320px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line, #dadbd5);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cal-title {
  font: 600 14px var(--body);
  color: var(--text);
}

.cal-nav {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.cal-nav:hover:not(:disabled) {
  background: var(--orange-soft, #fff0e9);
  color: var(--orange, #f4512d);
}

.cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-bottom: 4px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}

.calendar-weekdays span {
  text-align: center;
  font: 600 11px var(--body);
  color: var(--soft, #73766f);
  letter-spacing: 0.5px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 4px 0;
}

.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  user-select: none;
}

.cal-day:hover:not(.disabled) {
  background: var(--orange-soft, #fff0e9);
}

.cal-day .cal-day-num {
  font: 600 13px var(--body);
  line-height: 1;
}

.cal-day.today .cal-day-num {
  color: var(--orange, #f4512d);
}

.cal-day.selected {
  background: var(--orange, #f4512d);
  color: #fff;
}

.cal-day.selected .cal-day-num {
  color: #fff;
}

.cal-day.disabled {
  cursor: not-allowed;
  background: transparent;
}

.cal-day.past {
  opacity: 0.3;
}

.cal-day.full .cal-day-num {
  color: #b3261e;
  font-weight: 600;
}

.cal-day.full {
  background: #fdecea;
}

.cal-day.full:hover {
  background: #fdecea;
}

.cal-day-badge {
  font: 700 9px/1 var(--body);
  color: #b3261e;
  letter-spacing: 0.2px;
}

.cal-day.empty {
  visibility: hidden;
}

.calendar-legend {
  display: flex;
  gap: 14px;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font: 11px var(--body);
  color: var(--soft);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.legend-item .dot.full { background: #fdecea; border: 1px solid #b3261e; }
.legend-item .dot.past { background: #ececea; opacity: 0.5; }

/* 时段状态（旧 avail-ok/avail-warn 复用） */
.slot-status {
  margin: -10px 0 14px;
  font-size: 12px;
  line-height: 1.5;
}

.slot-status:empty {
  display: none;
}

.avail-warn {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--danger-bg, #fdecea);
  color: var(--danger, #b3261e);
  font-weight: 600;
}

.avail-ok {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--ok-bg, #f0faf4);
  color: var(--ok, #286b47);
  font-weight: 500;
}

.slot-option.full {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--line);
  background: #f5f5f3;
}

.slot-option.full input {
  cursor: not-allowed;
}

.full-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 3px;
  background: #b3261e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.slot-option:not(.full) .full-badge {
  display: none;
}

.form-message.error {
  padding: 15px;
  border: 1px solid #e8b4b0;
  border-radius: 4px;
  background: #fdecea;
  color: #b3261e;
}

@media (max-width: 480px) {
  .calendar-popup {
    width: calc(100vw - 60px);
    max-width: 320px;
  }
}

html[lang="id"] .hero-copy .overlap-title {
  font-size: clamp(64px, 5.7vw, 88px);
}

html[lang="ms"] .hero-copy .overlap-title {
  font-size: clamp(56px, 5vw, 76px);
}

@media (max-width: 899px) {
  html[lang="id"] .hero-copy .overlap-title {
    font-size: 56px;
  }

  html[lang="ms"] .hero-copy .overlap-title {
    font-size: 44px;
  }
}
