/* Contact page: the PoolQuote-style pool request, in Mars Pools colors. */

.contact-layout { display: grid; gap: 28px; align-items: start; padding-bottom: clamp(72px, 10vw, 120px); }
@media (min-width: 1020px) { .contact-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } }
.contact-aside { display: grid; gap: 16px; }
@media (min-width: 1020px) { .contact-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 18px; }
.aside-card h2 { margin: 0; font: 500 24px/1.2 var(--serif); }
.aside-card p { margin: 0; color: var(--muted); font-size: 15px; }
.aside-photo { border-radius: var(--radius); overflow: hidden; position: relative; }
.aside-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.aside-photo::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(6, 17, 26, .7), transparent); pointer-events: none; }
.aside-photo span { z-index: 1; position: absolute; left: 14px; bottom: 14px; right: 14px; color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }

/* Card */
.rq { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); overflow: clip; }
.rq-brand { display: flex; align-items: center; gap: 12px; padding: 18px clamp(18px, 3vw, 28px); border-bottom: 1px solid var(--line); }
.rq-brand-logo { width: auto; height: 46px; flex: none; }
.rq-brand-copy { display: grid; line-height: 1.2; min-width: 0; }
.rq-brand-copy strong { font-size: 15.5px; }
.rq-brand-copy small { color: var(--muted); font-size: 13px; }
.rq-tag { margin-left: auto; padding: 5px 11px; border-radius: 999px; background: var(--lagoon-soft); color: var(--sea); font-size: 12px; font-weight: 700; }

.rq-progress { position: sticky; top: var(--header-h); z-index: 5; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 14px clamp(18px, 3vw, 28px) 12px; border-bottom: 1px solid var(--line); }
.rq-progress-copy { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.rq-progress-copy strong { font-size: 15px; }
.rq-progress-copy span { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.rq-progress-bar { margin-top: 10px; height: 6px; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.rq-progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--lagoon), var(--sea)); transition: width .5s var(--ease); }

.rq-intro { margin: 0; padding: 20px clamp(18px, 3vw, 28px) 0; color: var(--muted); font-size: 15px; }
.rq-section { padding: 26px clamp(18px, 3vw, 28px) 28px; border-bottom: 1px solid var(--line); display: grid; gap: 16px; }
.rq-section h2 { margin: 0; display: flex; align-items: center; gap: 12px; font: 500 22px/1.2 var(--serif); }
.rq-step { width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--sand-2); color: var(--ink); font: 700 13px/1 var(--sans); transition: background-color .25s, color .25s; }
.rq-step svg { width: 14px; height: 14px; }
.rq-step[data-done] { background: var(--ok); color: #fff; }

.rq-fields { display: grid; gap: 14px; }
@media (min-width: 640px) { .rq-fields { grid-template-columns: 1fr 1fr; } .rq-field--wide { grid-column: 1 / -1; } }
.rq-field { display: grid; gap: 6px; }
.rq-field > span { font-weight: 700; font-size: 14px; }
.rq-field em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 4px; font-size: 13px; }
.rq-field input, .rq-field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid #d9d1c3; background: #fffdfa;
  font-size: 16px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.rq-field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.rq-field input:focus, .rq-field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(24, 176, 193, .18); background: #fff; }
.rq-field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 24, .1); }
.rq-error { color: var(--danger); font-size: 13.5px; font-weight: 600; margin: 0; }
.rq-count { color: var(--muted); font-size: 13px; }
.rq-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pool cards */
.rq-pools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .rq-pools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.rq-pool { position: relative; display: grid; grid-template-rows: auto auto; padding: 0; border: 2px solid transparent; border-radius: 16px; background: var(--sand); cursor: pointer; overflow: hidden; text-align: left; box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.rq-pool:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.rq-pool[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 8px 22px -12px rgba(11, 27, 43, .5); }
.rq-pool-image { aspect-ratio: 1; display: grid; place-items: center; background: var(--sand-2); overflow: hidden; }
.rq-pool-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rq-pool:hover .rq-pool-image img { transform: scale(1.05); }
.rq-pool-image .rq-unsure { font: 500 40px/1 var(--serif); color: var(--muted); }
.rq-pool-name { padding: 10px 12px 12px; font-weight: 700; font-size: 14px; line-height: 1.25; background: var(--paper); }
.rq-pool-check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff; animation: pop .25s var(--ease); }
.rq-pool-check svg { width: 14px; height: 14px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.rq-label { margin: 6px 0 0; font-weight: 700; font-size: 14px; }
.rq-extras-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-top: 6px; }
.rq-extras-head .rq-label { margin: 0; }
.rq-extras-head .rq-hint { font-size: 13.5px; }

/* Extras: picture cards, multi-select */
.rq-extras-wrap { container-type: inline-size; display: grid; gap: 12px; }
.rq-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container (min-width: 480px) { .rq-extras { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@container (min-width: 640px) { .rq-extras { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rq-extra {
  position: relative; display: grid; grid-template-rows: auto 1fr; align-content: stretch; padding: 0; border: 2px solid transparent; border-radius: 16px; background: var(--paper);
  cursor: pointer; overflow: hidden; text-align: left; box-shadow: 0 0 0 1px var(--line);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.rq-extra:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.rq-extra:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; }
.rq-extra[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 8px 22px -12px rgba(11, 27, 43, .5); }
.rq-extra-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.rq-extra-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rq-extra:hover .rq-extra-image img { transform: scale(1.06); }
.rq-extra-text { display: grid; align-content: start; gap: 3px; padding: 9px 12px 11px; font-weight: 700; font-size: 14px; line-height: 1.25; }
.rq-extra-text small { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rq-extra-check {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .88); box-shadow: 0 0 0 1.5px rgba(11, 27, 43, .18), 0 2px 6px rgba(11, 27, 43, .18); color: transparent;
  transition: background-color .2s, color .2s;
}
.rq-extra-check svg { width: 14px; height: 14px; }
.rq-extra[aria-pressed="true"] .rq-extra-check { background: var(--ink); color: #fff; box-shadow: 0 0 0 3px #fff; animation: pop .25s var(--ease); }

/* Photos */
.rq-hint { margin: 0; color: var(--muted); font-size: 14.5px; }
.rq-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .rq-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rq-photo, .rq-photo-add { position: relative; aspect-ratio: 1; margin: 0; border-radius: 14px; overflow: hidden; }
.rq-photo { background: var(--sand-2); animation: pop .25s var(--ease); }
.rq-photo img { width: 100%; height: 100%; object-fit: cover; }
.rq-photo-blank { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; padding: 8px; }
.rq-photo-ok { position: absolute; left: 8px; bottom: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.rq-photo-ok svg { width: 12px; height: 12px; }
.rq-photo-remove { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(11, 27, 43, .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.rq-photo-remove svg { width: 14px; height: 14px; }
.rq-photo-state { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 5px 8px; border: 0; border-radius: 10px; background: rgba(11, 27, 43, .72); color: #fff; font-family: inherit; font-weight: 700; font-size: 11.5px; line-height: 1.3; text-align: center; }
.rq-photo.is-uploading img, .rq-photo.is-waiting img { opacity: .6; }
.rq-photo-retry { background: var(--mars); cursor: pointer; }
.rq-photo-add { display: grid; place-items: center; align-content: center; gap: 6px; border: 2px dashed #d3c9b8; background: var(--sand); color: var(--ink-2); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.rq-photo-add:hover { border-color: var(--sea); background: var(--lagoon-soft); }
.rq-photo-add svg { width: 24px; height: 24px; color: var(--sea); }
.rq-photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rq-photo-add.is-drag { border-color: var(--sea); background: var(--lagoon-soft); }

/* Budget presets */
.rq-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.rq-preset { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--sand); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.rq-preset:hover { border-color: var(--ink); }
.rq-preset[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Submit */
.rq-submit { padding: 24px clamp(18px, 3vw, 28px) 28px; display: grid; gap: 10px; text-align: center; }
.rq-send { width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--mars); color: #fff; font-weight: 800; font-size: 16.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 12px 28px -12px rgba(212, 83, 44, .75); transition: background-color .2s, transform .2s var(--ease); }
.rq-send:hover { background: var(--mars-dark); transform: translateY(-1px); }
.rq-send[disabled] { opacity: .7; cursor: progress; transform: none; }
.rq-submit small { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.rq-submit small svg { width: 14px; height: 14px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sent */
.rq-sent { padding: clamp(40px, 7vw, 72px) clamp(20px, 4vw, 48px); display: grid; justify-items: center; text-align: center; gap: 16px; }
.rq-sent-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; animation: pop .4s var(--ease); box-shadow: 0 0 0 10px rgba(31, 138, 91, .12); }
.rq-sent-mark svg { width: 30px; height: 30px; }
.rq-sent h2 { margin: 6px 0 0; font: 500 clamp(30px, 4vw, 40px)/1.1 var(--serif); }
.rq-sent p { margin: 0; color: var(--muted); max-width: 46ch; }
.rq-summary { width: 100%; max-width: 520px; margin-top: 10px; text-align: left; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.rq-summary-head { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--sand); }
.rq-summary-head img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.rq-summary-head b { display: block; }
.rq-summary-head span { color: var(--muted); font-size: 14px; }
.rq-summary dl { margin: 0; padding: 6px 14px 12px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; }
.rq-summary dt { color: var(--muted); font-weight: 600; }
.rq-summary dd { margin: 0; font-weight: 600; }
.rq-sent .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.rq-demo { margin-top: 4px; font-size: 12.5px; color: var(--muted); opacity: .8; }
