:root {
  color-scheme: light;
  --ink: #24201f;
  --muted: #6a635f;
  --line: #e6dfdb;
  --paper: #fff;
  --canvas: #f6f3f1;
  --accent: #8e1716;
  --accent-dark: #68100f;
  --accent-soft: #f7e9e7;
  --shadow: 0 20px 60px rgba(53, 35, 30, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.55; }
button, input, textarea { font: inherit; }
.page-shell { max-width: 1160px; margin: 0 auto; padding: 54px 24px 32px; }
.intro { max-width: 1160px; margin: 0 auto 30px; text-align: center; }
.eyebrow, .summary-kicker { margin: 0 0 10px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 5vw, 3.65rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.intro-copy, .intro-offer { max-width: none; margin: 18px auto; font-size: 1rem; }
.intro-copy { color: var(--muted); text-align: justify; hyphens: auto; }
.intro-offer { border-left: 4px solid var(--accent); border-radius: 8px; background: #f2e7e2; color: #40211f; padding: 15px 18px; text-align: center; }
.benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 22px; }
.benefits span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d9b6ab; border-radius: 9px; background: #fff; box-shadow: 0 4px 12px rgba(53, 35, 30, .07); color: #54201c; padding: 11px 15px; font-size: .9rem; font-weight: 750; }
.benefits span::before { content: "✓"; display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 800; }
.test-data-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; border: 2px solid #a85b00; border-left-width: 8px; border-radius: 10px; background: #fff2c2; box-shadow: 0 5px 18px rgba(99, 61, 0, .12); color: #392500; padding: 16px 18px; }
.test-data-panel[hidden] { display: none; }
.test-data-panel strong { display: flex; align-items: center; gap: 9px; font-size: .95rem; letter-spacing: .025em; }
.test-data-panel strong::before { content: "TEST"; display: inline-block; border-radius: 4px; background: #8c3f00; color: #fff; padding: 3px 6px; font-size: .68rem; font-weight: 850; letter-spacing: .08em; }
.test-data-panel p { margin: 5px 0 0; font-size: .88rem; font-weight: 650; }
.test-data-panel button { flex: 0 0 auto; border: 1px solid #754100; border-radius: 6px; background: #8c3f00; color: #fff; cursor: pointer; padding: 10px 13px; font-size: .82rem; font-weight: 750; }
.test-data-panel button:hover { background: #683000; }
.test-data-panel button:focus-visible { outline: 3px solid #392500; outline-offset: 3px; }
form { overflow: hidden; border: 1px solid #eae3df; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.form-section { padding: 32px clamp(16px, 3vw, 36px) 40px; }
.form-section + .form-section { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.step { display: grid; width: 46px; height: 42px; flex: 0 0 46px; place-items: center; border-radius: 9px; background: var(--accent); color: #fff; font-size: 1rem; font-weight: 800; letter-spacing: .04em; box-shadow: 0 3px 8px rgba(142, 23, 22, .18); }
h2, h3, p { margin-top: 0; }
.section-heading h2 { margin: 0 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 500; }
.section-heading p { margin: 0; color: var(--muted); font-size: .91rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.postal-city-grid { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr); gap: 10px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #46403d; font-size: .83rem; font-weight: 700; }
.field b, .consent b { color: var(--accent); }
.field-wide { grid-column: 1 / -1; }
input:not([type="checkbox"]), textarea { width: 100%; min-height: 46px; border: 1px solid #d9d1cc; border-radius: 8px; outline: none; background: #fff; color: var(--ink); padding: 10px 12px; font-size: .93rem; font-weight: 400; transition: border-color .16s, box-shadow .16s; }
textarea { min-height: 116px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #736b66; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(142, 23, 22, .1); }
input:invalid:not(:placeholder-shown), input.is-invalid, textarea.is-invalid { border-color: #bb4d48; }
.field-error { display: block; color: #a32620; font-size: .76rem; font-weight: 600; line-height: 1.35; }
.field-error[hidden] { display: none; }
.share-field .field-error { color: #ffc4bb; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.estate-section .asset-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .9fr); align-items: start; gap: 24px; }
.asset-groups { display: grid; gap: 14px; }
.asset-card { min-width: 0; border: 1px solid #d8c4bb; border-radius: 12px; background: #f2e7e2; box-shadow: 0 3px 12px rgba(53, 35, 30, .06); padding: 17px; }
.asset-title, .asset-title > div { display: flex; align-items: center; }
.asset-title { justify-content: space-between; gap: 10px; margin-bottom: 5px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.asset-title > div { gap: 10px; }
.asset-title h3 { margin: 0; color: #35211f; font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.category-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; font-size: 1.2rem; font-weight: 700; }
.category-total { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.category-total strong { display: block; color: var(--ink); font-size: .89rem; text-align: right; }
.asset-row { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(150px, 1.3fr) 30px; align-items: end; gap: 9px; padding: 11px 0; border-top: 1px solid #f0ece9; }
.asset-row .field { gap: 5px; font-size: .72rem; }
.asset-row input:not([type="checkbox"]) { min-height: 40px; padding: 8px 9px; font-size: .85rem; }
.asset-row--with-postcode { grid-template-columns: minmax(105px, .8fr) minmax(150px, 1.3fr) minmax(90px, .65fr) 30px; }
.icon-button { width: 30px; height: 38px; border: 1px solid #ead3d0; border-radius: 8px; background: #fff8f7; color: var(--accent); cursor: pointer; font-size: 1.25rem; line-height: 1; }
.icon-button:hover { background: var(--accent-soft); }
.icon-button[hidden] { display: none; }
.add-row { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; border: 0; background: transparent; color: var(--accent); cursor: pointer; padding: 4px 0; font-size: .82rem; font-weight: 750; }
.add-row:hover { color: var(--accent-dark); }
.add-row:disabled { opacity: .5; cursor: not-allowed; }
.summary-card { position: sticky; top: 20px; border-radius: 13px; background: #292321; color: #fff; padding: 23px; }
.summary-kicker { color: #e4aaa4; }
.summary-card h3 { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #ded6d2; font-size: .82rem; }
.summary-line strong { color: #fff; font-weight: 650; text-align: right; white-space: nowrap; }
.total-line { margin-top: 4px; color: #fff; font-weight: 750; }
.total-line strong { color: #ffd7d1; font-size: 1rem; }
.share-field { margin-top: 19px; color: #eee4df; }
.share-hint { margin-top: -3px; color: #c7bbb5; font-size: .75rem; font-weight: 400; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 38px !important; }
.input-suffix > span { position: absolute; top: 50%; right: 13px; color: #766d68; transform: translateY(-50%); }
.share-value { display: flex; flex-direction: column; gap: 2px; margin-top: 17px; border-radius: 9px; background: rgba(255,255,255,.09); padding: 13px; color: #e8ded9; font-size: .78rem; }
.share-value strong { color: white; font-size: 1.24rem; }
.lower-fields { margin-top: 24px; }
.form-footer { border-top: 1px solid var(--line); background: #fbf9f8; padding: 25px clamp(16px, 3vw, 36px) 30px; }
.consent { display: flex; align-items: flex-start; gap: 11px; max-width: 760px; color: #5f5753; font-size: .84rem; }
.consent input { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: var(--accent); }
a { color: var(--accent); text-underline-offset: 3px; }
.required-note { margin: 12px 0 18px 29px; color: var(--muted); font-size: .76rem; }
.submit-button { display: flex; width: min(100%, 340px); min-height: 52px; align-items: center; justify-content: space-between; margin: 0 auto; border: 0; border-radius: 8px; background: var(--accent); color: white; cursor: pointer; padding: 0 20px; font-size: .95rem; font-weight: 750; }
.submit-button:hover { background: var(--accent-dark); }
.submit-button:disabled { cursor: wait; opacity: .7; }
.submit-button [aria-hidden="true"] { font-size: 1.25rem; }
.form-notice { margin: 15px auto 0; color: var(--accent-dark); text-align: center; font-size: .88rem; font-weight: 650; }
.form-notice[data-type="error"] { color: #a32620; }
.form-tooltip { position: fixed; z-index: 1000; max-width: min(280px, calc(100vw - 24px)); border-radius: 6px; background: #292321; box-shadow: 0 5px 18px rgba(0, 0, 0, .18); color: #fff; padding: 8px 10px; font-size: .76rem; line-height: 1.4; pointer-events: none; }
@media (max-width: 800px) {
  .page-shell { padding: 34px 16px 24px; }
  .estate-section .asset-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 560px) {
  .page-shell { padding: 27px 12px 20px; }
  .intro { margin-bottom: 22px; }
  .benefits { gap: 6px; }
  .benefits span { font-size: .78rem; padding: 9px 12px; }
  form { border-radius: 13px; }
  .form-section { padding: 25px 12px 29px; }
  .test-data-panel { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field-wide { grid-column: auto; }
  .section-heading { gap: 11px; }
  .section-heading h2 { font-size: 1.45rem; }
  .asset-card { padding: 13px; }
  .asset-title { align-items: flex-start; }
  .asset-title h3 { font-size: .9rem; }
  .asset-row, .asset-row--with-postcode { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) 30px; gap: 7px; }
  .asset-row .field-postcode { grid-column: 1 / 3; }
  .asset-row .field:first-child { grid-column: 1; }
  .asset-row .field:nth-child(2) { grid-column: 2; }
  .asset-row .remove-row { grid-column: 3; grid-row: 1; }
  .form-footer { padding: 22px 12px 25px; }
}
