/* ==========================================================================
   Harry Surf School — booking page
   Design tokens

   Palette reference: Kuta Beach at dusk — pale gold sand, deep tropical
   reef-teal water, a burnt sunset flame on the horizon.
   ========================================================================== */

:root {
  --sand: #f1e6d2;
  --sand-deep: #e7d7ba;
  --ink: #0d3b3c;
  --ink-soft: #135251;
  --reef: #175c56;
  --flame: #d6531f;
  --flame-deep: #b8431a;
  --foam: #fbf8f0;

  --text-on-sand: var(--ink);
  --text-muted: #4d6b68;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-card: 20px;
  --radius-chip: 999px;
  --radius-input: 12px;

  --shadow-card: 0 1px 2px rgba(13, 59, 60, 0.06), 0 8px 24px -12px rgba(13, 59, 60, 0.18);

  --max-width: 480px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--text-on-sand);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Visible focus for keyboard users, everywhere */
:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------------------- */
/* Topbar                                                                 */
/* --------------------------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: var(--foam);
}

.topbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.wordmark__dot {
  color: var(--flame);
}

.topbar__place {
  font-size: 0.8rem;
  color: #a9c7c3;
  white-space: nowrap;
}

/* --------------------------------------------------------------------- */
/* Page / hero                                                           */
/* --------------------------------------------------------------------- */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.hero {
  padding: 32px 0 20px;
  animation: rise 0.5s ease-out both;
}

.hero__photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 10;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Photos inside LP cards */
.lp-photo {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 4 / 3;
}

.lp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.hero__accent {
  color: var(--flame);
}

.hero__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------- */
/* LP sections (above the booking form)                                  */
/* --------------------------------------------------------------------- */

.lp-card {
  margin-bottom: 16px;
}

.lp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lp-list__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.55;
}

.lp-list__icon {
  flex: 0 0 auto;
  font-size: 1.2rem;
  line-height: 1.3;
}

.lp-included {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.lp-tag {
  background: var(--sand);
  color: var(--ink);
  border-radius: var(--radius-chip);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

.lp-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.lp-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.lp-steps li::marker {
  color: var(--flame);
  font-weight: 700;
}

/* --------------------------------------------------------------------- */
/* Cards + the "tear" divider (signature element)                        */
/* --------------------------------------------------------------------- */

.booking {
  display: block;
}

/* hidden属性を確実に効かせる(.bookingのdisplay:blockが
   ブラウザ標準の[hidden]→display:noneを打ち消してしまうため) */
[hidden] {
  display: none !important;
}

.card {
  background: var(--foam);
  border-radius: var(--radius-card);
  padding: 22px 20px 24px;
  box-shadow: var(--shadow-card);
  animation: rise 0.5s ease-out both;
}

.card + .card {
  margin-top: 0;
}

.card__eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--reef);
  margin: 0 0 18px;
}

/* Perforated "tear" line between steps — like a ticket stub.
   Two notches cut into the sand background on either edge, with a
   dashed line running between the cards above and below. */
.tear {
  position: relative;
  height: 28px;
  margin: 0 -20px;
}

.tear::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  border-top: 2px dashed var(--sand-deep);
}

.tear::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  background:
    radial-gradient(circle 10px at 0 50%, var(--sand) 99%, transparent 100%),
    radial-gradient(circle 10px at 100% 50%, var(--sand) 99%, transparent 100%);
  pointer-events: none;
}

/* --------------------------------------------------------------------- */
/* Form fields                                                           */
/* --------------------------------------------------------------------- */

.field {
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.field__hint {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.input {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-input);
  border: 1.5px solid #ddd0b6;
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

.input:focus {
  border-color: var(--reef);
}

/* Chips: date + time selection */
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Time slots: fixed grid so many slots stay tidy and tappable */
.chip-row--grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.chip-row--grid .chip {
  min-width: 0;
  padding: 10px 4px;
  border-radius: 12px;
}

/* Phone: dial code + number side by side */
.phone-row {
  display: flex;
  gap: 8px;
}

.input--dial {
  flex: 0 0 auto;
  width: 132px;
  padding-right: 6px;
  font-size: 0.9rem;
  appearance: none;
  -webkit-appearance: none;
}

.phone-row .input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
}

.chip-row--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chip-row--scroll::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  border: 1.5px solid #ddd0b6;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-chip);
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.25;
  min-width: 58px;
}

.chip__sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.chip[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--foam);
}

.chip[aria-selected="true"] .chip__sub {
  color: #a9c7c3;
}

.chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Guest stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1.5px solid #ddd0b6;
  border-radius: var(--radius-chip);
  padding: 6px 8px;
  background: #fff;
}

.stepper__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--sand);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.stepper__btn:active {
  background: var(--sand-deep);
}

.stepper__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  min-width: 1.4ch;
  text-align: center;
}

/* Total */
.total-row {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ecdfc4;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.total-row__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
}

/* --------------------------------------------------------------------- */
/* Payment                                                                */
/* --------------------------------------------------------------------- */

#payment-element {
  margin-bottom: 16px;
}

.form-error {
  background: #fdece6;
  color: var(--flame-deep);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin: 0 0 16px;
}

.btn-primary {
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: var(--radius-chip);
  background: var(--flame);
  color: var(--foam);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--flame-deep);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.99);
}

.btn-primary:disabled {
  background: #d8c6ac;
  color: #8a7c62;
  cursor: not-allowed;
}

.trust-line {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 14px 0 0;
}

/* --------------------------------------------------------------------- */
/* Success state                                                         */
/* --------------------------------------------------------------------- */

.success {
  text-align: center;
  padding: 56px 12px 24px;
}

.success__mark {
  margin: 0 auto 18px;
  width: 52px;
  height: 52px;
}

.success__circle {
  stroke: var(--reef);
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw-circle 0.5s ease-out forwards;
}

.success__check {
  stroke: var(--flame);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw-check 0.35s ease-out 0.45s forwards;
}

@keyframes draw-circle {
  to { stroke-dashoffset: 0; }
}
@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.success__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  margin: 0 0 10px;
}

.success__summary {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0 0 6px;
}

.success__note {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */

.site-footer {
  text-align: center;
  margin-top: 36px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
