/* Ryan Hayes Insurance Brokerage - quote page
   Colors, type and header/footer match the main site (index.html, staff.html). */
:root {
  --primary: #0f172a;
  --secondary: #1e293b;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --text-light: #64748b;
  --text-body: #334155;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --line: #e2e8f0;
  --field-line: #cbd5e1;
  --err: #b91c1c;
  --err-bg: #fef2f2;
  --ok: #15803d;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  color: var(--primary);
  line-height: 1.6;
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- header (same as main site) ---------- */
.site-header {
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 1.25rem 0; position: sticky; top: 0; z-index: 1000;
}
.site-header nav { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--primary); text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--secondary); font-weight: 600; font-size: 0.875rem; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }

/* ---------- hero ---------- */
.page-hero {
  padding: 80px 0 120px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white); text-align: center;
}
.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #fb923c; margin-bottom: 1rem;
}
.page-hero h1 { font-size: 3.25rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.page-hero p:last-child { font-size: 1.15rem; font-weight: 300; opacity: .9; max-width: 640px; margin: 0 auto; }

/* ---------- layout ---------- */
.quote-section { padding: 0 0 100px; }
.quote-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 64px; align-items: start;
}
.card { margin-top: -72px; }          /* card overlaps the hero band */
.pitch { padding-top: 56px; }

/* ---------- left column ---------- */
.pitch h2 { font-size: 2rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; max-width: 520px; }
.lede { font-size: 1.05rem; color: var(--text-light); max-width: 520px; margin-bottom: 2.25rem; }

.features { list-style: none; display: grid; gap: 1.5rem; max-width: 520px; margin-bottom: 2.5rem; }
.features li { display: flex; gap: 16px; }
.features h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.features p { font-size: 0.925rem; color: var(--text-light); line-height: 1.55; }

.ficon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px;
  background: #fff7ed; display: grid; place-items: center; color: var(--accent);
}
.ficon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.lines {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.75rem 2rem; max-width: 520px;
}
.lines-title { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary); margin-bottom: 1rem; }
.lines ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; }
.lines li { display: flex; gap: 10px; font-size: 0.925rem; color: var(--text-light); }
.lines li::before { content: "✓"; color: var(--accent); font-weight: bold; }

/* ---------- card ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .35), 0 4px 6px -1px rgba(0,0,0,.05);
  overflow: hidden; scroll-margin-top: 100px;
}
.card-head { background: var(--primary); padding: 1.4rem 1.75rem; border-bottom: 3px solid var(--accent); }
.card-head h2 { color: var(--white); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.card-head p { color: #94a3b8; font-size: .825rem; margin-top: 2px; }
.card-body { padding: 1.6rem 1.75rem 1.4rem; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

.field { margin: 0 0 16px; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field label, .field legend {
  display: block; padding: 0; margin: 0 0 6px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.req { color: var(--accent); }
.opt { color: #94a3b8; font-weight: 600; }
.count { text-transform: none; letter-spacing: 0; color: #94a3b8; font-weight: 500; margin-left: 6px; }
.count.ok { color: var(--ok); }

input, select, textarea {
  width: 100%; font: 400 0.9rem var(--font-stack); color: var(--primary);
  background: var(--white); border: 1px solid var(--field-line); border-radius: 4px;
  height: 40px; padding: 0 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 100px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230f172a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 11px;
}
::placeholder { color: #94a3b8; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 65, 12, .15); }

.invalid input, .invalid select, .invalid textarea, input.invalid { border-color: var(--err); background-color: var(--err-bg); }
.invalid .prefix { border-color: var(--err); background-color: var(--err-bg); }
.invalid .prefix input { background-color: transparent; }
.err { margin: 5px 0 0; font-size: 0.775rem; line-height: 1.35; color: var(--err); }
.err:empty { display: none; }

.with-btn { display: flex; gap: 6px; }
.with-btn input { flex: 1; min-width: 0; }

.prefix {
  display: flex; align-items: center; border: 1px solid var(--field-line); border-radius: 4px; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.prefix span { padding-left: 12px; font-size: 0.9rem; color: var(--text-light); }
.prefix input { border: 0; box-shadow: none !important; padding-left: 6px; background: transparent; height: 38px; }
.prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 65, 12, .15); }

.addr > input { margin-bottom: 8px; }
.addr-row { display: grid; grid-template-columns: 1fr 64px 92px; gap: 8px; }
.addr-row input[name$="_state"] { text-transform: uppercase; }

.check {
  display: flex; align-items: center; gap: 10px; margin: -4px 0 18px; cursor: pointer;
  font-size: 0.8rem; font-weight: 500; color: var(--text-body);
}
.check input { width: 16px; height: 16px; margin: 0; flex: 0 0 auto; accent-color: var(--accent); }

.btn-accent {
  background: var(--accent); color: var(--white); border: 0; border-radius: 4px; cursor: pointer;
  font: 700 0.8rem var(--font-stack); text-transform: uppercase; letter-spacing: .05em;
  transition: background .2s, transform .2s, opacity .2s;
}
.btn-accent:hover { background: var(--accent-dark); }
.btn-accent:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm { height: 40px; padding: 0 14px; font-size: 0.7rem; white-space: nowrap; }
.btn-block { width: 100%; height: 52px; margin-top: 4px; font-size: 0.9rem; }
.btn-block:hover { transform: translateY(-2px); }

.cf-turnstile { margin: 4px 0 16px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-msg {
  margin: 0 0 14px; padding: 10px 14px; font-size: 0.85rem; border-radius: 4px;
  background: var(--err-bg); color: var(--err); border: 1px solid #fecaca;
}

.fine { margin: 14px 0 0; font-size: 0.75rem; color: #94a3b8; text-align: center; }
.fine svg { display: inline-block; vertical-align: -1px; margin-right: 4px; width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }

.lookup-note { margin: 5px 0 0; font-size: 0.775rem; color: var(--ok); }

.done { text-align: center; padding: 56px 32px; }
.done-mark {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: #fff7ed; display: grid; place-items: center; color: var(--accent);
}
.done-mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }
.done p { color: var(--text-light); }

.card-foot { background: var(--bg-light); border-top: 1px solid var(--line); padding: 1.25rem 1.75rem; }
.foot-title { font-size: 0.7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-light); margin-bottom: .6rem; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offices a {
  display: block; text-decoration: none; color: var(--primary);
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: .65rem .9rem;
  transition: border-color .2s;
}
.offices a:hover { border-color: var(--accent); }
.offices small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--text-light); }
.offices strong { font-size: 1.05rem; font-weight: 800; }
.offices a:hover strong { color: var(--accent); }

/* ---------- footer (same as main site) ---------- */
.site-footer { padding: 100px 0; background: var(--primary); color: var(--white); }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.loc-box h3 { color: var(--accent); margin-bottom: 1.5rem; font-size: 2rem; }
.loc-box p { font-size: 1.1rem; opacity: .8; margin-bottom: .5rem; }
.loc-box a { color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.5rem; }
.copyright { margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; opacity: .6; font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .quote-grid { grid-template-columns: 1fr; gap: 0; }
  .card { order: -1; max-width: 560px; width: 100%; margin: -72px auto 0; }
  .pitch { padding-top: 64px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .page-hero { padding: 56px 0 104px; }
  .page-hero h1 { font-size: 2.4rem; }
  .loc-grid { grid-template-columns: 1fr; gap: 3rem; }
  .site-footer { padding: 72px 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .logo { font-size: 1rem; }
  .card-body, .card-head, .card-foot { padding-left: 1.25rem; padding-right: 1.25rem; }
  .row { grid-template-columns: 1fr; }
  .lines ul { grid-template-columns: 1fr; }
  .pitch h2 { font-size: 1.6rem; }
  textarea { min-height: 130px; }
}

/* CSLB lookup turned off. Delete this rule to bring the button back. */
#cslb-btn { display: none; }
