:root {
  color-scheme: light;
  --ink: #1d252f;
  --muted: #5b6472;
  --line: #d8dee7;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --gold: #c8922d;
  --danger: #b42318;
  --shadow: 0 20px 60px rgba(22, 33, 48, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #eef3f2;
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  min-height: 420px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(29, 37, 47, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero__media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.1), rgba(200, 146, 45, 0.2)),
    url("assets/hero-a70-cruise.png");
  background-position: 58% center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__badge {
  position: absolute;
  left: clamp(18px, 4vw, 44px);
  bottom: clamp(20px, 5vw, 52px);
  display: grid;
  gap: 2px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(2, 10, 24, 0.72);
}

.hero__badge::before {
  content: "";
  position: absolute;
  inset: -18px -28px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(9, 27, 55, 0.72), rgba(9, 27, 55, 0));
}

.hero__badge-brand {
  color: #f3d08a;
  font-size: clamp(13px, 1.6vw, 18px);
  font-weight: 900;
  line-height: 1;
}

.hero__badge-main {
  color: #fff;
  font-size: clamp(54px, 9vw, 104px);
  font-weight: 900;
  line-height: 0.86;
}

.hero__badge-year {
  color: #f7d994;
  font-size: clamp(28px, 4.8vw, 56px);
  font-weight: 900;
  line-height: 0.95;
}

.hero__panel {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  color: #fff;
  background: rgba(18, 31, 42, 0.58);
  backdrop-filter: blur(12px);
}

.hero__date {
  font-weight: 800;
}

.hero__caption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 8em;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
}

h2 {
  font-size: 26px;
}

.lead {
  max-width: 36rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.form-section {
  margin-top: 28px;
}

.steps-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 0 20px;
}

.steps-indicator::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--line);
  z-index: 0;
  pointer-events: none;
}

.steps-indicator {
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  font-size: 18px;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.step.active .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step.active .step-label {
  color: var(--accent);
  font-weight: 800;
}

.step.completed .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step.completed .step-label {
  color: var(--accent);
}

.registration-form {
  padding: clamp(22px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid rgba(29, 37, 47, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(22, 33, 48, 0.08);
}

.form-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.required-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.required-note span,
.field-label span {
  color: var(--danger);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 28px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field-label {
  color: #253140;
  font-weight: 750;
}

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

.text-input,
.select-input,
.textarea-input {
  width: 100%;
  border: 1px solid #cfd7e2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.text-input,
.select-input {
  min-height: 48px;
  padding: 0 14px;
}

.textarea-input {
  min-height: 128px;
  resize: vertical;
  padding: 13px 14px;
}

.text-input:focus,
.select-input:focus,
.textarea-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.choice-list {
  display: grid;
  gap: 10px;
  padding: 2px 0;
}

.choice-item,
.checkbox-field {
  display: flex;
  align-items: start;
  gap: 10px;
  line-height: 1.55;
}

.choice-item input,
.checkbox-field input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.field-error {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.consent-row {
  margin-top: 28px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.action-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.action-row .secondary-button:first-child {
  margin-right: auto;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:hover:not(:disabled) {
  background: var(--accent-strong);
}

.secondary-button {
  background: #fff;
  border-color: #cfd7e2;
  color: #253140;
}

.secondary-button:hover:not(:disabled) {
  background: var(--surface-soft);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.form-status.is-error {
  color: var(--danger);
}

.summary-section {
  margin-top: 28px;
  padding: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-section h3 {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.summary-content {
  display: grid;
  gap: 24px;
}

.summary-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  overflow: hidden;
}

.summary-step h4 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.summary-items {
  display: grid;
  gap: 14px;
}

.summary-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: start;
}

.summary-label {
  font-weight: 600;
  color: var(--muted);
  font-size: 14px;
}

.summary-value {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.summary-item--media {
  grid-template-columns: 160px minmax(0, 420px);
}

.photo-preview {
  width: min(100%, 360px);
  margin: 0;
}

.photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf1f4;
  object-fit: contain;
  object-position: center;
}

.photo-preview figcaption {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.photo-preview__name {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.photo-preview__meta {
  color: var(--muted);
  font-size: 13px;
}

.line-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.line-summary img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.admin-shell {
  display: grid;
  gap: 28px;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid rgba(29, 37, 47, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-header h1 {
  max-width: none;
  font-size: clamp(34px, 4vw, 52px);
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.admin-layout {
  display: grid;
  gap: 28px;
}

.admin-panel {
  box-shadow: 0 16px 44px rgba(22, 33, 48, 0.08);
}

.admin-toggle {
  min-height: 48px;
  align-items: center;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  padding-top: 24px;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-weight: 800;
  background: var(--surface-soft);
}

.admin-select,
.admin-note {
  width: 100%;
  min-height: 36px;
  border: 1px solid #cfd7e2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.admin-note {
  min-width: 160px;
  padding: 0 10px;
}

.admin-empty {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 680px);
    padding-top: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__media {
    min-height: 260px;
  }

  .hero__badge {
    left: 18px;
    bottom: 18px;
  }

  .hero__content {
    padding: 28px 22px 34px;
  }

  h1 {
    max-width: none;
    font-size: 42px;
  }

  .lead {
    font-size: 16px;
  }

  .form-header,
  .action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    left: 16px;
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    align-items: start;
  }

  .summary-item,
  .summary-item--media {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .photo-preview {
    width: min(100%, 320px);
  }

  .admin-header {
    align-items: stretch;
    flex-direction: column;
  }
}
