/* BOSS MARINE — Public reservation (mobile-first 390px) */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --sea-deep: #0b3d4a;
  --sea-mid: #156b7a;
  --sea-bright: #1f9aad;
  --foam: #e8f4f6;
  --sand: #f3efe6;
  --ink: #12262c;
  --ink-soft: #3d5a63;
  --line: rgba(11, 61, 74, 0.12);
  --danger: #b42318;
  --ok: #0f6b4c;
  --radius: 14px;
  --tap: 48px;
  --pad: 20px;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'DM Sans', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --shadow-soft: 0 12px 40px rgba(11, 61, 74, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: #1a3340;
  overflow-x: hidden;
  position: relative;
}

/* Fixed photo layer: covers viewport during long scroll; not stretched (cover only) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #1a3340;
  background-image:
    /* Top veil only — brand / progress / title stay readable without darkening cards */
    linear-gradient(
      to bottom,
      rgba(8, 28, 42, 0.28) 0%,
      rgba(8, 28, 42, 0.16) 18%,
      rgba(8, 28, 42, 0) 40%
    ),
    url('../assets/reserve-bg-mobile.webp');
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

/* Tablet / PC: landscape photo; nudge focus to keep sun + figure in frame */
@media (min-width: 768px) {
  body::before {
    background-image:
      linear-gradient(
        to bottom,
        rgba(8, 28, 42, 0.24) 0%,
        rgba(8, 28, 42, 0.12) 16%,
        rgba(8, 28, 42, 0) 38%
      ),
      url('../assets/reserve-bg-desktop.webp');
    background-position: 54% center;
  }
}

@media (min-width: 1024px) {
  body::before {
    background-position: 50% 45%;
  }
}

@media (min-width: 1440px) {
  body::before {
    background-position: center center;
  }
}

#app {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

.shell {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 0 env(safe-area-inset-bottom);
  animation: rise 0.45s var(--ease) both;
  position: relative;
}

/* Smartphone: thin full-height glass over photo (cards keep their own surface) */
@media (max-width: 479px) {
  .shell::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.46) 0%,
      rgba(255, 255, 255, 0.34) 48%,
      rgba(255, 255, 255, 0.38) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .shell > * {
    position: relative;
    z-index: 1;
  }
}

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

.top {
  flex: 0 0 auto;
  position: relative;
  isolation: isolate;
  padding: 26px var(--pad) 8px;
}

/* Soft local blur + fade under the heading block only (no hard band) */
.top::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: -18px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(8, 28, 42, 0.1) 0%,
    rgba(8, 28, 42, 0.04) 55%,
    rgba(8, 28, 42, 0) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
}

.brand-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-back-link {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 2px;
}

.brand-back-link::before {
  content: '←';
  margin-right: 4px;
}

.brand-back-link:hover,
.brand-back-link:focus-visible {
  color: var(--sea-deep);
}

.choice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.choice-sub {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.3;
}

.step-context {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sea-deep);
  line-height: 1.1;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.45);
}

.progress {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
}

.dot {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(11, 61, 74, 0.14);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.dot.done {
  background: var(--sea-mid);
}

.dot.current {
  background: var(--sea-bright);
  transform: scaleY(1.35);
}

.step-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--sea-deep);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.4);
}

.step-hint {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.35);
}

.banner {
  flex: 0 0 auto;
  margin: 8px var(--pad) 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fdecea;
  color: var(--danger);
  font-size: 0.88rem;
  animation: rise 0.3s var(--ease);
}

.body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px var(--pad) 24px;
  overflow: auto;
}

/* In-flow booking summary — below step content, above CTA */
.booking-summary {
  flex: 0 0 auto;
  margin: 0 var(--pad) 10px;
  border-radius: 12px;
  border: 1px solid rgba(11, 61, 74, 0.1);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(11, 61, 74, 0.06);
  overflow: hidden;
}

.booking-summary-toggle {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-items: center;
  padding: 12px 14px;
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.booking-summary-title {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sea-mid);
}

.booking-summary-preview {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--sea-deep);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-summary-chevron {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--sea-mid);
  border-bottom: 2px solid var(--sea-mid);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
  flex-shrink: 0;
  margin-top: -4px;
}

.booking-summary.is-collapsed .booking-summary-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.booking-summary-body {
  padding: 0 14px 12px;
  border-top: 1px solid rgba(11, 61, 74, 0.08);
}

.booking-summary.is-collapsed .booking-summary-body {
  display: none;
}

.booking-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.booking-summary-row + .booking-summary-row {
  border-top: 1px solid rgba(11, 61, 74, 0.06);
}

.booking-summary-row .k {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.booking-summary-row .v {
  text-align: right;
  font-weight: 600;
  color: var(--sea-deep);
}

.booking-summary-edit-plan {
  display: inline-flex;
  margin-top: 4px;
  padding: 2px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.88;
}

.booking-summary-edit-plan:hover,
.booking-summary-edit-plan:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .booking-summary-toggle {
    cursor: default;
    pointer-events: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-bottom: 8px;
  }

  .booking-summary-preview,
  .booking-summary-chevron {
    display: none;
  }

  .booking-summary.is-collapsed .booking-summary-body {
    display: block;
  }

  .booking-summary-body {
    border-top: none;
    padding-top: 0;
  }
}

.footer {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  align-items: center;
  padding: 12px var(--pad) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.82) 28%,
    rgba(248, 250, 250, 0.94)
  );
  backdrop-filter: blur(8px);
}

.footer .btn {
  min-height: var(--tap);
  height: auto;
  padding-top: 6px;
  padding-bottom: 6px;
  width: 100%;
  align-self: center;
  text-align: center;
  line-height: 1.25;
}

@keyframes ctaPulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.97); }
  70%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.btn.cta-pulse {
  animation: ctaPulse 0.32s var(--ease) both;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  min-height: var(--tap);
  padding: 0 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.15s var(--ease), opacity 0.15s, background 0.2s;
}

a.btn {
  color: inherit;
  box-sizing: border-box;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

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

.btn.primary {
  background: var(--sea-deep);
  color: #fff;
}

.btn.primary:not(:disabled):hover {
  background: var(--sea-mid);
}

.btn.secondary {
  background: #fff;
  color: var(--sea-deep);
  border: 1px solid var(--line);
}

.btn.ghost {
  background: transparent;
  color: var(--ink-soft);
}

.btn.block {
  width: 100%;
}

.btn.icon {
  width: var(--tap);
  min-width: var(--tap);
  padding: 0;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--sea-deep);
}

.btn-spinner,
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner {
  border-color: rgba(11, 61, 74, 0.2);
  border-top-color: var(--sea-mid);
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Choice cards — language */
.lang-step {
  margin: 0;
}

.lang-list--step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.lang-card {
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--tap) + 8px);
  padding: 14px 16px;
}

.lang-card .check {
  position: static;
  flex-shrink: 0;
}

.lang-card .choice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 12px;
  min-width: 0;
}

.category-list,
.plan-list,
.course-list,
.time-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.back-to-categories {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0 0 10px;
  margin: 0 0 2px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sea-mid);
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.back-to-categories:hover {
  color: var(--sea-deep);
}

.back-to-categories::before {
  content: '‹';
  font-size: 1.1rem;
  line-height: 1;
}

.choice-card,
.category-card,
.plan-card,
.course-card,
.time-card {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  padding: 16px 18px;
  min-height: var(--tap);
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition:
    border-color 0.18s var(--ease),
    background 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.choice-card:hover,
.category-card:hover,
.plan-card:hover,
.course-card:hover,
.time-card:hover:not(:disabled) {
  border-color: rgba(31, 154, 173, 0.45);
}

.choice-card.selected,
.category-card.has-selection,
.plan-card.selected,
.course-card.selected,
.time-card.selected {
  border-color: var(--sea-bright);
  background: rgba(232, 244, 246, 0.94);
  box-shadow: 0 10px 28px rgba(11, 61, 74, 0.12);
  transform: translateY(-1px);
}

.choice-label {
  font-size: 1.05rem;
  font-weight: 600;
}

.choice-sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.check {
  color: var(--sea-mid);
  font-weight: 700;
  font-size: 1.1rem;
}

.selected-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(31, 154, 173, 0.1);
  border: 1px solid rgba(31, 154, 173, 0.24);
  color: var(--sea-mid);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Category cards — experience-first with thumbnail */
.category-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  padding: 0;
  overflow: hidden;
  min-height: 96px;
}

.category-thumb {
  align-self: stretch;
  min-height: 96px;
  background: var(--foam);
  overflow: hidden;
}

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

.category-body {
  padding: 14px 10px 14px 14px;
  min-width: 0;
}

.category-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--sea-deep);
}

.category-desc {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.category-meta {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sea-mid);
  letter-spacing: 0.02em;
}

.category-selected {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sea-deep);
}

.category-chevron {
  padding-right: 14px;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink-soft);
  opacity: 0.55;
}

.category-card .check {
  position: absolute;
  top: 10px;
  right: 10px;
}

.category-card.has-selection .category-chevron {
  display: none;
}

/* Plan cards — minimal info, no decorative media column */
.plan-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
}

.plan-body {
  min-width: 0;
}

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.plan-flags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.plan-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--sea-deep);
}

.plan-brief {
  margin: 4px 0 8px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.plan-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sea-deep);
}

.plan-card .check {
  align-self: center;
  padding-right: 2px;
}

/* Legacy course card layout (unused in S60; kept for compatibility) */
.course-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
}

.course-media {
  display: none;
}

.course-body {
  padding: 0;
  min-width: 0;
}

.course-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.course-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--sea-deep);
}

.badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #ffe8c7;
  color: #8a4b00;
  padding: 3px 7px;
  border-radius: 6px;
}

.course-desc {
  margin: 6px 0 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.course-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sea-deep);
}

.course-card .check {
  align-self: center;
}

/* Calendar */
.calendar {
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--line);
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-month {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--sea-deep);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-cell {
  appearance: none;
  border: none;
  background: transparent;
  aspect-ratio: 1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.cal-cell.empty {
  pointer-events: none;
}

.cal-cell:disabled {
  color: rgba(61, 90, 99, 0.35);
  cursor: not-allowed;
}

.cal-cell:not(:disabled):hover {
  background: var(--foam);
}

.cal-cell.selected {
  background: var(--sea-deep);
  color: #fff;
  font-weight: 700;
}

/* Time */
.time-card {
  flex-direction: row;
  align-items: center;
}

.time-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.time-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.time-card.disabled {
  opacity: 0.5;
}

.time-range {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--sea-deep);
}

.time-status {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.time-card .check {
  flex-shrink: 0;
}

/* Party */
.party {
  padding: 24px 0;
}

.stepper {
  display: grid;
  grid-template-columns: var(--tap) 1fr var(--tap);
  align-items: center;
  gap: 16px;
  max-width: 280px;
  margin: 0 auto;
}

.stepper-btn {
  width: var(--tap);
  height: var(--tap);
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 1.4rem;
  color: var(--sea-deep);
  padding: 0;
}

.stepper-value {
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.stepper-value strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--sea-deep);
  display: block;
  line-height: 1;
}

.cap-hint {
  text-align: center;
  margin: 20px 0 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field-help {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: 0.9;
  line-height: 1.35;
  margin-top: -2px;
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.9);
  min-height: var(--tap);
}

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

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(31, 154, 173, 0.45);
  border-color: var(--sea-bright);
}

.field-error {
  font-style: normal;
  font-weight: 500;
  color: var(--danger);
  font-size: 0.82rem;
}

.field-error-list {
  margin: 8px 0 0;
  padding-left: 1.2em;
  color: var(--danger);
  font-size: 0.85rem;
}

.jet-license-warning-box {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--danger);
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
}
.jet-license-warning-box strong {
  text-decoration: underline;
}

.optional-toggle {
  appearance: none;
  border: none;
  background: none;
  color: var(--sea-mid);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  padding: 8px 0;
  cursor: pointer;
}

.optional {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.optional.open {
  display: flex;
  animation: rise 0.3s var(--ease);
}

/* Review / complete */
.review,
.complete {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}

.summary-row,
.summary > li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child,
.summary > li:last-child {
  border-bottom: none;
}

.summary .k {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.summary .v {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--sea-deep);
}

.guest-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  text-align: right;
  word-break: break-word;
}

.guest-lines span {
  display: block;
}

.email-notice {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.linkish {
  appearance: none;
  border: none;
  background: none;
  color: var(--sea-mid);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 0;
}

.agree {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
  padding: 4px 2px;
}

.agree input {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--sea-deep);
  flex-shrink: 0;
}

.complete-hero {
  text-align: center;
  padding: 20px 16px 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(31, 154, 173, 0.18), rgba(255, 255, 255, 0.9)),
    #fff;
  border: 1px solid var(--line);
  animation: rise 0.5s var(--ease);
}

.complete-kicker {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ok);
  font-weight: 600;
}

.bn-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.bn {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sea-deep);
  word-break: break-all;
}

.summary.quiet {
  background: transparent;
  border: none;
}

.summary.quiet > li {
  padding: 10px 0;
  border-bottom-color: var(--line);
}

.guidance {
  margin: 0;
  padding: 14px 16px;
  background: var(--foam);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--sea-deep);
}

.contact-heading {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-card:hover,
.contact-card:focus-visible {
  border-color: var(--sea-mid);
  transform: translateY(-1px);
}

.contact-card-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--foam);
  color: var(--sea-deep);
}

.contact-card-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.contact-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-card-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sea-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* Narrower context (review-row value cell) — always stack, never crowd. */
.contact-cards--stack {
  grid-template-columns: 1fr;
  margin-top: 10px;
}

.rpc-panel {
  text-align: center;
  padding: 36px 16px;
  color: var(--ink-soft);
}

.rpc-panel.error .error-title {
  color: var(--danger);
  font-weight: 600;
  margin: 0 0 16px;
}

.rpc-panel .btn {
  margin: 8px auto 0;
}

.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.skel {
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.4));
  background-size: 200% 100%;
  animation: shimmer 1.2s ease infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (min-width: 480px) {
  .shell {
    margin: 24px 0;
    min-height: calc(100dvh - 48px);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
