:root {
  --blue: #0099D6;
  --blue-dark: #0080B5;
  --blue-darker: #006699;
  --green: #2E7D32;
  --red: #C62828;
  --orange: #E65100;
  --bg: #FFFFFF;
  --bg-alt: #F5FAFD;
  --text: #1A1A1A;
  --text-muted: #5A6470;
  --border: #E5E9EE;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 30, 60, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 30, 60, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 720px; }

.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }

/* ── NAV ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.3px; color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-links .btn { color: #fff; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #E6F6FC 0%, #F5FAFD 60%, #FFFFFF 100%);
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  font-size: 48px;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -1px;
  font-weight: 800;
}
.hero-text .accent { color: var(--blue); }
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-rabbit {
  width: 100%;
  max-width: 340px;
  filter: drop-shadow(0 20px 40px rgba(0, 153, 214, 0.18));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease;
  user-select: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 153, 214, 0.28);
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:disabled { background: #9bd1e8; cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  background: rgba(0, 153, 214, 0.08);
  color: var(--blue);
}
.btn-ghost:hover { background: rgba(0, 153, 214, 0.15); }

.btn-light {
  background: #fff;
  color: var(--blue);
}
.btn-light:hover { background: #f3f9fc; }

/* ── SECTIONS ────────────────────────────────────── */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-title {
  text-align: center;
  font-size: 34px;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  font-weight: 800;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 48px;
  font-size: 17px;
}

/* ── CARDS ───────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 153, 214, 0.3);
}
.card-icon { font-size: 32px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ── STEPS ───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(0, 153, 214, 0.3);
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ── FAQ ─────────────────────────────────────────── */
.faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  list-style: none;
  position: relative;
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
}
.faq[open] summary::after { content: "−"; }
.faq-body {
  padding: 0 22px 18px;
  color: var(--text-muted);
}

/* ── CTA BAND ────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 56px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 4px; font-size: 28px; }
.cta-band p { margin: 0; opacity: 0.9; }

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── WIZARD PROGRESS ─────────────────────────────── */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  padding: 0 8px;
}
.wizard-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.wizard-step-marker.active { opacity: 1; }
.wizard-step-marker.done { opacity: 1; }
.wizard-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e9ee;
  color: #5A6470;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.wizard-step-marker.active .wizard-step-circle {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 153, 214, 0.35);
}
.wizard-step-marker.done .wizard-step-circle {
  background: var(--green);
  color: #fff;
}
.wizard-step-marker.done .wizard-step-circle::before {
  content: "✓";
  font-size: 16px;
}
.wizard-step-marker.done .wizard-step-circle > * { display: none; }
.wizard-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.wizard-step-marker.active .wizard-step-label { color: var(--blue); }
.wizard-step-marker.done .wizard-step-label { color: var(--green); }
.wizard-step-line {
  flex: 1;
  height: 2px;
  background: #e5e9ee;
  margin: 0 4px;
  margin-bottom: 22px;
  transition: background 0.3s ease;
}
.wizard-step-line.done { background: var(--green); }

.wizard-pane { animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-subsection-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.select-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath d='M1 1l5 5 5-5' stroke='%235A6470' stroke-width='2' fill='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.select-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 153, 214, 0.15);
}

/* ── MAP ─────────────────────────────────────────── */
.map-container {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  height: 280px;
  position: relative;
}
.map-placeholder {
  width: 100%;
  height: 100%;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}
#map {
  width: 100%;
  height: 100%;
}
.form-warning {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fff7e6;
  border: 1px solid #ffe1a8;
  color: #92500e;
  border-radius: 8px;
  font-size: 13px;
}

/* ── AGREEMENTS ──────────────────────────────────── */
.agreement {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
}
.agreement-optional { background: #f9fbfd; }
.agreement-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.agreement-title { font-weight: 600; font-size: 15px; }
.agreement-toggle {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  flex-shrink: 0;
}
.agreement-toggle:hover { background: rgba(0, 153, 214, 0.08); }
.agreement-body {
  background: #f7f9fb;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  max-height: 200px;
  overflow-y: auto;
}
.agreement-body p { margin: 0 0 8px; }
.agreement-body p:last-child { margin-bottom: 0; }
.agreement .check { margin-top: 4px; }

/* ── CANCEL LINK ─────────────────────────────────── */
.btn-cancel {
  background: transparent;
  border: none;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-cancel:hover { color: #8a1f1f; }

/* ── SUCCESS NUMBER ──────────────────────────────── */
.success-number {
  margin-top: 20px;
  padding: 18px;
  background: linear-gradient(135deg, #E6F6FC 0%, #F5FAFD 100%);
  border: 1px dashed rgba(0, 153, 214, 0.35);
  border-radius: 12px;
  display: inline-block;
  min-width: 280px;
}
.success-number-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.success-number-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--blue);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

/* ── APPLY PAGE ──────────────────────────────────── */
.apply-hero {
  background: linear-gradient(135deg, #E6F6FC 0%, #F5FAFD 100%);
  padding: 56px 0 32px;
  text-align: center;
}
.apply-hero h1 {
  margin: 0 0 12px;
  font-size: 36px;
  letter-spacing: -0.5px;
}
.section-form { padding-top: 32px; }
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--blue);
  margin: 0 0 16px;
}
.field {
  display: block;
  margin-bottom: 14px;
}
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 153, 214, 0.15);
}
.field textarea { resize: vertical; min-height: 64px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { display: block; margin-top: 4px; font-size: 12px; color: var(--text-muted); }

.upload-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px dashed #cfd6dd;
  border-radius: 10px;
  background: #fafbfc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.upload-box-wide { aspect-ratio: 2 / 1; }
.upload-box:hover { border-color: var(--blue); background: #f3faff; }
.upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-icon { font-size: 28px; }
.upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.upload-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.upload-clear:hover { background: rgba(0, 0, 0, 0.78); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #444;
  cursor: pointer;
}
.check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.form-actions .btn { min-width: 260px; }

.form-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff3f3;
  border: 1px solid #f5c7c7;
  color: var(--red);
  border-radius: 8px;
  font-size: 14px;
}

/* ── STATUS PAGE ─────────────────────────────────── */
.status-row {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
}
.status-row:last-child { margin-bottom: 0; }
.status-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.status-restaurant {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}
.status-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}
.status-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}
.status-reason {
  margin-top: 8px;
  padding: 10px 12px;
  background: #fff7f7;
  border: 1px solid #f3d0d0;
  border-radius: 8px;
  font-size: 13px;
  color: var(--red);
}

.success-card {
  text-align: center;
  padding: 56px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--green);
  color: #fff;
  font-size: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.25);
}
.success-card h2 { margin: 0 0 8px; }
.success-card p { color: var(--text-muted); margin: 0; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-text h1 { font-size: 36px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-rabbit { max-width: 220px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .hero-text h1 { font-size: 30px; }
  .apply-hero h1 { font-size: 28px; }
}
