/* CFEC Text Alerts — styling mirrored from cfec.com (Laurelhurst theme by Powerful Web).
   Palette + type lifted verbatim from https://www.cfec.com/wp-content/themes/laurelhurst/style.css
   so this program site is visually indistinguishable from the cooperative's main site. */

:root {
  --navy:        #192333;  /* headings, footer, secondary button */
  --green:       #009f5a;  /* CFEC green: links, primary button */
  --green-dark:  #00522e;  /* button hover */
  --mint:        #e7f8f1;  /* masthead strip, table stripe, rules */
  --page:        #f1f5fb;  /* page background */
  --text:        #302424;  /* body copy */
  --focus:       #127cbc;  /* focus ring (accessibility) */
  --white:       #fff;
  --muted:       #5b6472;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--page);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.25;
}
h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.6em; }
h4 { font-size: 1.4em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1.1em; }

p { margin: 0 0 1.1em; }

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

/* CFEC's distinctive accessible focus treatment */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  box-shadow: 0 0 0 8px rgba(0, 159, 90, .4);
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--navy); color: #fff; padding: 12px 20px; text-decoration: none;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* ── Masthead (utility strip) ─────────────────────────────────────────────── */
#masthead {
  background: var(--mint);
  font-size: 14px;
}
#masthead .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  align-items: center; justify-content: flex-end;
  min-height: 42px;
}
#masthead a { color: var(--navy); text-decoration: none; font-weight: 600; }
#masthead a:hover { text-decoration: underline; }

/* ── Header ───────────────────────────────────────────────────────────────── */
#header {
  background: var(--white);
  position: relative;
  border-bottom: 3px solid var(--mint);
}
#header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 90px; padding-top: 12px; padding-bottom: 12px;
}
#logo img { display: block; height: 62px; width: auto; max-width: 100%; }
#header nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
#header nav a {
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 6px 2px; border-bottom: 3px solid transparent;
}
#header nav a:hover, #header nav a[aria-current="page"] {
  color: var(--green-dark); border-bottom-color: var(--green);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: #dfe6f0;
  padding: 52px 0 46px;
}
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero p { font-size: 1.15em; max-width: 44em; margin-bottom: 0; }
.hero .eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); background: var(--green); padding: 5px 12px; border-radius: 3px;
}

/* ── Main ─────────────────────────────────────────────────────────────────── */
main { padding: 46px 0 60px; }
.card {
  background: var(--white);
  border: 1px solid var(--mint);
  box-shadow: 0 20px 30px rgba(0, 0, 0, .06);
  padding: 34px;
  margin-bottom: 30px;
}
.card > :last-child { margin-bottom: 0; }

.cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

.lede { font-size: 1.1em; }

hr { border: none; border-top: 1px solid var(--mint); margin: 26px 0; }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1.1em; }
ul.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 16px; height: 9px; border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green); transform: rotate(-45deg);
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 14px; display: block; }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--white);
  border: 1px solid #c8d2e0; border-radius: 3px;
}
input:focus, select:focus, textarea:focus { border-color: var(--focus); }
textarea { min-height: 110px; resize: vertical; }

.field { margin-bottom: 20px; }

.consent {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--mint); border-left: 4px solid var(--green);
  padding: 18px 20px; margin: 24px 0;
}
.consent input[type="checkbox"] {
  width: 22px; height: 22px; margin: 3px 0 0; flex: 0 0 22px; accent-color: var(--green);
}
.consent label { font-weight: 400; color: var(--text); font-size: 15px; margin: 0; }

.button {
  display: inline-block; font: inherit; font-size: 16px; font-weight: 600;
  padding: 14px 30px; border: 2px solid rgba(0, 0, 0, .05); border-radius: 3px;
  cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s;
}
.button.primary   { color: var(--navy); background: var(--green); }
.button.primary:hover   { color: #fff; background: var(--green-dark); }
.button.secondary { color: #fff; background: var(--navy); }
.button.secondary:hover { color: #fff; background: var(--green-dark); }
.button[disabled] { opacity: .55; cursor: not-allowed; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.msg { padding: 16px 20px; border-radius: 3px; margin: 20px 0 0; font-size: 15px; }
.msg.ok    { background: var(--mint); border-left: 4px solid var(--green); color: var(--navy); }
.msg.error { background: #fdecec; border-left: 4px solid #c0392b; color: #7d211a; }
.msg[hidden] { display: none; }

/* ── Legal / policy typography ────────────────────────────────────────────── */
.legal h2 { font-size: 1.45em; margin-top: 1.6em; }
.legal h3 { font-size: 1.15em; margin-top: 1.3em; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; }

.sms-sample {
  background: var(--mint); border-left: 4px solid var(--green);
  padding: 14px 18px; margin: 0 0 14px;
  font-size: 15px;
}
.sms-sample strong { color: var(--navy); display: block; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }

table.rates { width: 100%; border-collapse: collapse; margin-bottom: 1.1em; }
table.rates th, table.rates td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--mint); }
table.rates th { color: var(--navy); }
table.rates tr:nth-child(2n) td { background: var(--mint); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
#footer { background: var(--navy); color: #cbd4e2; padding: 46px 0 30px; font-size: 15px; }
#footer a { color: #fff; text-decoration: underline; }
#footer h4 { color: #fff; font-size: 15px; margin-bottom: .6em; }
#footer p { margin: 0 0 .8em; }
#footer .fgrid { display: grid; grid-template-columns: 130px repeat(4, 1fr); gap: 30px; }
@media (max-width: 980px) { #footer .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { #footer .fgrid { grid-template-columns: 1fr; } }
#footer .flogo img { height: 74px; width: auto; }
#footer hr { border-top: 1px solid rgba(255, 255, 255, .16); margin: 30px 0 18px; }
#footer .legal-row {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
  font-size: 13px; color: #9fadc0;
}
#footer .legal-row a { color: #cbd4e2; }
