#quote-dialog {
  width: min(780px, calc(100vw - 32px));
  max-width: none;
  max-height: min(880px, calc(100vh - 32px));
  height: min(880px, calc(100vh - 32px));
  max-height: min(880px, calc(100dvh - 32px));
  height: min(880px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: #202020;
  background: #f7f4ed;
  box-shadow: 0 30px 90px rgb(0 0 0 / 48%);
  overflow: hidden;
}

#quote-dialog::backdrop {
  background: rgb(10 10 10 / 76%);
  backdrop-filter: blur(7px);
}

#quote-root { height: 100%; min-height: 0; }
body.enquiry-open { overflow: hidden; }

.e-shell {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 100% 0, rgb(252 182 54 / 14%), transparent 32%),
    #f7f4ed;
}

.e-topbar {
  flex-shrink: 0;
  min-height: 76px;
  padding: 14px 20px 12px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c1c1c;
}

.e-topbar img { width: 122px; height: auto; }

.e-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  color: #fff;
  background: rgb(255 255 255 / 6%);
  font: 300 1.875rem/1 Inter, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.e-close:hover { transform: rotate(5deg); background: rgb(255 255 255 / 12%); }

.e-progress-row {
  flex-shrink: 0;
  padding: 14px 34px 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #666158;
  font: 700 0.6875rem/1.2 Inter, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.e-progress { height: 4px; flex-shrink: 0; margin: 0 34px; border-radius: 99px; background: #ddd7cb; overflow: hidden; }
.e-progress span { height: 100%; display: block; border-radius: inherit; background: #fcb636; transition: width .28s ease; }

.e-body { width: 100%; min-height: 0; padding: 34px; flex: 1; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.e-eyebrow { margin: 0 0 10px; color: #a66300; font: 800 0.6875rem/1.2 Inter, sans-serif; letter-spacing: .17em; }
.e-body h2 { max-width: 650px; margin: 0; color: #1d1d1d; font: 700 clamp(1.8125rem, 4vw, 2.625rem)/1.04 Poppins, sans-serif; letter-spacing: -.035em; outline: none; }
.e-intro { max-width: 630px; margin: 13px 0 26px; color: #625f58; font: 400 0.9375rem/1.6 Inter, sans-serif; }
.e-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.e-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.e-choices--asset .e-choice:first-child { grid-column: span 2; }
.e-choices--amount { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.e-choice {
  position: relative;
  min-height: 82px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #d7d0c3;
  border-radius: 16px;
  color: #262522;
  background: rgb(255 255 255 / 75%);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 0 rgb(27 27 27 / 4%);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.e-choice:hover { transform: translateY(-2px); border-color: #b6aa97; box-shadow: 0 9px 22px rgb(44 37 24 / 8%); }
.e-choice.is-selected { border-color: #c27a05; background: #fff8e9; box-shadow: inset 0 0 0 1px #fcb636, 0 8px 22px rgb(134 83 0 / 10%); }
.e-choice-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #1d1d1d; background: #fcb636; font: 900 0.625rem/1 Inter, sans-serif; letter-spacing: .04em; }
.e-choice-copy { min-width: 0; display: grid; gap: 4px; }
.e-choice-copy strong { font: 700 0.875rem/1.25 Poppins, sans-serif; }
.e-choice-copy small { color: #777168; font: 400 0.75rem/1.35 Inter, sans-serif; }
.e-choice-check { margin-left: auto; color: #9c650e; font: 700 1.125rem/1 Inter, sans-serif; }
.e-radio, .e-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.e-option-field { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.e-option-field > legend { margin-bottom: 12px; color: #36332d; font: 700 0.875rem/1.4 Inter, sans-serif; }
.e-option-field > .e-visually-hidden { margin: -1px; }
.e-input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.e-date-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; }
.e-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #36332d; font: 700 0.8125rem/1.4 Inter, sans-serif; }
.e-field input, .e-field select { width: 100%; min-width: 0; min-height: 50px; padding: 10px 12px; border: 1px solid #877c69; border-radius: 10px; color: #222; background: #fff; font: 500 1rem/1.4 Inter, sans-serif; }
.e-field small, .e-field-hint { margin: 0 0 10px; color: #625f58; font: 400 0.75rem/1.5 Inter, sans-serif; }
.e-field-error { display: block; margin-top: 5px; color: #8b2414; font: 650 0.75rem/1.5 Inter, sans-serif; }
.e-field input[aria-invalid="true"], .e-field select[aria-invalid="true"] { border: 2px solid #b63e26; }
.e-date-grid .e-field-error { overflow-wrap: anywhere; }
.e-local-note { margin: 20px 0 0; color: #625f58; font: 400 0.6875rem/1.5 Inter, sans-serif; }
.e-review-section { margin: 0 0 20px; }
.e-review-section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.e-review-section h3, .e-calculator-context h3 { margin: 0; color: #36332d; font: 700 0.9375rem/1.5 Poppins, sans-serif; }
.e-edit, .e-reset { padding: 9px 12px; min-height: 42px; border: 1px solid #cfc6b7; border-radius: 8px; color: #473a24; background: transparent; font: 650 0.8125rem/1.3 Inter, sans-serif; cursor: pointer; }
.e-edit:hover, .e-reset:hover { background: #eee5d3; }
.e-reset { margin-top: 18px; }
.e-calculator-context { margin: 8px 0 24px; padding: 18px; border: 1px solid #cfc6b7; border-radius: 14px; background: #fff8e9; }
.e-calculator-context p { color: #36332d; font: 400 0.875rem/1.6 Inter, sans-serif; }
.e-calculator-context small { display: block; margin-top: 12px; color: #625f58; font: 400 0.75rem/1.5 Inter, sans-serif; }
.e-summary dd { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.e-consent { margin-top: 10px; }
.e-consent input { flex-shrink: 0; }
.e-choice:focus-within, .e-field input:focus-visible, .e-field select:focus-visible, .e-edit:focus-visible, .e-reset:focus-visible { outline: 3px solid #6a4a13; outline-offset: 3px; }
.e-choice, .e-next, .e-back, .e-close, .e-edit, .e-reset { touch-action: manipulation; }

.e-reveal { margin-top: 15px; padding: 18px; border-radius: 16px; background: #ece7dc; animation: e-reveal .2s ease both; }
.e-reveal label, .e-contact-grid label { display: grid; gap: 8px; color: #36332d; font: 700 0.75rem/1.3 Inter, sans-serif; }
.e-reveal input, .e-contact-grid input, .e-contact-grid select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cfc6b7;
  border-radius: 11px;
  color: #222;
  background: #fff;
  font: 500 1rem/1 Inter, sans-serif;
}

.e-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.e-field-wide { grid-column: span 2; }
.e-contact-grid select { appearance: auto; }
.e-consent { padding: 16px; display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 12px !important; border: 1px solid #d7d0c3; border-radius: 14px; background: rgb(255 255 255 / 64%); cursor: pointer; }
.e-consent input { width: 20px; min-height: 20px; margin: 1px 0 0; accent-color: #c87800; }
.e-consent span { display: grid; gap: 5px; }
.e-consent strong { font: 650 0.8125rem/1.4 Inter, sans-serif; }
.e-consent small { color: #716c64; font: 400 0.75rem/1.4 Inter, sans-serif; }

.e-error { margin: 16px 0 0; padding: 12px 14px; border-left: 4px solid #b63e26; border-radius: 6px; color: #782515; background: #fbe9e5; font: 650 0.8125rem/1.4 Inter, sans-serif; }
.e-actions { margin-top: auto; padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.e-back, .e-next { min-height: 50px; padding: 0 20px; border-radius: 999px; font: 750 0.8125rem/1 Poppins, sans-serif; cursor: pointer; }
.e-back { border: 1px solid #cfc6b7; color: #35322d; background: transparent; }
.e-next { border: 1px solid #fcb636; color: #171717; background: #fcb636; box-shadow: 0 8px 24px rgb(160 99 0 / 19%); }
.e-next span { margin-left: 8px; }
.e-next:hover { background: #ffc75f; }

.e-complete { align-items: flex-start; }
.e-complete-mark { width: 54px; height: 54px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 50%; color: #1c1c1c; background: #fcb636; font: 900 1.5625rem/1 Inter, sans-serif; }
.e-summary { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #dad2c5; border-radius: 16px; overflow: hidden; background: rgb(255 255 255 / 60%); }
.e-summary div { padding: 13px 15px; border-bottom: 1px solid #e3ddd2; }
.e-summary div:nth-child(odd) { border-right: 1px solid #e3ddd2; }
.e-summary div:nth-last-child(-n+2) { border-bottom: 0; }
.e-summary dt { margin: 0 0 4px; color: #777168; font: 700 0.625rem/1.2 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.e-summary dd { margin: 0; color: #292724; font: 650 0.8125rem/1.4 Inter, sans-serif; }
.e-preview-note { width: 100%; margin-top: 16px; padding: 14px 16px; display: grid; gap: 3px; border-radius: 12px; color: #efe8dc; background: #242321; }
.e-preview-note strong { color: #fcb636; font: 750 0.75rem/1.3 Inter, sans-serif; }
.e-preview-note span { font: 400 0.75rem/1.4 Inter, sans-serif; }
.e-actions--complete { width: 100%; }

.e-choice:focus-visible, .e-close:focus-visible, .e-back:focus-visible, .e-next:focus-visible,
.e-reveal input:focus-visible, .e-contact-grid input:focus-visible, .e-contact-grid select:focus-visible, .e-consent:focus-within {
  outline: 3px solid #6a4a13;
  outline-offset: 3px;
}

@keyframes e-reveal { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 640px) {
  #quote-dialog { width: 100vw; max-height: 100vh; height: 100vh; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  #quote-root, .e-shell { height: 100%; min-height: 0; }
  .e-topbar { min-height: 66px; padding: 10px 16px 9px 20px; }
  .e-progress-row { padding: 12px 20px 9px; }
  .e-progress { margin: 0 20px; }
  .e-body { padding: 25px 20px 20px; scroll-padding-block: 16px 110px; }
  .e-body h2 { font-size: clamp(1.6875rem, 9vw, 2.25rem); }
  .e-intro { margin-bottom: 21px; }
  .e-choices, .e-choices--amount { grid-template-columns: 1fr; }
  .e-choices--asset .e-choice:first-child { grid-column: auto; }
  .e-choice { min-height: 68px; padding: 13px; }
  .e-choice-icon { width: 38px; height: 38px; }
  .e-contact-grid { grid-template-columns: 1fr; gap: 13px; }
  .e-input-grid { grid-template-columns: 1fr; }
  .e-date-grid { gap: 8px; }
  .e-field-wide { grid-column: auto; }
  .e-actions { position: sticky; bottom: 0; margin-inline: -20px; padding: 18px 20px max(18px, env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgb(247 244 237 / 75%), #f7f4ed 28%); }
  .e-next { margin-left: auto; }
  .e-summary { grid-template-columns: 1fr; }
  .e-summary div, .e-summary div:nth-child(odd), .e-summary div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid #e3ddd2; }
  .e-summary div:last-child { border-bottom: 0; }
  .e-complete { overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .e-progress span, .e-choice, .e-close, .e-reveal { transition: none; animation: none; }
}

/* Hundy picture choices and readable form styling. */
.e-topbar { min-height: 64px; padding: 10px 22px; }
.e-topbar img { width: 112px; }
.e-close { width: 44px; height: 44px; }
.e-progress-row { min-height: 42px; padding-block: 8px; align-items: center; font-size: 0.75rem; letter-spacing: .015em; text-transform: none; }
.e-progress-row > span:last-child { display: flex; align-items: center; gap: 7px; text-align: right; }
.e-progress-asset { width: 40px; height: 28px; object-fit: contain; }
.e-progress span { transition: none; }
.e-body { padding-top: 26px; }
.e-body h2 { font-size: clamp(1.75rem, 3.2vw, 2.1875rem); line-height: 1.15; letter-spacing: -.035em; }
.e-eyebrow { color: #8a5700; font-size: 0.75rem; letter-spacing: .1em; }
.e-intro { font-size: 1rem; line-height: 1.55; margin: 12px 0 24px; }
.e-choices--asset { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.e-choices--asset .e-choice:first-child { grid-column: auto; }
.e-choices--asset .e-choice { min-height: 132px; padding: 13px 10px 14px; flex-direction: column; justify-content: center; gap: 6px; text-align: center; border-radius: 16px; background: #fff; }
.e-asset-picture { width: 104px; max-width: 100%; height: 70px; display: block; object-fit: contain; }
.e-choices--asset .e-choice-copy strong { font-family: Inter, Arial, sans-serif; font-size: 0.9375rem; line-height: 1.3; }
.e-choices--asset .e-choice-check { position: absolute; top: 9px; right: 10px; width: 18px; height: 18px; font-size: 1rem; line-height: 1; }
.e-choice.is-selected { background: #fff5dd; border-color: #8a5700; box-shadow: inset 0 0 0 1px #8a5700; }
.e-choice-copy strong { font-size: 1rem; line-height: 1.4; }
.e-choice-copy small { color: #625f58; font-size: 0.875rem; line-height: 1.45; }
.e-option-field > legend, .e-field { font-size: 0.9375rem; }
.e-field small, .e-field-hint, .e-field-error, .e-local-note, .e-calculator-context small { font-size: 0.875rem; line-height: 1.5; }
.e-field input, .e-field select { min-height: 54px; }
.e-consent strong, .e-consent small { font-size: 0.875rem; line-height: 1.5; }
.e-next, .e-back { min-height: 52px; font-family: Inter, Arial, sans-serif; font-size: 0.9375rem; line-height: 1.3; }
.e-edit, .e-reset { min-height: 44px; font-size: 0.875rem; }
.e-summary dt { font-size: 0.75rem; line-height: 1.4; color: #625f58; letter-spacing: .01em; text-transform: none; }
.e-summary dd { font-size: 1rem; }
.e-preview-note strong, .e-preview-note span { font-size: 0.875rem; line-height: 1.5; }
.e-error { margin: 0 0 18px; font-size: 0.875rem; }
.e-close:focus-visible { outline-color: #fcb636; }
.e-body h2, .e-review-section h3, .e-calculator-context h3 { font-weight: 800; }
.e-choice-copy strong { font-family: Inter, Arial, sans-serif; font-weight: 700; }
.e-summary dd, .e-edit, .e-reset, .e-consent strong { font-weight: 600; }
.e-next, .e-back, .e-field-error { font-weight: 700; }
.e-shell > .e-form > .e-actions, .e-shell > .e-actions {
  position: static;
  flex-shrink: 0;
  margin: 0;
  padding: 16px 34px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid #d7d0c3;
  background: #f7f4ed;
}
.e-shell > .e-form > .e-body { scroll-padding-block: 16px; }
.e-shell > .e-form > .e-actions > .e-back { flex-shrink: 0; white-space: nowrap; }
.e-complete-mark, .e-reset { flex-shrink: 0; }
.e-celebration { position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 12px; flex-shrink: 0; margin-bottom: 26px; padding: 20px; border: 1px solid #bd8427; border-radius: 16px; color: #30230c; background: #fff0cb; }
.e-celebration strong { font: 700 1.125rem/1.4 Inter, sans-serif; }
.e-celebration p { margin: 8px 0 0; font: 400 0.9375rem/1.5 Inter, sans-serif; }
.e-celebration-mark { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; color: #1c1c1c; background: #fcb636; font: 700 1rem/1 Inter, sans-serif; }
.e-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.e-confetti span { position: absolute; top: -14px; left: var(--x); width: 7px; height: 11px; background: #ac6f00; animation: e-confetti 1.6s var(--delay) ease-in both; }
.e-confetti span:nth-child(3n) { background: #fcb636; border-radius: 50%; }
.e-confetti span:nth-child(3n + 1) { background: #276854; }
@keyframes e-confetti { from { opacity: .9; transform: translateY(0) rotate(0deg); } to { opacity: 0; transform: translateY(230px) rotate(var(--turn)); } }
@media (prefers-reduced-motion: reduce) { .e-confetti { display: none; } .e-confetti span { animation: none; } }
@media (hover: none) { .e-choice:hover, .e-close:hover { transform: none; } }
@media (max-width: 640px) {
  .e-topbar { padding-inline: 20px 16px; }
  .e-body { padding-top: 24px; }
  .e-body h2 { font-size: clamp(1.6875rem, 8vw, 2rem); }
  .e-choices--asset { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .e-choices--asset .e-choice { min-height: 137px; }
  .e-asset-picture { width: 108px; height: 74px; }
  .e-progress-row { gap: 8px; }
  .e-progress-row > span:first-child { white-space: nowrap; }
  .e-progress-row > span:last-child { font-size: 0.6875rem; max-width: 62%; }
  .e-progress-asset { width: 34px; height: 25px; }
  .e-date-grid { grid-template-columns: 1fr 1fr 1.4fr; }
  .e-shell > .e-form > .e-actions, .e-shell > .e-actions { padding-inline: 20px; }
}
