/* GSE Insurance Info — styles
   Brand: GSE blue gradient background, white logo lockup in the nav,
   white wordmark in the footer, white cards for content. */

:root {
  --blue-deep: #0226c5;   /* sampled from brand gradient */
  --blue-mid:  #176ab8;
  --teal:      #2095b6;
  --ink:       #101320;
  --ink-soft:  #555c6e;
  --white:     #fff;
  --line:      #e2e5ee;
  --ok:        #0a7d33;
  --err:       #b32d20;
}

* { box-sizing: border-box; }

html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: "Archivo", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  /* CSS fallback first, brand image on top */
  background-color: var(--blue-deep);
  background-image: url("/assets/bg-gradient.jpg"),
    linear-gradient(115deg, #0a4ec2 0%, #0226c5 45%, #2095b6 100%);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Header — logo sits directly on the gradient */
.topbar {
  padding: 26px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar img { height: 48px; display: block; }
.topbar .tag {
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 40px) 20px 64px;
  flex: 1;
}
.wrap.wide { max-width: 1040px; }

h1 {
  font-family: "Archivo Expanded", "Archivo", Helvetica, sans-serif;
  font-weight: 800;
  font-stretch: expanded;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.08;
  margin: 0 0 10px;
  color: var(--white);
}
.lede { color: rgba(255,255,255,.88); margin: 0 0 28px; max-width: 56ch; }

/* Card */
.card {
  background: var(--white);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(2, 20, 90, 0.35);
  padding: clamp(22px, 4vw, 36px);
}
.card + .card { margin-top: 24px; }
.card h1 { color: var(--ink); }

/* Forms */
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.hint { font-size: 13px; color: var(--ink-soft); margin: 4px 0 0; }

input, select {
  width: 100%;
  font: inherit;
  padding: 13px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}
select {
  /* match the text inputs' height exactly instead of the OS default */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23101320' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.field { margin-bottom: 22px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .row2, .row3 { grid-template-columns: 1fr; } }
label .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-soft); }

button, .btn {
  display: inline-block;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--blue-deep);
  color: var(--white);
  border: 2px solid var(--blue-deep);
  border-radius: 2px;
  padding: 15px 30px;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { background: #021c97; border-color: #021c97; }
button:disabled { opacity: 0.5; cursor: wait; }
.btn-ghost { background: var(--white); color: var(--blue-deep); }
.btn-ghost:hover { background: #eef2ff; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* Messages */
.msg { padding: 14px 16px; border: 1.5px solid; border-radius: 2px; margin: 0 0 22px; font-size: 15px; }
.msg-err { border-color: var(--err); color: var(--err); background: #fdf3f1; }
.msg-ok { border-color: var(--ok); color: var(--ok); background: #f0f9f3; }

.hidden { display: none !important; }

/* Thank-you check */
.bigcheck {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--blue-deep); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 0 18px;
}

/* Admin */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 24px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--white); border-radius: 2px; box-shadow: 0 12px 34px rgba(2,20,90,.3); padding: 20px 22px; }
.stat .n {
  font-family: "Archivo Expanded", "Archivo", sans-serif;
  font-weight: 800; font-stretch: expanded;
  font-size: 42px; line-height: 1;
  color: var(--blue-deep);
}
.stat .l { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }

.bar {
  height: 14px;
  background: rgba(255,255,255,.25);
  border: 1.5px solid var(--white);
  border-radius: 2px;
  margin: 0 0 28px;
}
.bar > div { height: 100%; background: var(--white); transition: width .4s ease; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }

table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 2px; overflow: hidden; box-shadow: 0 12px 34px rgba(2,20,90,.3); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; background: #f4f6fc; }
tr:last-child td { border-bottom: none; }

h2 {
  font-family: "Archivo Expanded", "Archivo", sans-serif;
  font-weight: 800; font-stretch: expanded;
  text-transform: uppercase;
  font-size: 18px; margin: 36px 0 12px;
  color: var(--white);
}

.footer { margin-top: 40px; font-size: 12px; color: rgba(255,255,255,.75); }
.footer a { color: rgba(255,255,255,.9); }

/* Site footer — wordmark on the gradient */
.sitefooter {
  padding: 40px clamp(20px, 5vw, 48px) 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.sitefooter img { height: 60px; display: block; }
.sitefooter p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.65);
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .bar > div { transition: none; }
}
