:root {
  --navy: #0f1b2a;
  --navy-2: #16263a;
  --red: #c41f26;
  --red-dark: #98161b;
  --paper: #f4f6f9;
  --card: #ffffff;
  --text: #142033;
  --muted: #667085;
  --line: #d8dee8;
  --green: #13795b;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(15, 27, 42, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(196, 31, 38, 0.09), transparent 32%),
    linear-gradient(180deg, #fafbfc 0%, var(--paper) 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

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

.hero-card,
.form-card {
  background: var(--card);
  border: 1px solid rgba(15, 27, 42, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -110px -120px auto;
  width: 320px;
  height: 320px;
  background: rgba(196, 31, 38, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.brand-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.logo {
  width: 100%;
  max-width: 230px;
  display: block;
}

.eyebrow {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 0.74rem;
  font-weight: 800;
  margin: 0 0 10px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  margin-bottom: 12px;
  letter-spacing: -0.045em;
  color: var(--navy);
  font-weight: 850;
}

.intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0;
}

.req { color: var(--red); font-weight: 900; }

.notice {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  background: #fff6f6;
  border-radius: 14px;
  color: #342326;
}

.form-card { padding: 8px; }

.section-block {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.section-block:last-of-type { border-bottom: 0; }

.section-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.section-title > span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  font-size: .9rem;
}

.section-title h2 {
  font-size: 1.18rem;
  margin: 1px 0 4px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 15px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wide { grid-column: 1 / -1; }
.top-gap { margin-top: 16px; }

label {
  display: grid;
  gap: 7px;
  font-size: .92rem;
  font-weight: 750;
  color: var(--navy);
}

label.required::after,
.upload-box.required-doc span::after {
  content: " *";
  color: var(--red);
  font-weight: 900;
}

.declaration.required::after { content: ""; }

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 13px;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

textarea { resize: vertical; min-height: 86px; }

select {
  appearance: auto;
  cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(196, 31, 38, .10);
}

input:user-invalid,
textarea:user-invalid,
select:user-invalid {
  border-color: var(--danger);
}

input::placeholder { color: #98a2b3; }

.field-hint {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
}


.optional-section {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.upload-box {
  border: 1.5px dashed #b8c0ce;
  border-radius: 17px;
  padding: 15px;
  background: #fbfcfe;
  min-height: 112px;
  align-content: space-between;
}

.upload-box span {
  display: block;
  color: var(--navy);
}

.upload-box input {
  border: 0;
  background: transparent;
  padding: 8px 0 0;
  min-height: auto;
  border-radius: 0;
  font-weight: 500;
  font-size: .9rem;
}

.live-check {
  margin: 22px 24px 0;
  padding: 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
}

.live-check h3 { margin-bottom: 8px; font-size: 1rem; }
.live-check p { margin: 0; color: #dce4f0; line-height: 1.6; }
.live-check strong { color: #fff; }

.declaration-block { padding-top: 22px; }

.declaration {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  min-height: 54px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 650;
}

.declaration input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
  flex: 0 0 auto;
}

.submit-row {
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

button {
  min-height: 52px;
  border: 0;
  border-radius: 15px;
  background: var(--red);
  color: #fff;
  padding: 0 25px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(196, 31, 38, .20);
}

button:hover { background: var(--red-dark); }
button:disabled { opacity: .58; cursor: not-allowed; box-shadow: none; }

.small-print {
  color: var(--muted);
  margin: 0;
  font-size: .9rem;
}

.form-status {
  margin: 0 24px 24px;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 700;
  white-space: pre-line;
}

.form-status.success { background: #ecfdf3; color: var(--green); border: 1px solid #abefc6; }
.form-status.error { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 860px) {
  body { font-size: 14px; }

  .brand-row,
  .grid.two,
  .grid.three,
  .upload-grid,
  .submit-row {
    grid-template-columns: 1fr;
  }

  .page-shell { width: min(100% - 18px, 1120px); padding-top: 10px; }
  .hero-card, .form-card { border-radius: 20px; }
  .hero-card { padding: 18px; }
  .section-block { padding: 18px; }
  .section-title > span { min-width: 38px; height: 38px; }
  .live-check { margin: 18px 18px 0; }
  .submit-row { padding: 18px; }
  .form-status { margin: 0 18px 18px; }
  button { width: 100%; }
  .logo { max-width: 210px; }
  h1 { font-size: 2rem; }
}
