/* My Miller Lights — quote page.
 * Loaded after home.css, which brings the tokens, masthead, footer, buttons,
 * falling snow and light strings. This adds the navy form: white boxes in two
 * columns, property-type picture tiles, the photo picker and the thank-you. */

.quote-page { background: var(--color-night); }

.qp { position: relative; isolation: isolate; overflow: hidden; padding-block: calc(var(--space-3xl) + var(--space-sm)) var(--space-3xl); color: white;
  background:
    radial-gradient(ellipse 70% 45% at 50% 22%, oklch(45% 0.085 248 / 0.75), transparent 72%),
    linear-gradient(#0F2F52, var(--color-night)); } /* the logo's navy */
.qp__inner { position: relative; z-index: var(--z-raised); max-width: 52rem; }
.qp .string--top { top: 22px; } /* below the masthead's icicles */
.qp__title { max-width: none; margin-inline: auto; text-align: center; color: white; font-family: var(--font-heavy); font-weight: 900; font-size: clamp(2.5rem, 4vw + 1rem, 4.25rem); line-height: 1; text-shadow: 0 2px 24px oklch(10% 0.03 260 / 0.6); }
.qp__lead { margin: var(--space-md) auto var(--space-2xl); max-width: 44ch; text-align: center; font-size: var(--text-lead); color: oklch(90% 0.01 85); }

/* ---- fields ---- */
.qp__form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.qp__form fieldset + fieldset { margin-top: var(--space-2xl); }
.qp__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.qf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qf--wide { grid-column: 1 / -1; }
.qf label { font-size: var(--text-sm); font-weight: 600; color: oklch(92% 0.01 85); }
.optional { font-weight: 400; color: var(--color-night-muted); }
/* 16px text so iOS does not zoom into the box (PROJECT.md). */
.qf input, .qf select, .qf textarea { width: 100%; min-height: 52px; padding: 0 var(--space-md); border: 2px solid transparent; border-radius: 8px; background: white; color: var(--color-ink); font: inherit; font-size: 1rem; box-shadow: 0 8px 16px -10px oklch(0% 0 0 / 0.7); }
.qf textarea { min-height: 104px; padding-block: var(--space-sm); resize: vertical; }
.qf select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z' fill='%23101828'/%3E%3C/svg%3E") right 16px center / 12px no-repeat; }
.qf input:focus-visible, .qf select:focus-visible, .qf textarea:focus-visible { outline: 3px solid var(--color-bulb-light); outline-offset: 2px; }
.qp__form [aria-invalid="true"] { border-color: oklch(62% 0.21 25); }
.field-error { font-size: var(--text-sm); font-weight: 600; color: oklch(82% 0.11 25); }
.field-error:empty { display: none; }
.qp__hint { font-size: var(--text-sm); color: var(--color-night-muted); }
.qp__subhead { display: block; width: 100%; margin-bottom: var(--space-md); padding: 0; text-align: center; font-family: var(--font-heavy); font-size: var(--text-lg); font-weight: 800; color: white; }

/* ---- property type: picture tiles, pick one ---- */
/* Bottom-aligned, so the photos line up when a label wraps to two lines. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: var(--space-md); }
.tile { position: relative; display: flex; flex-direction: column; gap: var(--space-xs); cursor: pointer; text-align: center; }
.tile input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tile span { order: -1; font-weight: 700; color: white; }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 3px solid oklch(100% 0 0 / 0.15); border-radius: 10px; box-shadow: 0 10px 20px -12px oklch(0% 0 0 / 0.8); transition: border-color var(--dur-micro) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.tile:hover img { border-color: oklch(100% 0 0 / 0.55); transform: translateY(-2px); }
.tile input:checked ~ img { border-color: var(--color-bulb-light); box-shadow: 0 0 0 3px oklch(78% 0.05 245 / 0.45), 0 10px 20px -12px oklch(0% 0 0 / 0.8); }
.tile input:checked ~ span { color: var(--color-bulb-light); }
.tile input:focus-visible ~ img { outline: 3px solid white; outline-offset: 3px; }
.tiles[aria-invalid="true"] .tile img { border-color: oklch(62% 0.21 25); }
.tiles + .field-error { display: block; margin-top: var(--space-sm); text-align: center; }

/* ---- photos ---- */
.qp__photos { text-align: center; }
.photo-picker { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin-top: var(--space-md); padding: var(--space-md) var(--space-2xl); border: 2px dashed oklch(100% 0 0 / 0.45); border-radius: 10px; color: white; font-weight: 700; cursor: pointer; transition: border-color var(--dur-micro) var(--ease-out); }
.photo-picker small { font-weight: 500; color: var(--color-night-muted); }
.photo-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photo-picker:hover, .photo-picker:focus-within { border-color: var(--color-bulb-light); }
.photo-picker:focus-within { outline: 3px solid var(--color-bulb-light); outline-offset: 3px; }
.photo-picker[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.qp__photos .field-error { display: block; margin-top: var(--space-sm); }
.photo-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--space-sm); margin: var(--space-md) 0 0; padding: 0; text-align: left; }
.photo-list:empty { display: none; }
.photo-list li { overflow: hidden; border-radius: 8px; background: oklch(100% 0 0 / 0.07); }
.photo-list img, .no-preview { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--color-night-2); }
.no-preview { display: grid; place-items: center; font-size: var(--text-xs); color: var(--color-night-muted); }
.photo-list li.processing img { opacity: 0.4; }
.photo-meta { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 6px 8px; font-size: var(--text-xs); color: var(--color-night-ink); }
.photo-meta button { padding: 2px 6px; border: 1px solid oklch(100% 0 0 / 0.4); border-radius: 6px; background: none; color: white; font: inherit; font-size: var(--text-xs); cursor: pointer; }

/* ---- consent, spam check, send ---- */
.qp__check { display: flex; align-items: flex-start; gap: var(--space-sm); margin-top: var(--space-lg); font-weight: 600; color: white; cursor: pointer; }
.qp__check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--color-bulb); }
.qp__check + .field-error { display: block; margin-top: 6px; }
.turnstile-box { min-height: 65px; margin-top: var(--space-lg); }
.qp__progress { display: flex; flex-direction: column; gap: 6px; margin-top: var(--space-lg); font-weight: 600; color: white; }
.qp__progress progress { width: 100%; height: 10px; accent-color: var(--color-bulb-light); }
.qp__submit { display: flex; width: 100%; min-height: 64px; margin-top: var(--space-xl); font-size: var(--text-lg); }
.qp__submit:disabled { opacity: 0.7; cursor: progress; }
.qp__privacy { margin-top: var(--space-md); text-align: center; font-size: var(--text-sm); color: var(--color-night-muted); }
.qp__privacy a { color: inherit; }
.qp__call { margin-top: var(--space-2xl); text-align: center; font-size: clamp(1.125rem, 1vw + 0.9rem, 1.5rem); color: white; }
.qp__call a { color: white; font-weight: 800; text-decoration: none; white-space: nowrap; }
.qp__call a:hover { color: var(--color-bulb-light); }

/* ---- messages ---- */
.qp__notice { margin-bottom: var(--space-xl); padding: var(--space-md) var(--space-lg); border-radius: 10px; background: white; color: var(--color-ink); }
.qp__notice--error { border-left: 6px solid oklch(55% 0.22 27); }
.qp__notice:focus { outline: 3px solid var(--color-bulb); outline-offset: 3px; }
.qp__notice h2 { margin-bottom: var(--space-xs); font-size: var(--text-lg); }
.qp__notice ul { margin: 0; padding-left: 1.2em; }
.qp__notice a { color: oklch(48% 0.2 27); font-weight: 600; }

.qp__thanks { padding: var(--space-2xl) var(--space-xl); border: 1px solid oklch(100% 0 0 / 0.14); border-radius: var(--radius-box); background: oklch(100% 0 0 / 0.06); text-align: center; }
.qp__thanks h2 { margin-inline: auto; font-size: clamp(2rem, 3vw + 1rem, 3rem); color: white; }
.qp__thanks h2:focus { outline: none; }
.qp__thanks p { max-width: none; margin-top: var(--space-sm); color: oklch(90% 0.01 85); }
.qp__thanks .qp__promise { margin-top: var(--space-md); font-size: var(--text-lead); font-weight: 700; color: var(--color-bulb-light); }
.qp__thanks a { color: white; }

@media (max-width: 40rem) {
  .qp { padding-top: var(--space-3xl); }
  .qp__grid { grid-template-columns: minmax(0, 1fr); }
  .tiles { gap: var(--space-xs); }
  .tile span { font-size: var(--text-sm); }
  .photo-picker { display: flex; }
}
