/*
 * /alarms/ — "Secure your home" quote form (#96). Builds on ../crimemap/pages.css (palette, nav, .btn, .field, .form,
 * FAQ, footer). Brand-blue buttons (#007BBE, hover #1F9FE0) like /book. Mobile first: the result card sits under
 * the form; side by side from 960px.
 */
:root { --brand: #007BBE; --brand-hi: #1F9FE0; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.al-hero { position: relative; padding: 44px 0 8px; overflow: hidden; }
.al-hero::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 620px; height: 620px; background: radial-gradient(circle, rgba(0,123,190,.22), transparent 62%); pointer-events: none; }
.al-hero .wrap { position: relative; }
.al-hero h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 800; }
.al-hero h1 em { font-style: normal; color: var(--brand-hi); }
.al-hero .lead { color: var(--soft); font-size: 17px; margin: 14px 0 0; max-width: 660px; }
.al-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; color: var(--soft); font-size: 14px; }
.al-points li { display: flex; align-items: center; gap: 8px; }
.al-points li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(0,123,190,.2); }

section.al-section { padding: 28px 0 72px; }
.al-layout { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.al-form { min-width: 0; }
.al-h { font-size: 17px; font-weight: 600; margin: 26px 0 12px; }
.al-h:first-of-type { margin-top: 0; }

.btn.blue { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(0,123,190,.3); }
.btn.blue:hover { background: var(--brand-hi); }
.btn[disabled] { opacity: .5; cursor: progress; transform: none; box-shadow: none; }

/* Property type tiles */
.al-tiles { border: 0; margin: 0 0 18px; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--field); border-radius: 16px; }
.al-tiles label { position: relative; min-width: 0; }
.al-tiles input { position: absolute; opacity: 0; pointer-events: none; }
.al-tiles span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 12px 6px; border-radius: 12px; cursor: pointer; color: var(--soft); transition: background .15s, color .15s; }
.al-tiles svg { width: 24px; height: 24px; }
.al-tiles b { font-size: 14px; font-weight: 600; }
.al-tiles input:checked + span { background: var(--brand); color: #fff; }
.al-tiles input:focus-visible + span { outline: 2px solid var(--brand-hi); outline-offset: 2px; }

.al-nums { grid-template-columns: repeat(4, 1fr); }

/* Options */
.al-opts { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.al-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--field); cursor: pointer; transition: border-color .15s, background .15s; }
.al-opt input { -webkit-appearance: auto; appearance: auto; flex-shrink: 0; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.al-opt b { display: block; font-size: 15px; font-weight: 600; }
.al-opt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.al-opt:hover { border-color: #4C515E; }
.al-opt:has(input:checked) { border-color: var(--brand); background: rgba(0,123,190,.12); }
.al-opt:focus-within { outline: 2px solid var(--brand-hi); outline-offset: 2px; }

.field input.is-error, .field textarea.is-error { border-color: #F0868A; }

/* Result */
.al-result { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.al-result h2 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.al-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--soft); }
.al-list li { display: flex; gap: 10px; }
.al-list li::before { content: '✓'; color: #6FD3A0; font-weight: 700; }
#al-done .tick { width: 50px; height: 50px; border-radius: 50%; margin: 0 0 12px; display: grid; place-items: center; background: rgba(48,164,108,.16); }
#al-done:focus { outline: none; }
.al-range { margin: 6px 0 4px; }
.al-range b { display: block; font-size: clamp(26px, 4vw, 32px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.al-range small { color: var(--muted); font-size: 13px; }
.al-sub { margin: 4px 0 0; color: var(--soft); font-size: 14px; }
.al-callback { margin: 18px 0 14px; padding: 14px 16px; border-radius: 14px; background: rgba(0,123,190,.14); border: 1px solid rgba(0,123,190,.45); display: grid; gap: 4px; font-size: 14px; color: var(--soft); }
.al-callback b { color: #fff; font-size: 15px; }
#al-ref { color: #fff; letter-spacing: .04em; }
#al-again { margin-top: 10px; width: 100%; }

@media (min-width: 640px) {
  .al-opts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .al-hero { padding: 64px 0 12px; }
  .al-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
  .al-result { position: sticky; top: 88px; }
}
@media (max-width: 600px) {
  .al-nums { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .al-tiles b { font-size: 13px; }
  .form-actions .btn { flex: 1 1 100%; }
}
