@font-face {
  font-family: "LINESeedTW";
  src: url("/fonts/LINESeedTW_OTF_Rg.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "LINESeedTW";
  src: url("/fonts/LINESeedTW_OTF_Bd.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --coral: #FE5435;
  --navy: #0F1B2D;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --sub: #667085;
  --muted: #98A2B3;
  --border: #E8E3DC;
  --track: #EFEAE3;
  --error: #B42318;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--cream);
  font-family: "LINESeedTW", -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.reserve-wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.reserve-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 247, 242, .9);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img {
  width: 174px;
}

.back-link {
  color: var(--sub);
  font-size: 14px;
  font-weight: 700;
}

.reserve-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  gap: 72px;
  align-items: start;
  padding-block: 56px 72px;
}

.reserve-intro {
  position: sticky;
  top: 120px;
  min-height: calc(100vh - 176px);
  padding-bottom: 24px;
}

.reserve-intro h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 4.2vw, 50px);
  line-height: 1.18;
  text-wrap: balance;
}

.reserve-intro h1 span {
  color: var(--coral);
}

.reserve-intro p {
  margin: 0;
  color: var(--sub);
  font-size: 17px;
  text-wrap: pretty;
}

.core-path {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  margin-right: 174px;
}

.core-path strong {
  color: var(--coral);
}

.core-path span {
  color: var(--sub);
}

.intro-phone {
  position: absolute;
  right: 0;
  bottom: 48px;
  width: 140px;
  padding: 5px;
  border-radius: 24px;
  background: var(--navy);
  box-shadow: 0 22px 54px rgba(15, 27, 45, .16);
  transform: rotate(2deg);
}

.intro-phone img {
  border-radius: 19px;
}

.form-shell {
  min-height: 650px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(15, 27, 45, .07);
}

.form-top {
  margin-bottom: 30px;
}

.form-top h2 {
  margin: 2px 0 18px;
  font-size: 30px;
  line-height: 1.2;
}

.step-count {
  margin: 0;
  color: var(--coral);
  font-size: 14px;
  font-weight: 700;
}

.progress {
  height: 4px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--track);
}

.progress span {
  display: block;
  width: 33.333%;
  height: 100%;
  background: var(--coral);
  transition: width 220ms var(--ease-out);
}

.form-step {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.form-step.is-entering {
  opacity: 0;
  transform: translateY(8px);
}

.field-label,
fieldset legend {
  display: block;
  margin: 22px 0 7px;
  padding: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.form-step>.field-label:first-child,
.first-fieldset>legend {
  margin-top: 0;
}

.field-label span,
fieldset legend span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

fieldset {
  min-width: 0;
  margin: 0;
  margin-top: 25px;
  padding: 0;
  border: 0;
}

.field {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: 0;
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.field:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(254, 84, 53, .13);
}

.field::placeholder {
  color: var(--muted);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.platform-options label {
  cursor: pointer;
}

.chip input,
.platform-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  color: var(--sub);
  font-size: 15px;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.chip input:checked+span {
  color: var(--white);
  border-color: var(--coral);
  background: var(--coral);
  font-weight: 700;
}

.chip input:focus-visible+span,
.platform-options input:focus-visible+span {
  outline: 3px solid rgba(254, 84, 53, .25);
  outline-offset: 2px;
}

.chip:active span,
.platform-options label:active span {
  transform: scale(.97);
}

.platform-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.platform-options span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--sub);
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.platform-options input:checked+span {
  color: var(--white);
  border-color: var(--navy);
  background: var(--navy);
  font-weight: 700;
}

.field-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 22px;
  color: var(--sub);
  font-size: 13px;
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--coral);
}

.consent a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-error {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--error);
  font-size: 14px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.btn:active {
  transform: scale(.97);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.btn-primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 10px 22px rgba(254, 84, 53, .2);
}

.btn-secondary {
  color: var(--white);
  background: var(--navy);
}

.btn-neutral {
  color: var(--navy);
  border-color: var(--border);
  background: var(--white);
}

.success {
  padding: 42px 10px 10px;
  text-align: center;
}

.success>img {
  width: min(300px, 90%);
  margin: 0 auto 30px;
}

.success h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.success>p {
  max-width: 430px;
  margin: 0 auto;
  color: var(--sub);
}

.store-coming {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.store-coming>span {
  display: block;
  margin-bottom: 12px;
  color: var(--sub);
  font-size: 14px;
  font-weight: 700;
}

.store-coming>div {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.store-coming a {
  opacity: .55;
  pointer-events: none;
}

.store-coming img {
  width: auto;
  height: 40px;
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--coral);
  font-weight: 700;
}

.reserve-footer {
  padding: 26px 0 38px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.reserve-footer .reserve-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.reserve-footer a {
  color: var(--sub);
}

@media (hover: hover) and (pointer: fine) {

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

  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(254, 84, 53, .27);
  }
}

@media (max-width: 920px) {
  .reserve-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 36px;
  }

  .reserve-intro {
    position: static;
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 28px;
    align-items: center;
    padding-bottom: 0;
  }

  .reserve-intro h1 {
    font-size: 46px;
  }

  .core-path {
    max-width: 430px;
    margin-right: 0;
  }

  .intro-phone {
    position: static;
    width: auto;
  }
}

@media (max-width: 600px) {
  .reserve-wrap {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    min-height: 60px;
  }

  .brand img {
    width: 132px;
  }

  .back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .reserve-layout {
    gap: 26px;
    padding-block: 28px 46px;
  }

  .reserve-intro {
    display: block;
  }

  .reserve-intro h1 {
    margin-bottom: 14px;
    font-size: 36px;
  }

  .reserve-intro p {
    font-size: 16px;
  }

  .core-path {
    margin-top: 22px;
    padding-top: 18px;
  }

  .intro-phone {
    display: none;
  }

  .form-shell {
    min-height: 0;
    padding: 22px 18px;
    border-radius: 14px;
  }

  .form-top {
    margin-bottom: 24px;
  }

  .form-top h2 {
    font-size: 26px;
  }

  .field-label,
  fieldset legend {
    margin-top: 20px;
  }

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

  .form-actions .btn:only-child {
    grid-column: 1 / -1;
  }

  #nextStep,
  #submitReservation {
    grid-column: 2;
  }

  #prevStep[hidden]+#nextStep {
    grid-column: 1 / -1;
  }

  .success {
    padding-top: 28px;
  }

  .success h2 {
    font-size: 28px;
  }

  .store-coming img {
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
