*, *::before, *::after { box-sizing: border-box; }
:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #d9dee8;
  --paper: #fff;
  --soft: #f5f7fb;
  --primary: #2457d6;
  --primary-soft: #e9efff;
  --green: #168a4a;
  --green-soft: #e8f7ee;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.08);
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.75;
}
.hero {
  position: relative;
  background: var(--soft);
  color: #fff;
  padding: 24px 20px 10px;
}
.hero.has-banner .hero-inner {
  display: none;
}
.hero.has-banner .hero-inner > div:first-child {
  max-width: 520px;
}
.hero.has-banner .tool-panel {
  display: none;
}
.hero.has-banner::before {
  display: none;
}
.hero.has-banner h1,
.hero.has-banner .hero-copy,
.hero.has-banner .eyebrow {
  text-shadow: 0 2px 14px rgba(23, 32, 42, 0.28);
}
.hero-banner-picture,
.hero-banner-img {
  display: block;
  width: min(100%, 1200px);
  margin: 0 auto;
}
.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}
h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.14;
  letter-spacing: 0;
}
.hero-copy {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
}
.tool-panel {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 8px;
  padding: 20px;
}
.tool-panel-title {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}
.tool-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tool-icons img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 14px;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.card,
.summary-item,
.side-box,
.form-area {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.summary-item { padding: 18px; }
.summary-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}
.summary-value {
  font-size: 18px;
  font-weight: 900;
}
.card {
  padding: 26px;
  margin-bottom: 22px;
}
h2 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.lead-copy + .lead-copy {
  margin-top: 8px;
}
.wide-break {
  display: none;
}
.theme-list,
.note-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.theme-list li,
.note-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}
.voice-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.voice {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.voice p {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
}
.voice cite {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.side {
  position: sticky;
  top: 18px;
}
.side-box { padding: 22px; }
.price {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.price-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.price-value {
  font-size: 34px;
  font-weight: 900;
  color: var(--green);
  line-height: 1.15;
}
.side-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.side-row:last-child { border-bottom: 0; }
.side-label {
  font-weight: 900;
  color: var(--muted);
}
.cta,
.submit {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.cta {
  margin-top: 18px;
  padding: 14px 16px;
  font-size: 15px;
}
.form-area {
  padding: 28px;
  scroll-margin-top: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.field {
  display: grid;
  gap: 7px;
}
.field.full { grid-column: 1 / -1; }
label,
legend {
  font-size: 13px;
  font-weight: 900;
}
.required {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #b42318;
  background: #ffebe8;
  font-size: 10px;
  vertical-align: middle;
}
.optional {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef1f6;
  font-size: 10px;
  vertical-align: middle;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea {
  min-height: 98px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  font-size: 14px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36, 87, 214, 0.12);
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.choice-grid {
  display: grid;
  gap: 9px;
  margin-top: 7px;
}
.field-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.date-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.choice input {
  margin-top: 6px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}
.choice span {
  display: block;
  font-weight: 800;
}
.choice small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.6;
}
.choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.submit {
  margin-top: 22px;
  padding: 16px 18px;
  font-size: 16px;
}
.submit:disabled {
  opacity: 0.58;
  cursor: wait;
}
.confetti-container {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
}
.success {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #b7e3c7;
  background: var(--green-soft);
  color: #0f5c32;
  font-weight: 900;
}
.footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 34px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
@media (max-width: 860px) {
  .hero-inner,
  .wrap {
    grid-template-columns: 1fr;
  }
  .side { position: static; }
  .summary,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .date-choice-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 34px; }
}
@media (max-width: 1020px) {
  .hero.has-banner .hero-banner-img {
    height: 390px;
    object-fit: cover;
    object-position: left center;
  }
  .hero.has-banner .hero-inner {
    grid-template-columns: 1fr;
    padding: 32px 38px;
    align-content: center;
  }
  .hero.has-banner .hero-inner > div:first-child {
    max-width: 460px;
  }
  .hero.has-banner .eyebrow {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.35;
  }
  .hero.has-banner h1 {
    font-size: clamp(30px, 4.8vw, 42px);
    line-height: 1.16;
  }
  .hero.has-banner .hero-copy {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.55;
  }
}
@media (min-width: 1021px) {
  .wide-break {
    display: block;
  }
}
@media (max-width: 640px) {
  .hero.has-banner {
    padding: 16px 14px 6px;
  }
  .hero.has-banner .hero-banner-img {
    height: auto;
    object-fit: contain;
    object-position: center;
  }
  .hero.has-banner .hero-inner {
    top: 16px;
    width: calc(100% - 28px);
    height: calc(100% - 22px);
    padding: 22px 20px;
    align-content: center;
  }
  .hero.has-banner::before {
    top: 16px;
    width: calc(100% - 28px);
    height: calc(100% - 22px);
    background: linear-gradient(90deg, rgba(23, 32, 42, 0.36), rgba(23, 32, 42, 0.04) 74%);
  }
  .hero.has-banner .hero-inner > div:first-child {
    width: min(100%, 300px);
    max-width: none;
  }
  .hero.has-banner .eyebrow {
    font-size: 10px;
    line-height: 1.35;
    margin-bottom: 10px;
  }
  .hero.has-banner h1 {
    font-size: clamp(23px, 6.5vw, 30px);
    line-height: 1.16;
  }
  .hero.has-banner .hero-copy {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.52;
  }
}
