/* Peril Adjusters — weather.periladjusters.com
   Mobile-first. Single column, max-width 640px on desktop. */

:root {
  --navy: #1a3a2a;
  --navy-ink: #0e1f17;
  --gold: #c89b3c;
  --moss: #8fbf8f;
  --bg: #fafaf7;
  --surface: #ffffff;
  --border: #e4e4dc;
  --text: #1f2a24;
  --muted: #5a6660;
  --error: #a6331f;
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--navy); }
a:hover { text-decoration: underline; }

.site-header {
  background: var(--navy);
  color: #fff;
  padding: 16px 20px;
  border-bottom: 4px solid var(--gold);
}
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand-mark {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px; font-weight: 700; letter-spacing: 1.2px;
}
.brand-tag {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px; color: var(--moss); letter-spacing: 2px; text-transform: uppercase;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 24px 20px 80px; }

.hero h1 {
  font-size: 26px; line-height: 1.25;
  margin: 16px 0 8px;
  color: var(--navy-ink);
}
.hero .lede {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.hidden { display: none !important; }

/* Form */
form { display: flex; flex-direction: column; gap: 14px; }
label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
input[type="text"], input[type="email"] {
  font: inherit;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px; /* min 16px to prevent iOS zoom */
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  min-height: 44px;
  width: 100%;
}
input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--navy);
}

button, .btn {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
button:disabled { opacity: 0.45; cursor: not-allowed; }

#submit-btn, .btn-primary {
  background: var(--navy); color: #fff;
}
#submit-btn:hover:not(:disabled), .btn-primary:hover { background: var(--navy-ink); }

.btn-ghost {
  background: transparent; color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: rgba(26,58,42,0.06); }

.actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 24px;
}
@media (min-width: 480px) {
  .actions { flex-direction: row; }
  .actions .btn { flex: 1; }
}

.error {
  color: var(--error);
  background: #fdeeea;
  border: 1px solid #f2c7bd;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  margin: 12px 0 0;
}

/* Progress list */
.progress {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
.progress li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.progress li .dot {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--border); background: #fff; flex-shrink: 0;
}
.progress li.active { color: var(--text); }
.progress li.active .dot {
  border-color: var(--gold);
  animation: pulse 1s ease-in-out infinite;
}
.progress li.done { color: var(--navy); }
.progress li.done .dot {
  background: var(--navy); border-color: var(--navy);
  position: relative;
}
.progress li.done .dot::after {
  content: ""; position: absolute; left: 3px; top: 1px;
  width: 4px; height: 7px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
@keyframes pulse { 50% { opacity: 0.4; } }

/* Results */
#results-title { margin-top: 0; color: var(--navy-ink); }
.results-sub {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  margin: 0 0 16px;
}
.result-section { margin-bottom: 24px; }
.result-section h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  padding: 8px 12px;
  margin: 0 0 12px;
  border-radius: 4px;
}
.section-body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  color: var(--text);
}
.section-body.prose { white-space: normal; }

/* CTA footer */
.cta-footer {
  background: linear-gradient(180deg, #1a3a2a 0%, #0e1f17 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 28px;
}
.cta-footer .cta-lead {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 6px;
}
.cta-footer .cta-body {
  font-size: 15px;
  margin: 0;
}
.cta-footer a { color: var(--gold); font-weight: 700; }

.site-footer {
  background: var(--navy-ink);
  color: #a6b0ab;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  text-align: center;
  padding: 16px 20px;
  letter-spacing: 0.4px;
}
.site-footer a { color: var(--moss); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Google Places autocomplete container (legacy widget, kept for fallback) */
.pac-container {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.pac-item { padding: 8px 12px; }

/* PlaceAutocompleteElement (new web component — google.maps.places) */
.ac-host { width: 100%; }
gmp-place-autocomplete {
  width: 100%;
  display: block;
  font: inherit;
}
/* Web component exposes limited styling hooks. Browsers honor the element's
   default styling for its internal input; we ensure the wrapper matches our
   field dimensions so it reads visually like a peer of the email input below. */
