*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #c0392b;        /* red — accents: buttons, checks, focus */
  --green-dark: #163a6b;   /* navy blue — nav, footer, CTA band */
  --green-light: #eef4fd;  /* light blue tint — alternating section bg */
  --gold: #c0392b;         /* red — logo "Cash", CTAs */
  --accent-dark: #9b2620;  /* deep red hover */
  --text: #1a1a1a;
  --muted: #555;
  --border: #ddd;
  --white: #fff;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
}
html { scroll-behavior: smooth; }

/* MA referral bar — shown via JS only when ?from=ma */
.ma-bar { display: none; background: var(--green-dark); height: 44px; line-height: 44px; text-align: center; padding: 0 16px; }
.ma-bar a { color: #ff5a48; text-decoration: none; font-size: 18px; font-weight: 700; white-space: nowrap; }
.ma-bar a:hover { text-decoration: underline; }

/* NAV */
nav { background: var(--green-dark); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--white); letter-spacing: -0.5px; text-decoration: none; }
.logo span { color: #ff5a48; }
.broker-line { font-size: 0.72rem; color: rgba(255,255,255,0.8); margin-top: 2px; letter-spacing: 0.2px; }
nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; }
nav a:hover { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-phone { font-weight: 700; color: var(--white); white-space: nowrap; }
@media (max-width: 640px) { .nav-section { display: none; } }

/* HERO */
.hero { background: linear-gradient(135deg, #12305a 0%, #1c477f 100%); color: var(--white); padding: 56px 24px 56px; text-align: center; }
.hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); font-weight: 800; line-height: 1.2; max-width: 840px; margin: 0 auto 14px; }
.hero h1 span { color: #ff5a48; }
.hero p { font-size: 1.12rem; opacity: 0.92; max-width: 650px; margin: 0 auto 28px; }
.hero-cta { display: inline-block; background: var(--gold); color: var(--white); text-decoration: none; padding: 15px 38px; border-radius: 8px; font-size: 1.1rem; font-weight: 700; }
.hero-cta:hover { background: var(--accent-dark); }
.hero-phone { display: block; margin-top: 18px; color: var(--white); font-weight: 700; font-size: 1.15rem; text-decoration: none; }

/* SECTIONS */
section { padding: 56px 24px; }
.section-inner { max-width: 900px; margin: 0 auto; }
.why-bg { background: var(--green-light); }

/* PROSE (article body) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.45rem; font-weight: 800; margin: 34px 0 12px; color: var(--green-dark); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; font-size: 1.02rem; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: #111; }

/* 3 OPTIONS */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 18px 0 4px; }
.why-card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: 10px; padding: 22px; }
.why-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; color: var(--green-dark); }
.why-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* CROSS-LINKS */
.crosslinks { max-width: 760px; margin: 30px auto 0; background: var(--green-light); border-radius: 10px; padding: 18px 24px; }
.crosslinks strong { display: block; margin-bottom: 8px; color: var(--green-dark); }
.crosslinks a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.crosslinks a:hover { text-decoration: underline; }

/* FORM CARD */
.form-card { background: var(--white); border-radius: 12px; padding: 32px; max-width: 520px; margin: 0 auto; box-shadow: 0 8px 40px rgba(0,0,0,0.25); color: var(--text); text-align: left; }
.form-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; color: var(--green-dark); }
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
input, select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 1rem; transition: border-color 0.2s; }
input:focus, select:focus { outline: none; border-color: var(--green); }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1rem; }
.input-prefix input { padding-left: 26px; }

/* CONDITION STARS */
.star-row { display: flex; gap: 8px; margin-top: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-option { display: none; }
.star-option + label { font-size: 1.6rem; cursor: pointer; color: #ccc; margin: 0; line-height: 1; transition: color 0.1s; }
.star-row input:checked ~ label, .star-row label:hover, .star-row label:hover ~ label { color: var(--gold); }
.condition-hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.btn { display: block; width: 100%; padding: 15px; background: var(--green); color: var(--white); border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; margin-top: 8px; transition: background 0.2s; }
.btn:hover { background: var(--accent-dark); }
.form-note { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

#success-msg { display: none; text-align: center; padding: 24px; }
#success-msg h3 { font-size: 1.3rem; color: var(--green-dark); margin-bottom: 8px; }
#success-msg p { color: var(--muted); }

/* FOOTER */
footer { background: #111; color: rgba(255,255,255,0.5); text-align: center; padding: 28px 24px; font-size: 0.82rem; }
footer a { color: rgba(255,255,255,0.5); }
.footer-nav { max-width: 900px; margin: 0 auto 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer-nav a { color: rgba(255,255,255,0.72); font-size: 0.82rem; text-decoration: none; }
.footer-nav a:hover { color: #fff; }

@media (max-width: 600px) {
  .form-card { padding: 24px 20px; }
  .ma-bar a { font-size: 16px; }
}
