:root {
  --navy: #0e2a47;
  --navy-deep: #081a2e;
  --gold: #c9a961;
  --gold-soft: #e3cf95;
  --cream: #faf7f0;
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --ink-mute: #718096;
  --line: #e3dccd;
  --line-soft: #f0ebe0;
  --white: #ffffff;
  --error: #c53030;
  --success: #2f855a;
  --shadow-sm: 0 1px 3px rgba(14,42,71,.08);
  --shadow-md: 0 8px 24px rgba(14,42,71,.10);
  --shadow-lg: 0 20px 50px rgba(14,42,71,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink); background: var(--cream);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
}
.container { width: min(1080px, 92vw); margin: 0 auto; }
a { color: inherit; }

/* Top bar */
.topbar {
  background: var(--navy-deep); color: #cdd7e3; font-size: 13px; padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #cdd7e3; text-decoration: none; }
.topbar a:hover { color: var(--gold-soft); }
.topbar .divider { margin: 0 10px; color: #45566b; }
.info-item { white-space: nowrap; }

/* Nav */
.nav { background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 20; }
.nav .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand .firm { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1; }
.brand .sub { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 4px; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions .phone { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--navy); }
.nav-actions .phone:hover { color: var(--gold); }
.email-btn { text-decoration: none; background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 2px; font-size: 13px; font-weight: 600; transition: background .2s; }
.email-btn:hover { background: var(--navy-deep); }

/* Header / hero */
.page-head { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 54px 0 58px; }
.page-head .eyebrow {
  display: inline-block; color: var(--gold); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(201,169,97,.4);
}
.page-head h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(30px, 5vw, 46px); line-height: 1.12; margin: 0 0 16px; }
.page-head h1 .accent { color: var(--gold); font-style: italic; }
.page-head p { max-width: 64ch; color: #d3dbe6; font-size: 17px; margin: 0; }

/* Trust strip */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: 14px 34px; padding: 16px 0; justify-content: center; }
.trust-item { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.trust-item .ico { margin-right: 6px; }

/* Form shell */
.form-shell { margin: 34px auto 60px; }
.progress { display: flex; gap: 6px; background: var(--white); padding: 16px; border-radius: 2px 2px 0 0; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--line-soft); }
.progress .seg { flex: 1; height: 5px; border-radius: 999px; background: var(--line); transition: background .3s; }
.progress .seg.active { background: var(--gold); }
.progress .seg.done { background: var(--navy); }
.step-count { background: var(--white); margin: 0; padding: 14px 24px 0; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; color: var(--ink-mute); box-shadow: var(--shadow-md); }

#willForm { background: var(--white); padding: 10px 28px 28px; border-radius: 0 0 2px 2px; box-shadow: var(--shadow-md); }
.step { display: none; animation: fade .25s ease; }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.step-head { border-bottom: 1px solid var(--line-soft); padding: 16px 0 16px; margin-bottom: 22px; }
.step-head h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 27px; margin: 0 0 5px; color: var(--navy); font-weight: 700; }
.step-head p { margin: 0; color: var(--ink-mute); font-size: 15px; }

/* Fields */
.field { margin: 0 0 20px; display: flex; flex-direction: column; }
.field > label { display: block; font-weight: 600; font-size: 14px; line-height: 1.4; margin-bottom: 8px; color: var(--ink); }
.field .hint { display: block; font-weight: 400; color: var(--ink-mute); font-size: 12.5px; line-height: 1.45; margin: -2px 0 9px; }
.req { color: var(--error); margin-left: 2px; }

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], select, textarea {
  width: 100%; padding: 0 14px; height: 46px; border: 1px solid var(--line); border-radius: 2px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
select { -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23718096' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea { height: auto; min-height: 100px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.18); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--error); }
input::placeholder, textarea::placeholder { color: #a7b0bd; }

/* Two-column rows: keep the input boxes aligned even when a label wraps */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; align-items: end; }
.grid-2 > .field { margin-bottom: 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; gap: 0; } .grid-2 > .field { margin-bottom: 20px; } }

/* Radio / choice */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; font-size: 14px; background: #fff; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--gold-soft); }
.choice input { accent-color: var(--gold); }
.choice.selected { border-color: var(--gold); background: #fbf6ea; }

.checkbox-field { display: flex; gap: 11px; align-items: flex-start; background: var(--cream); border: 1px solid var(--line-soft); padding: 14px; border-radius: 2px; }
.checkbox-field input { margin-top: 3px; accent-color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; }

/* Repeatable groups */
.group { border: 1px solid var(--line); border-radius: 2px; padding: 16px; margin-bottom: 12px; background: #fdfcf9; position: relative; }
.group-title { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 16px; color: var(--navy); margin: 0 0 12px; }
.group .remove { position: absolute; top: 12px; right: 12px; border: none; background: none; color: var(--error); cursor: pointer; font-size: 13px; }
.add-btn { border: 1px dashed var(--gold); background: #fff; color: var(--navy); padding: 11px 16px; border-radius: 2px; cursor: pointer; font-weight: 600; font-size: 14px; transition: background .15s; }
.add-btn:hover { background: #fbf6ea; }

/* File upload */
.file-drop { display: block; width: 100%; box-sizing: border-box; border: 1.5px dashed var(--line); border-radius: 2px; padding: 26px 20px; text-align: center; background: #fdfcf9; cursor: pointer; color: var(--ink-soft); line-height: 1.5; }
.file-drop strong { color: var(--navy); font-weight: 600; }
.file-drop .hint { margin: 4px 0 0; }
.file-drop:hover { border-color: var(--gold); }
.file-drop input { display: none; }
.file-list { margin: 12px 0 0; padding: 0; list-style: none; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); word-break: break-word; }
.file-list li span { min-width: 0; overflow-wrap: anywhere; }
.file-list button { border: none; background: none; color: var(--error); cursor: pointer; flex-shrink: 0; }

.conditional { display: none; }
.conditional.show { display: block; }

.note { background: #fbf6ea; border-left: 3px solid var(--gold); padding: 13px 15px; border-radius: 0 2px 2px 0; font-size: 14px; color: #6b5836; margin: 0 0 18px; }

/* Nav buttons */
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.btn { padding: 13px 28px; font-family: inherit; font-size: 14px; font-weight: 600; border-radius: 2px; border: 1px solid transparent; cursor: pointer; transition: all .2s ease; letter-spacing: .01em; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-soft); }
.form-error { color: var(--error); font-size: 14px; margin: 12px 0 0; min-height: 18px; }

/* Success */
.success-screen { background: var(--white); border-radius: 2px; box-shadow: var(--shadow-md); padding: 50px 32px; text-align: center; }
.success-check { width: 68px; height: 68px; border-radius: 50%; background: var(--success); color: #fff; font-size: 34px; display: grid; place-items: center; margin: 0 auto 18px; }
.success-screen h2 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 30px; margin: 0 0 12px; }
.success-screen p { color: var(--ink-mute); max-width: 56ch; margin: 0 auto 24px; }

/* Footer */
footer { background: var(--navy-deep); color: #b9c4d2; padding: 52px 0 26px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-brand img { width: 60px; margin-bottom: 14px; filter: brightness(0) invert(1) opacity(.95); }
.footer-brand .firm { font-family: 'Playfair Display', serif; font-size: 18px; color: #fff; font-weight: 600; }
.footer-brand .tagline { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 6px 0 14px; font-weight: 600; }
.footer-brand p { color: #94a1b3; max-width: 40ch; }
footer h5 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { padding: 5px 0; color: #b9c4d2; }
.footer-contact .row { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-contact .ico { flex-shrink: 0; }
.copyright { padding-top: 22px; font-size: 12.5px; color: #8695a8; }
.copyright a { color: #8695a8; text-decoration: none; }
.copyright a:hover { color: var(--gold-soft); }
.copyright .disclaimer { display: inline-block; margin-top: 6px; color: #6d7c90; font-style: italic; }

.loading { pointer-events: none; opacity: .7; }
