:root {
  --red: #b42335;
  --red-dark: #831b2b;
  --red-soft: #fff1f3;
  --silver: #f4f5f7;
  --ink: #20242b;
  --muted: #68707c;
  --line: #e4e7ec;
  --white: #fff;
  --shadow: 0 12px 32px rgba(38, 25, 28, 0.08);
}

* { box-sizing: border-box; }
html { background: #f7f5f5; }
body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

button, input, textarea, select { font: inherit; }
.page-shell { width: min(100%, 760px); margin: 0 auto; padding: 20px 14px 48px; }
.hero {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px 20px;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  box-shadow: var(--shadow);
}
.brand-mark {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  font-size: 34px;
  font-weight: 800;
}
.eyebrow { margin: 0 0 2px; font-size: 13px; letter-spacing: .12em; opacity: .82; }
h1 { margin: 0; font-size: 29px; line-height: 1.15; letter-spacing: -.02em; }
.hero-copy { margin: 8px 0 0; font-size: 14px; opacity: .88; }

.notice-card, .form-section, .privacy-card {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(131,27,43,.08);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 6px 20px rgba(38, 25, 28, 0.04);
}
.notice-card h2, .form-section h2, .privacy-card h2 { margin: 0 0 6px; font-size: 19px; }
.notice-card p, .privacy-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.section-description { margin: 0 0 16px; color: var(--muted); font-size: 13px; }

.field { padding: 16px 0; border-top: 1px solid var(--line); }
.field:first-of-type { border-top: 0; padding-top: 8px; }
.field-label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 650; }
.required-mark { margin-left: 4px; color: var(--red); }
.field-hint { margin: -3px 0 9px; color: var(--muted); font-size: 13px; }
.control-wrap { display: flex; align-items: center; gap: 10px; }
input[type="text"], input[type="tel"], input[type="date"], input[type="number"], textarea, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #ccd1d8;
  border-radius: 11px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
textarea { min-height: 104px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(180,35,53,.10); }
.suffix { flex: 0 0 auto; color: var(--muted); }
.choice-grid { display: grid; gap: 9px; }
.choice {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 45px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfbfc;
}
.choice input { width: 19px; height: 19px; accent-color: var(--red); }
.file-input { padding: 12px; border: 1px dashed #c6a4aa; border-radius: 12px; background: var(--red-soft); }
.file-input input { width: 100%; }
.photo-previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.photo-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.field-error { margin-top: 6px; color: var(--red); font-size: 13px; }
.invalid input, .invalid textarea, .invalid select, .invalid .choice-grid { border-color: var(--red); }

.privacy-card { border-color: rgba(180,35,53,.22); background: #fffbfb; }
.privacy-emphasis { color: var(--ink) !important; font-weight: 650; }
.form-error { margin: 14px 2px 0; padding: 12px 14px; border-radius: 10px; color: #8b1828; background: #ffe5e9; }
.submit-button {
  width: 100%;
  min-height: 56px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  font-size: 17px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(180,35,53,.24);
}
.submit-button:disabled { opacity: .58; box-shadow: none; }
.submit-note { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 12px; }

.modal {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(20, 16, 17, .58);
}
.modal[hidden] { display: none; }
.modal-card { width: min(100%, 390px); padding: 28px 22px; border-radius: 20px; text-align: center; background: white; box-shadow: var(--shadow); }
.success-icon { width: 56px; height: 56px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--red); font-size: 28px; font-weight: 800; }
.modal-card h2 { margin: 0; }
.modal-card p { color: var(--muted); }
.submission-code { margin: 10px 0; padding: 12px; border-radius: 10px; background: var(--silver); font-size: 19px; font-weight: 800; letter-spacing: .05em; }
.secondary-button { min-height: 44px; padding: 0 18px; border: 1px solid var(--red); border-radius: 10px; color: var(--red); background: white; }

@media (min-width: 680px) {
  .page-shell { padding-top: 32px; }
  .choice-grid.two-column { grid-template-columns: 1fr 1fr; }
}
