:root {
  --fp-midnight: var(--ds5-midnight, #173746);
  --fp-blue: var(--ds5-blue, #315f70);
  --fp-body: var(--ds5-body, #526670);
  --fp-gold: var(--ds5-gold, #c9ad78);
  --fp-warm: var(--ds5-warm, #fcfbf8);
  --fp-soft: var(--ds5-neutral, #f5f3ee);
  --fp-line: var(--ds5-border, #e4e0d8);
  --fp-serif: var(--ds5-serif, Georgia, "Times New Roman", Times, serif);
  --fp-sans: var(--ds5-sans, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  --fp-shell: var(--ds5-shell, 1240px);
  --fp-error: #782f25;
}

.fp-main { background: var(--fp-soft); color: var(--fp-body); font-family: var(--fp-sans); line-height: 1.68; }
.fp-shell { width: min(calc(100% - 48px), var(--fp-shell)); margin-inline: auto; }
.fp-hero { border-bottom: 1px solid var(--fp-line); background: var(--fp-warm); }
.fp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); gap: clamp(48px, 7vw, 92px); align-items: center; padding-block: clamp(58px, 6vw, 80px); }
.fp-eyebrow { margin: 0 0 13px; color: #806533; font-size: .78rem; font-weight: 750; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.fp-hero h1, .fp-prep h2, .fp-form-shell .form-section-title, .fp-form-shell legend, .fp-form-head h2 { color: var(--fp-midnight); font-family: var(--fp-serif); font-weight: 500; letter-spacing: -.018em; }
.fp-hero h1 { max-width: 700px; margin: 0; font-size: clamp(2rem, 2.8vw, 2.35rem); line-height: 1.13; }
.fp-lead { max-width: 690px; margin: 20px 0 0; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.7; }
.fp-prep { padding: 27px 30px 24px; border-top: 3px solid var(--fp-gold); background: #fff; box-shadow: 0 6px 16px rgba(23,55,70,.025); }
.fp-prep h2 { margin: 0; font-size: 1.35rem; line-height: 1.22; }
.fp-prep p { margin: 13px 0 0; font-size: .95rem; line-height: 1.65; }
.fp-prep ul { margin: 15px 0 0; padding: 0; list-style: none; }
.fp-prep li { padding: 9px 0; border-top: 1px solid var(--fp-line); font-size: .92rem; }
.fp-form-section { padding-block: clamp(46px, 5vw, 68px); }
.fp-form-layout { display: grid; grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr); gap: clamp(38px, 6vw, 72px); align-items: start; }
.fp-form-head { position: sticky; top: 142px; }
.fp-form-head h2 { margin: 0; font-size: clamp(1.7rem, 2.4vw, 2rem); line-height: 1.16; }
.fp-form-head p { margin: 16px 0 0; }
.fp-key { margin-top: 18px !important; font-size: .9rem; }
.fp-required, .fp-optional { color: var(--fp-body); font-size: .8rem; font-weight: 500; }
.fp-required::before { content: " · "; }
.fp-optional::before { content: " · "; }
.fp-form-shell { max-width: none !important; margin: 0 !important; padding: clamp(24px, 4vw, 40px) !important; border: 0 !important; border-top: 3px solid var(--fp-gold) !important; border-radius: 0 !important; background: #fff !important; box-shadow: 0 8px 20px rgba(23,55,70,.035) !important; }
.fp-form-shell .form-section, .fp-form-shell fieldset { min-width: 0; margin: 0 0 30px !important; padding: 0 0 30px !important; border: 0 !important; border-bottom: 1px solid var(--fp-line) !important; background: transparent !important; box-shadow: none !important; }
.fp-form-shell .form-section-title, .fp-form-shell legend { width: 100%; margin: 0 0 20px !important; padding: 0 !important; border: 0 !important; font-size: 1.32rem !important; line-height: 1.22; }
.fp-form-shell .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 18px; }
.fp-form-shell .full { grid-column: 1 / -1; }
.fp-form-shell label { color: var(--fp-midnight); font-family: var(--fp-sans); font-size: .92rem; font-weight: 700; }
.fp-form-shell input:not([type="radio"]):not([type="checkbox"]), .fp-form-shell select, .fp-form-shell textarea { box-sizing: border-box; width: 100%; min-height: 48px; margin-top: 8px; padding: 12px 13px; border: 1px solid #bfc8c9; border-radius: 5px; background: #fff; color: var(--fp-midnight); font: inherit; }
.fp-form-shell textarea { min-height: 132px; resize: vertical; }
.fp-form-shell input[type="file"] { padding: 10px !important; background: var(--fp-warm) !important; }
.fp-form-shell input:focus, .fp-form-shell select:focus, .fp-form-shell textarea:focus { border-color: var(--fp-blue); outline: 3px solid rgba(49,95,112,.2); outline-offset: 1px; }
.fp-form-shell .choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 18px; }
.fp-form-shell .choice, .fp-form-shell .checkbox { display: flex; gap: 11px; align-items: flex-start; min-height: 44px; padding: 11px 0; border-bottom: 1px solid var(--fp-line); color: var(--fp-midnight); }
.fp-form-shell .choice input, .fp-form-shell .checkbox input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; }
.fp-form-shell .choice input[type="radio"]:focus-visible {
  outline: 3px solid var(--fp-midnight) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff;
}
.fp-form-shell .helper { margin: 11px 0 0; color: var(--fp-body); font-size: .9rem; line-height: 1.6; }
.fp-form-shell .form-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.fp-form-shell .note-list { flex: 1 1 320px; margin: 0; padding-left: 19px; font-size: .9rem; }
.fp-form-shell .btn { min-height: 50px; padding: 12px 22px; border: 1px solid #a2834c; border-radius: 6px; background: #b7965c; color: #102f3d; font-family: var(--fp-sans); font-size: .96rem; font-weight: 750; }
.fp-form-shell .btn:hover { background: #aa894f; }
.fp-form-shell .btn:focus-visible { outline: 3px solid var(--fp-midnight); outline-offset: 4px; }
.fp-notice { margin: 0 0 25px; padding: 18px 20px; border-left: 3px solid var(--fp-gold); background: var(--fp-warm); font-size: .94rem; line-height: 1.65; }
.fp-notice a, .fp-notice a:visited { color: var(--fp-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fp-notice a:focus-visible { outline: 3px solid rgba(49,95,112,.25); outline-offset: 3px; }
.fp-main .success-message, .fp-main .error-message { margin: 0 0 24px; padding: 17px 19px; border: 1px solid; border-radius: 5px; font-size: .94rem; line-height: 1.65; }
.fp-main .success-message { border-color: #a9c1af; background: #eef5f0; color: #204331; }
.fp-main .error-message { border-color: #d7aaa2; background: #fbf0ee; color: var(--fp-error); }
.fp-main .field-error { display: block; margin-top: 6px; color: var(--fp-error); font-size: .84rem; font-weight: 700; }

@media (max-width:1023px) {
  .fp-hero__grid, .fp-form-layout { grid-template-columns: 1fr; gap: 34px; }
  .fp-form-head { position: static; max-width: 720px; }
  .fp-prep { max-width: 720px; }
}
@media (max-width:700px) {
  .fp-shell { width: min(calc(100% - 40px), var(--fp-shell)); }
  .fp-hero__grid { padding-block: 46px 52px; }
  .fp-hero h1 { font-size: 1.75rem; }
  .fp-form-section { padding-block: 46px; }
  .fp-form-shell { padding: 24px 20px !important; }
  .fp-form-shell .form-grid, .fp-form-shell .choice-grid { grid-template-columns: 1fr; }
  .fp-form-shell .full { grid-column: auto; }
  .fp-form-shell .form-actions { display: grid; }
  .fp-form-shell .btn { width: 100%; }
}
@media (prefers-reduced-motion:reduce) { .fp-form-shell .btn { transition: none; } }
