/* CreditAccess Life–aligned verification portal (lab) */
:root {
  --cali-blue: #004886;
  --cali-blue-dark: #003665;
  --cali-blue-mid: #00578a;
  --cali-red: #e30613;
  --cali-red-dark: #b5030f;
  --text: #222;
  --text-muted: #5a6a7a;
  --border: #d5dde6;
  --bg: #f4f7fb;
  --white: #ffffff;
  --warn-bg: #fff8e8;
  --warn-border: #f0d9a8;
  --warn-text: #7a5a10;
  --radius: 8px;
  --font: "Open Sans", "Segoe UI", Tahoma, Arial, sans-serif;
  --shadow: 0 8px 28px rgba(0, 48, 96, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

/* —— Top utility bar (site-like) —— */
.util-bar {
  background: #f0f3f7;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 6px 0;
}
.util-inner {
  width: min(1120px, 100% - 28px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* —— Main header —— */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e8eef4;
  box-shadow: 0 1px 0 rgba(0,72,134,0.04);
}
.header-inner {
  width: min(1120px, 100% - 28px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.logo img {
  height: 52px;
  width: auto;
  max-width: min(240px, 58vw);
  object-fit: contain;
  display: block;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-actions span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff4f4;
  color: var(--cali-red);
  border: 1px solid #ffd0d3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

/* —— Nav strip (CALI blue) —— */
.nav-strip {
  background: var(--cali-blue);
  color: #fff;
}
.nav-inner {
  width: min(1120px, 100% - 28px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.nav-inner .title {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.nav-inner .crumbs {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* —— Hero band —— */
.hero {
  background: linear-gradient(90deg, var(--cali-blue) 0%, #005a9e 55%, var(--cali-red) 160%);
  color: #fff;
  padding: 28px 0 32px;
}
.hero-inner {
  width: min(1120px, 100% - 28px);
  margin: 0 auto;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero p {
  margin: 0;
  max-width: 640px;
  opacity: 0.95;
  font-size: 0.98rem;
}

/* —— Content —— */
.shell {
  width: min(1120px, 100% - 28px);
  margin: -18px auto 40px;
}
.grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .grid {
    grid-template-columns: 1.15fr 0.95fr;
    align-items: start;
  }
}

.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid #e6edf5;
  padding: clamp(20px, 3vw, 28px);
}

.card h2 {
  margin: 0 0 6px;
  color: var(--cali-blue);
  font-size: 1.25rem;
  font-weight: 700;
}

.lead {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  margin-bottom: 16px;
}
.alert-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffe8a3;
  color: #8a5a00;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.alert p {
  margin: 0;
  color: var(--warn-text);
  font-size: 0.88rem;
}

.notice-body p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #2c3a4a;
}
.notice-body p:last-child { margin-bottom: 0; }
.notice-body strong { color: var(--cali-blue); }

.signoff {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
  color: var(--cali-blue) !important;
  font-weight: 600;
  font-size: 0.92rem !important;
}

.meta-row {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.meta-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px solid #e8eef4;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.meta-item .n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cali-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.meta-item strong {
  display: block;
  color: var(--text);
  font-size: 0.84rem;
  margin-bottom: 2px;
}

/* Form card */
.form-card {
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cali-blue), var(--cali-red));
}

.form-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #eef5fb;
  border: 1px solid #d6e6f5;
  display: grid;
  place-items: center;
}
.form-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.form-card .center-title {
  text-align: center;
  margin-bottom: 6px;
}
.form-card .center-lead {
  text-align: center;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.step-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: #fff;
  padding: 5px 10px;
  border-radius: 999px;
}
.step-pill.active {
  color: #fff;
  background: var(--cali-blue);
  border-color: var(--cali-blue);
}
.step-pill.done {
  color: #0a7a3e;
  background: #eaf8f0;
  border-color: #b7e4c7;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334;
  margin: 0 0 6px;
}
.field { margin-bottom: 14px; }

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: #9aa8b5; }
input:focus {
  border-color: var(--cali-blue);
  box-shadow: 0 0 0 3px rgba(0, 72, 134, 0.15);
}

.hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--cali-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--cali-blue-dark); }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.btn-ghost {
  margin-top: 10px;
  background: #fff;
  color: var(--cali-blue);
  border: 1px solid #c5d4e3;
}
.btn-ghost:hover { background: #f5f9fc; }

.err {
  display: none;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #b71c1c;
  font-size: 0.85rem;
}
.err.show { display: block; }

.panel { display: none; }
.panel.active { display: block; animation: fade .22s ease; }
@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.status-box { text-align: center; padding: 8px 0; }
.status-box .icon-lg {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: #eef5fb;
  border: 1px solid #d0e3f5;
  color: var(--cali-blue);
}
.status-box.success .icon-lg {
  background: #eaf8f0;
  border-color: #b7e4c7;
  color: #0a7a3e;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.secure-note {
  margin-top: 16px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer like site */
.site-footer {
  background: var(--cali-blue);
  color: rgba(255,255,255,0.88);
  margin-top: auto;
  padding: 28px 0 18px;
}
.footer-inner {
  width: min(1120px, 100% - 28px);
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.footer-brand img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  margin: 0;
  font-size: 0.85rem;
  max-width: 520px;
  line-height: 1.45;
}
.footer-meta {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 12px;
  font-size: 0.75rem;
  opacity: 0.85;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 560px) {
  .logo img { height: 42px; }
  .hero { padding: 22px 0 26px; }
  input[type="email"],
  input[type="password"] { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .panel.active { animation: none; }
  .spinner { animation: none; }
}
