.color-picker-popup { margin-top: 5px; border: 1px solid #bdc7ca; border-radius: 6px; background: #fff; overflow: hidden; }
#estimate-color-status { padding: 10px 12px; background: #f0f4f5; color: #45585e; font-size: .875rem; line-height: 1.4; }
#estimate-color-results {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: min(15rem, 36dvh);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}
.color-picker [role="option"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px;
  border-bottom: 1px solid #e4e8e7;
  cursor: pointer;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.color-picker [role="option"]:last-child { border-bottom: 0; }
.color-picker [role="option"] strong { font-size: 1rem; font-weight: 560; }
.color-picker [role="option"] span { color: var(--muted); font-size: .875rem; text-align: right; }
.color-picker [aria-selected="true"] { color: var(--blue); background: var(--blue-wash); box-shadow: inset 3px 0 var(--blue); }
@media (hover: hover) { .color-picker [role="option"]:hover { background: #f0f5f6; } }
.color-picker-pages { display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.color-picker-pages button { min-height: 44px; padding: 6px 12px; border: 0; background: transparent; color: var(--blue); font-size: .9rem; font-weight: 600; }
.color-picker-pages button:disabled { color: #697377; cursor: default; font-weight: 400; }
@media (forced-colors: active) { .color-picker [aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; } }
.estimate-section, .layout-request-panel, #request-dialog {
  --blue: #125682;
  --blue-wash: #edf5f8;
  --ink: #232a2d;
  --muted: #53626a;
  --line: #d7dddc;
  color: var(--ink);
}
.estimate-section { padding: clamp(26px, 4vw, 55px) 0; }
.estimate-section *, #request-dialog * { box-sizing: border-box; }
.estimate-section [hidden], #request-dialog [hidden] { display: none !important; }
.estimate-intro { display: flex; justify-content: space-between; align-items: end; gap: 22px; }
.estimate-intro h1 {
  margin: 0;
  font-size: clamp(2rem,4.2vw,3.75rem);
  line-height: 1.03;
  font-weight: 540;
  letter-spacing: -.06em;
  color: var(--ink);
}
.estimate-intro p, .estimate-color-caption p { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.estimate-intro h2 { margin: 0; font-size: clamp(1.55rem,2.7vw,2.3rem); line-height: 1.1; font-weight: 560; letter-spacing: -.045em; }
.estimate-print, .estimate-shortcut {
  display: inline-flex; align-items: center; justify-content: flex-start; min-height: 44px;
  width: auto; flex: none; border: 0; background: transparent; padding: 2px;
  font-family: inherit; color: #125682; font-size: .94rem; font-weight: 600; text-align: left;
  cursor: pointer; text-decoration: underline; text-underline-offset: .22em;
}
.layout-next-actions { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.sample-invitation {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 28px;
  margin-top: clamp(22px, 3vw, 36px); padding: clamp(18px, 2.4vw, 28px);
  background: #edf5f8; border-radius: 8px;
}
.sample-invitation h3 { margin: 0; color: #193949; font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 600; line-height: 1.18; letter-spacing: -.035em; }
.sample-invitation p { max-width: 52ch; margin: 6px 0 0; color: #42575f; font-size: 1rem; line-height: 1.45; }
.sample-invitation .sample-compare-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0;
  min-height: 46px; max-width: 100%; padding: 11px 18px; border: 0; border-radius: 24px;
  background: var(--blue); color: #fff; font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.35; cursor: pointer;
}
.sample-invitation .sample-compare-action:hover { background: #0a4163; }
.estimate-color-band {
  margin-block: clamp(22px,3.5vw,42px) clamp(22px,3.5vw,38px);
  display: grid; grid-template-columns: 1fr minmax(260px, .84fr);
  align-items: start; gap: 16px 28px; padding: 19px 0;
  border-block: 1px solid var(--line);
}
.estimate-section .estimate-field-label {
  display: block; margin: 0;
  font-family: inherit; font-size: 1.04rem; line-height: 1.3; font-weight: 620; letter-spacing: -.018em;
}
.estimate-field-label span { margin-left: .35em; font-size: .875rem; font-weight: 450; color: var(--muted); white-space: nowrap; }
.estimate-color-caption p { margin-top: 4px; font-size: .93rem; }
#estimate-color, #request-form input {
  display: block; width: 100%; height: auto; min-height: 45px; margin: 0;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #a9b3b6; border-radius: 5px; padding: 10px 12px;
}
.estimate-section .package-picker { min-width: 0; padding: 0; margin: 0; border: 0; }
.package-shared { margin: 16px 0; padding-block: 12px; border-block: 1px solid var(--line); }
.package-shared strong { font-size: 1rem; font-weight: 650; }
.package-shared ul { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 0; margin: 7px 0 0; list-style: none; }
.package-shared li { position: relative; padding-left: 16px; font-size: .93rem; line-height: 1.4; color: var(--muted); }
.material-choice-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 16px; }
.material-choice-summary strong, .material-choice-label { display: block; }
.material-choice-summary strong { font-size: 1.2rem; }
.material-choice-label { color: var(--muted); font-size: .92rem; margin-bottom: 3px; }
#change-package { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 600; text-underline-offset: .2em; }
.package-picker legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.package-options { display: grid; gap: 8px; }
.package-card { min-width: 0; border: 1px solid #cdd4d4; border-radius: 8px; background: #fffefa; }
.package-card.is-selected { border-color: var(--blue); box-shadow: 0 0 0 .5px var(--blue); }
.package-card h3 { margin: 0; }
.package-toggle {
  display: grid; grid-template-columns: 96px minmax(0,1fr) 30px; align-items: center; gap: clamp(12px,2vw,28px);
  width: 100%; min-height: 78px; padding: 0 18px 0 0; border: 0; border-radius: 7px;
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.estimate-section .package-toggle:focus-visible { outline-offset: 2px; }
.package-toggle[aria-current="true"] { background: var(--blue-wash); }
.package-photo { display: block; align-self: stretch; width: 100%; height: 78px; object-fit: cover; border-radius: 7px 0 0 7px; }
.package-copy { display: grid; grid-template-columns: clamp(130px,14vw,185px) minmax(0,1fr); align-items: center; gap: 12px; }
.package-title { font-size: clamp(1.34rem,2vw,1.7rem); font-weight: 570; line-height: 1.12; letter-spacing: -.045em; }
.package-caption { font-size: 1rem; font-weight: 440; line-height: 1.3; letter-spacing: normal; color: var(--muted); }
.package-indicator { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.package-indicator::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-1.5px) rotate(45deg); }
.package-toggle[aria-current="true"] .package-indicator { background: var(--blue); color: #fff; border-color: var(--blue); }
.package-toggle[aria-expanded="true"] .package-indicator::after { transform: translateY(1.5px) rotate(225deg); }
.package-shared li::before { content: ""; position: absolute; left: 1px; top: .45em; width: 8px; height: 4px; border-left: 1.7px solid var(--blue); border-bottom: 1.7px solid var(--blue); transform: rotate(-45deg); }
.package-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "inclusions advice";
  align-items: start;
  gap: clamp(24px, 4vw, 65px);
  padding: clamp(20px, 2.6vw, 36px);
  border-top: 1px solid var(--line);
}
.package-advice {
  grid-area: advice;
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: 8px;
  background-color: #16394a;
  color: #fffaf0;
}
.package-advice-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f3cf8f;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .085em;
  line-height: 1.35;
  text-transform: uppercase;
}
.package-advice-label::before { content: ""; width: 22px; border-top: 2px solid currentColor; }
.package-advice h4 {
  margin: 12px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.package-advice p {
  max-width: 49ch;
  margin: 0;
  color: #e2eced;
  font-size: 1rem;
  line-height: 1.55;
}
.package-inclusions { grid-area: inclusions; }
.package-inclusions h4 { margin: 0 0 8px; color: var(--ink); font-size: 1.1rem; font-weight: 650; line-height: 1.3; }
.package-inclusions ul { margin: 0; padding: 0; list-style: none; }
.package-inclusions li {
  position: relative;
  padding: 10px 0 10px 31px;
  color: #495961;
  font-size: 1rem;
  line-height: 1.45;
}
.package-inclusions li + li { border-top: 1px solid #dde3e3; }
.package-inclusions li:last-child { padding-bottom: 0; }
.package-inclusions li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background-color: #dfedf1;
}
.package-inclusions li::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 5px;
  width: 9px;
  height: 5px;
  border: solid #285b70;
  border-width: 0 0 1.6px 1.6px;
  transform: rotate(-45deg);
}
.package-inclusions li strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 650;
}
.package-request { display: flex; align-items: center; justify-content: space-between; gap: 6px 18px; }
.package-request p { margin: 0; color: var(--muted); }
.package-request strong { margin-left: .3em; color: var(--ink); }
.layout-request-panel {
  padding: clamp(24px,3.8vw,48px) 0;
  border-top: 1px solid var(--line);
}
.layout-request-panel h2 {
  margin: 0; color: var(--ink); font-size: clamp(1.65rem,3.2vw,2.5rem);
  font-weight: 580; line-height: 1.12; letter-spacing: -.045em;
}
.layout-request-panel > p { max-width: 58ch; margin: 9px 0 0; color: var(--muted); line-height: 1.5; }
.request-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.request-actions button, #request-dialog .primary {
  position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 28px; border: 0; background: var(--blue); color: #fff;
  min-height: 46px; padding: 12px 19px; font: inherit; font-weight: 600; font-size: .95rem;
  line-height: 1.35; white-space: normal; text-align: center; cursor: pointer;
}
.request-actions button:hover, #request-dialog .primary:hover { background: #0a4163; }
.request-actions [data-request-type="laser-template"] { color: var(--blue); background: var(--blue-wash); box-shadow: inset 0 0 0 1px #aec7d5; }
.request-actions [data-request-type="laser-template"]:hover { color: #0a4163; background: #dcecf4; }
.layout-request-panel button:focus-visible { outline: 3px solid #2874a5; outline-offset: 2px; }
.materials-estimate .layout-request-panel { margin-top: 22px; padding-bottom: 0; }
#estimate-feedback { margin: 8px 0 0; }
#estimate-feedback:empty, #request-error:empty { display: none; }
#estimate-feedback[data-kind="success"] { color: var(--blue); }
#estimate-feedback[data-kind="error"], #request-error { color: #8a3828; }
#request-dialog {
  width: min(465px,calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 28px); overflow-y: auto;
  border: 1px solid var(--line); border-radius: 12px; padding: 21px; background: #faf9f6;
}
#request-dialog::backdrop { background: rgb(21 32 40 / 45%); }
#request-dialog .dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 9px; }
#request-dialog .dialog-head h2 { margin: 0; font-size: 1.6rem; font-weight: 560; letter-spacing: -.035em; }
#request-dialog .close { flex: none; display: block; background: transparent; color: var(--ink); padding: 0; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.65rem; line-height: 1; }
#request-compose > p, #request-receipt > p { margin: 0; color: var(--muted); line-height: 1.45; }
.request-summary { display: flex; flex-wrap: wrap; gap: 5px 15px; align-items: baseline; border-block: 1px solid var(--line); padding: 12px 0; margin: 17px 0; }
.request-summary strong, #request-reference { color: var(--ink); }
.request-summary span { color: var(--muted); font-size: .92rem; }
#request-form { display: block; padding: 0; margin: 0; }
#request-form label { display: block; font-size: .94rem; font-weight: 620; margin: 14px 0 5px; }
#request-form .small-note { margin: 13px 0; font-size: .87rem; color: var(--muted); }
#request-form .primary, #request-receipt .primary { width: 100%; }
#request-form .primary:disabled { opacity: .68; cursor: wait; }
.request-ref { padding: 16px 0; }
#request-reference { display: block; margin-top: 3px; font-variant-numeric: tabular-nums; }
.estimate-section :is(button,input):focus-visible, #request-dialog :is(button,input):focus-visible { outline: 3px solid #2874a5; outline-offset: 2px; }
@media (max-width: 650px) {
  .package-shared ul { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5px 8px; }
  .estimate-section { padding-block: 25px; }
  .estimate-intro { display: block; }
  .estimate-intro .estimate-print { margin-top: 3px; }
  .sample-invitation { flex-direction: column; align-items: stretch; }
  .estimate-color-band { grid-template-columns: 1fr; gap: 10px; margin-block: 12px 22px; }
  .package-toggle { grid-template-columns: 62px minmax(0,1fr) 22px; gap: 10px; padding-right: 10px; min-height: 65px; }
  .package-photo { height: 65px; }
  .package-copy { display: flex; flex-direction: column; align-items: start; gap: 3px; padding-block: 6px; }
  .package-caption { font-size: .88rem; }
  .package-indicator { width: 22px; height: 22px; }
  .package-details { grid-template-columns: minmax(0, 1fr); grid-template-areas: "advice" "inclusions"; padding: 14px; gap: 20px; }
  .package-advice { padding: 18px; }
  .package-inclusions { padding-inline: 3px; }
  .package-request { display: grid; gap: 10px; }
  .request-actions { display: grid; grid-template-columns: 1fr; }
}
@media (forced-colors: active) {
  .package-card.is-selected { outline: 2px solid Highlight; outline-offset: -2px; }
  .package-toggle[aria-current="true"] .package-indicator { border-color: Highlight; }
  .package-advice { border: 1px solid CanvasText; }
}
