:root {
  --navy: #111827;
  --orange: #ff5a14;
  --green: #18794e;
  --light: #f3f4f6;
  --card: #ffffff;
  --muted: #6b7280;
  --border: #e5e7eb;
  --soft: #f9fafb;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--light);
  color: var(--navy);
}

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

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

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 18px 60px;
}

.hero,
.form-shell {
  background: var(--card);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero {
  margin-bottom: 18px;
}

.top-link {
  display: inline-block;
  margin-bottom: 14px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
}

.top-link:hover {
  color: var(--navy);
}

.badge {
  display: inline-block;
  background: #e8f7ec;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}

h1 {
  font-size: 38px;
  line-height: 1.08;
  margin: 0 0 10px;
  letter-spacing: -1px;
}

.sub {
  font-size: 17px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.progress-wrap {
  margin-bottom: 22px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #4b5563;
  font-weight: 800;
}

.progress-bar {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 14.285%;
  background: var(--navy);
  transition: width 0.25s ease;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  font-size: 30px;
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.step-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 20px;
}

.option-grid,
.checkbox-list,
.field-grid,
.photo-grid {
  display: grid;
  gap: 12px;
}

.option-grid.two-col,
.field-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-grid.three-col,
.checkbox-list.three-col,
.field-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-btn,
.nav-btn,
.submit-btn {
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 16px;
  text-decoration: none;
}

.option-btn {
  width: 100%;
  min-height: 58px;
  padding: 15px;
  text-align: left;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  border: 2px solid transparent;
}

.option-btn:hover,
.nav-btn:hover,
.submit-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.option-btn.selected {
  background: var(--green);
  border-color: rgba(255, 255, 255, 0.55);
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  min-height: 56px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s ease;
  user-select: none;
}

.checkbox-item:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.checkbox-item.selected {
  background: #e8f7ec;
  border-color: #7bc79a;
}

.checkbox-item input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--green);
}

input,
select,
textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 16px;
  background: #ffffff;
  color: var(--navy);
}

input[type="file"] {
  padding: 11px 12px;
  background: #ffffff;
  cursor: pointer;
}

textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #374151;
}

.hint {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 10px;
}

.soft-box {
  background: var(--soft);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 14px;
  margin-top: 14px;
}

.notice-box {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  padding: 14px;
  border-radius: 14px;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 14px;
}

.nav-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
}

.nav-btn,
.submit-btn {
  padding: 16px 18px;
  width: 100%;
  background: var(--navy);
  color: #ffffff;
  font-weight: 800;
}

.nav-btn.secondary {
  background: #e5e7eb;
  color: var(--navy);
}

.submit-btn {
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(255, 90, 20, 0.22);
}

.microcopy {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

.error {
  color: #b91c1c;
  font-size: 14px;
  margin-top: 12px;
  display: none;
}

.hidden {
  display: none !important;
}

.upload-box {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 16px;
  padding: 22px;
}

.upload-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
  text-align: center;
}

.upload-box .hint {
  display: block;
  text-align: center;
  margin-top: 0;
  margin-bottom: 16px;
    }

.photo-field {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  padding: 12px;
}

.photo-field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 8px;
}

.photo-file-name {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: #64748b;
  overflow-wrap: anywhere;
}

.trust-note {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  padding: 14px;
  margin-top: 16px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.footer-note {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.site-footer {
  margin-top: 28px;
  padding: 0 16px 32px;
}

.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  padding: 18px;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
}

.site-footer .footer-links a {
  color: #184a78;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer .footer-note {
  max-width: 760px;
  margin: 14px auto 0;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .container {
    padding: 12px 12px 42px;
  }

  .hero,
  .form-shell {
    padding: 18px;
    border-radius: 18px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  .sub,
  .step-desc {
    font-size: 15px;
  }

  .option-grid.two-col,
  .option-grid.three-col,
  .field-grid.two-col,
  .field-grid.three-col {
    grid-template-columns: 1fr;
  }

  .checkbox-list.three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkbox-item {
    font-size: 13px;
    padding: 12px;
    align-items: flex-start;
  }

  .checkbox-item input {
    margin-top: 1px;
  }

  .nav-row {
    flex-direction: column;
  }

  .site-footer {
    padding: 0 12px 32px;
  }

  .option-btn {
    min-height: 54px;
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .checkbox-list.three-col {
    grid-template-columns: 1fr;
  }
}
