
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');
/* ═══════════════════════════════════════════════════════
   Indiana MACE Screener — FSSA Approved Theme
   Based on https://fssabenefits.in.gov branding
   ═══════════════════════════════════════════════════════ */

:root {
  /* FSSA Primary Palette — PANTONE 294C official */
  --primary-dark: #002E6D;        /* FSSA Dark Blue — HEX #002e6d */
  --primary: #265f92;             /* FSSA Medium Blue — PANTONE 647C */
  --primary-light: #265f92;       /* Interactive blue — same Medium Blue */
  --gold: #ffd100;                /* FSSA Yellow — PANTONE 109C */
  --gold-light: #ffe566;          /* Hover tint of FSSA Yellow */
  --gold-bg: #fffbe6;             /* Soft yellow background */

  /* Semantic Colors — FSSA approved palette */
  --success: #00663A;             /* FSSA Green — PANTONE 348C */
  --success-bg: #e6f4ee;
  --warning: #E65100;
  --warning-bg: #FFF3E0;
  --danger: #B71C1C;
  --danger-bg: #FFEBEE;
  --info: #265f92;                /* FSSA Medium Blue */
  --info-bg: #e8f0f7;

  /* Neutral — FSSA Gray PANTONE Black 65% */
  --text: #212529;
  --text-muted: #6b6e70;          /* FSSA Gray adjusted — WCAG 4.5:1 contrast */
  --bg: #F4F6F8;
  --card-bg: #FFFFFF;
  --border: #CED4DA;
  --border-light: #E9ECEF;
  --radius: 6px;

  /* State accent strip — FSSA Yellow */
  --state-gold-bar: linear-gradient(90deg, #ffd100, #ffe566, #ffd100);
}

/* ─── Accessibility utilities ─────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: .75rem 1.5rem;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-nav:focus {
  left: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', Aptos, 'Minion Pro', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}
	
/* ─── Layout ──────────────────────────────────────── */
.layout { display: flex; flex-direction: column; min-height: 100vh; overflow: visible; padding: 0 !important; }

/* Gold accent strip at very top (Indiana state branding) */
.state-bar {
  height: 4px;
  background: var(--state-gold-bar);
  flex-shrink: 0;
}

/* State agency header */
.state-header {
  background: #002E6D;
  color: rgba(255,255,255,.7);
  font-size: .75rem;
  padding: .5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: flex-end;
}
.state-header .state-seal-img {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}
.state-header .state-header-text {
  display: flex;
  flex-direction: column;
  gap: .05rem;
}
.state-header .state-seal {
  font-size: 2.30rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.2;
}
.state-header .state-agency {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
}

/* Main navigation */
.main-nav {
  background: #ffffff;
  color: #212529;
  padding: .35rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  border-bottom: 1px solid #dee2e6;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.95rem;
  white-space: nowrap;
  color: #002E6D;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-seal-img {
	width: 110px;
	height: 110px;
	flex-shrink: 0;
}
.nav-brand .brand-accent {
  color:#002E6D;
}
.nav-links { display: flex; gap: .25rem; }
.nav-links a {
  color: #212529;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem .75rem;
  border-radius: 4px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(0,46,109,.08); color: #002E6D; }
.nav-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-links a.active { background: rgba(255,209,0,.25); color: #002E6D; }
.nav-badges { margin-left: auto; display: flex; gap: .5rem; }
.badge {
  background: rgba(255,209,0,.2);
  color: #002E6D;
  font-size: .8rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 12px;
  border: 1px solid rgba(255,209,0,.5);
}

/* Scroll wrapper — nav + content scroll together, state-header stays fixed */
.scroll-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }

/* Content area */
.main-content { flex: 1; max-width: 920px; width: 100%; margin: 0 auto; padding: 1.5rem 1rem; }

/* Footer — matches state-header */
.main-footer {
  background: #002E6D;
  color: rgba(255,255,255,.8);
  text-align: center;
  padding: 0.3rem 1.5rem;
  font-size: 1.1rem;
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.main-footer strong { color: rgba(255,255,255,1); }
.footer-seal { width: 30px; height: 30px; opacity: .7; }

/* ─── Typography ──────────────────────────────────── */
h1 { color: var(--primary-dark); margin-bottom: .25rem; font-weight: 700; font-size: 1.6rem; font-family: 'Open Sans', Aptos, 'Myriad Pro', sans-serif; }
.subtitle { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1rem; }
.screening-disclaimer {
	background: #f4f8fc; border-left: 4px solid #0b5cab; padding: 10px 14px; margin: 14px 0 16px 0;
	font-size: 0.95rem; color: #333; border-radius: 4px; line-height: 1.5; max-width: 780px;
}

/* ─── Cards ───────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.card-header {
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  background: #002E6D;
  margin: -1.25rem -1.25rem .75rem -1.25rem;
  padding: .6rem 1.25rem;
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  line-height: 1.5;
  font-family: 'Open Sans', Aptos, 'Myriad Pro', sans-serif;
}
.card-link { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; display: block; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,39,76,.1); }
.card-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }

/* ─── Section headers ─────────────────────────────── */
.section-hdr {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: #002E6D;
  margin: -1.25rem -1.25rem .75rem -1.25rem;
  padding: .6rem 1.25rem;
  border-left: none;
  border-radius: var(--radius) var(--radius) 0 0;
  line-height: 1.5;
  font-family: 'Open Sans', Aptos, 'Myriad Pro', sans-serif;
}

/* ─── Form ────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .75rem; }
.form-group label { font-weight: 600; font-size: .95rem; color: var(--text); }
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
  padding: .55rem .85rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus
.form-group select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,75,135,.12);
}
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: stretch; }
.form-row .form-group { flex: 1; min-width: 160px; }
.form-row .form-group label { flex: 1; }
.form-row .form-group input,
.form-row .form-group select,
.form-row .form-group textarea { margin-top: auto; }
.hint { font-size: .875rem; color: var(--text-muted); }
.input-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(183,28,28,.1) !important; }

/* ─── Toggle buttons ──────────────────────────────── */
.toggle-group { display: flex; gap: .5rem; }
.toggle-group button {
  padding: .5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: #fff;
  cursor: pointer;
  font-size: .95rem;
  font-family: inherit;
  font-weight: 600;
  transition: all .2s;
}
.toggle-group button:hover { border-color: var(--primary); background: rgba(0,75,135,.04); }
.toggle-group button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.toggle-group button.active-yes { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }
.toggle-group button.active-no { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ─── Checkboxes ──────────────────────────────────── */
.check-item { display: flex; align-items: flex-start; gap: .5rem; padding: .35rem 0; }
.check-item input[type="checkbox"] { margin-top: .25rem; width: 16px; height: 16px; accent-color: var(--primary); }
.check-item label { font-size: .95rem; cursor: pointer; }
.check-hint { display: block; font-size: .875rem; color: var(--text-muted); font-weight: 400; }

/* ─── Config options (selectable cards) ───────────── */
.config-option {
  padding: .75rem 1rem;
  margin-bottom: .5rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
}
.config-option:hover { border-color: var(--primary-light); background: rgba(0,75,135,.03); }
.config-option:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.config-option.selected { border-color: var(--gold); background: var(--gold-bg); }
.config-option h4 { font-size: 1rem; margin-bottom: .15rem; color: var(--primary-dark); }
.config-option p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ─── Progress steps ──────────────────────────────── */
.progress-steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; list-style: none; padding: 0; }
.progress-step {
  padding: .4rem 1rem;
  background: var(--border-light);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  transition: all .3s;
}
.progress-step.active { background: var(--primary); color: #fff; }
.progress-step.completed { background: #595c5f; color: #fff;}

/* ─── Buttons ─────────────────────────────────────── */
.btn-group { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.btn {
  padding: .65rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .2px;
}
.btn-primary { background: var(--primary-dark); color: #fff; }
.btn-primary:hover { background: var(--primary); }
.btn-success { background: var(--primary-dark); color: #fff; }
.btn-success:hover { background: var(--primary); }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: .5rem 1.5rem; font-size: .9rem; }
.btn-group-split { display: flex; justify-content: space-between; align-items: center; width: 100%;}
.btn-group-left,
.btn-group-right { display: flex; gap: .75rem;}
/* ─── Alerts ──────────────────────────────────────── */
.alert { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: .75rem; font-size: .95rem; }
.alert strong { display: block; margin-bottom: .25rem; }
.alert p { margin: .25rem 0 0; }
.alert-success { background: var(--success-bg); border-left: 4px solid var(--success); }
.alert-warning { background: var(--warning-bg); border-left: 4px solid var(--warning); }
.alert-danger { background: var(--danger-bg); border-left: 4px solid var(--danger); }
.alert-info { background: var(--info-bg); border-left: 4px solid var(--info); }

/* ─── Summary table ───────────────────────────────── */
.summary-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.summary-table td, .summary-table th { padding: .4rem .6rem; border-bottom: 1px solid var(--border-light); }
.summary-table thead th { font-weight: 600; color: var(--text-muted);}
.summary-table td:first-child, .summary-table th:first-child { font-weight: 600; width: 40%; color: var(--text-muted); text-align: center; }
.summary-table td:last-child, .summary-table th:last-child { text-align: left; }
.summary-table tr:last-child td, .summary-table tr:last-child th { border-bottom: none; }
.summary-table .section-row td, .summary-table .section-row th { background: var(--primary-dark); font-weight: 600; color: #fff; border-bottom: none; text-align: center; padding-right: 4rem;}
.summary-table .yes { color: var(--success); font-weight: 600; }
.summary-table .no { color: var(--text-muted); }

/* ─── Month tabs ──────────────────────────────────── */
.month-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0; }
.month-tab {
  padding: .5rem 1rem;
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  min-width: 100px;
  transition: all .2s;
}
.month-tab.active { border-color: var(--primary); background: rgba(0,75,135,.06); }
.month-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.month-tab.met { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.month-tab.not-met { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.month-tab small { font-weight: 400; font-size: .75rem; }

/* ─── Result banners ──────────────────────────────── */
.result-banner {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.result-banner.exempt { background: linear-gradient(135deg, #e6f4ee, #b3dfc9); color: #005c2e; }
.result-banner.approved { background: linear-gradient(135deg, var(--gold-bg), #fff5b3); color: var(--primary-dark); border-left: 4px solid var(--gold); }
.result-banner.denied { background: linear-gradient(135deg, var(--warning-bg), #FFE0B2); color: #BF360C; }
.result-icon { font-size: 1.5rem; }
.result-details {
  white-space: pre-wrap;
  font-family: 'Cascadia Code', 'Consolas', monospace;
  font-size: .875rem;
  line-height: 1.5;
  background: #F8F9FA;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

/* ─── Google Translate widget (in state-header) ───── */
#google_translate_element {
  display: flex;
  align-items: center;
  margin-left: auto;
  width: fit-content;       /* prevents stretching left */
}
/* Gadget — select on row 1 (full width), "Powered by" inline on row 2 */
#google_translate_element .goog-te-gadget {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 .2rem;             /* space between "Powered by" text and logo span */
  line-height: 1;
  color: rgba(255,255,255,.8);  /* inherited by bare "Powered by " text node */
}
/* Select container div — full first row */
#google_translate_element .goog-te-gadget > div {
  flex: 0 0 100%;
  margin-bottom: 1px;
}
/* Dropdown — semi-transparent on dark navy header */
#google_translate_element select {
  background: rgba(255,255,255,.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 4px;
  padding: .1rem .3rem;
  font-size: .75rem;
  font-family: inherit;
  cursor: pointer;
  height: 24px;
  max-width: 130px;
}
#google_translate_element select option {
  background: #ffffff;
  color: #212529;
}
#google_translate_element select:focus {
  outline: 2px solid rgba(255,255,255,.6);
  outline-offset: 1px;
}
/* Show Google logo in original brand colors, sized to match small text */
#google_translate_element .goog-te-gadget img,
#google_translate_element .goog-logo-link img {
  display: inline !important;
  height: 9px !important;
  width: auto !important;
  vertical-align: middle;
  margin-right: 1px;
}
/* "Powered by Google Translate" — single line, matches state-agency color */
#google_translate_element .goog-te-gadget > span,
#google_translate_element .goog-te-gadget > a {
  display: inline;
  font-size: .5rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
#google_translate_element .goog-te-gadget a,
#google_translate_element .goog-logo-link {
  font-size: .5rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  white-space: nowrap;
}
#google_translate_element .goog-te-gadget-simple {
  background: transparent;
  border: 1px solid rgba(0,46,109,.3);
  border-radius: 4px;
  padding: .2rem .5rem;
  font-size: .8rem;
  font-family: inherit;
}
#google_translate_element .goog-te-gadget-simple a {
  color: #002E6D;
  text-decoration: none;
}
#google_translate_element .goog-te-gadget-simple a:hover {
  color: #004B87;
}
/* Hide the top banner Google Translate injects, but NOT the widget itself */
.goog-te-banner-frame { display: none !important; }
/* Prevent Google Translate from pushing body down when banner is hidden */
body.translated-ltr,
body.translated-rtl { top: 0 !important; position: static !important; }

.layout {
	padding-top: 35px;
}
.progress-track {
	width: 100%;
	height: 10px;
	background: #e6e6e6;
	border-radius: 10px;
	overflow: hidden;
}
.progress-fill {
	height: 100%;
	border-radius:10px;
	background: linear-gradient(90deg, #1565c0 0%, #2e8b57 100%);
}
.icon-yes {
	color: #2e7d32;
	font-weight: bold;
	margin-right: 6px;
}
.icon-yes,
.icon-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-right: 6px;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	vertical-align: middle;
}
.icon-yes {
background: #0D5929;
border-radius: 4px;
}
.icon-no {
background: #dc2626;
border-radius: 50%;
}
#qs-important-notice {
  display: flex;
  align-items: flex-start;
}

.warning-icon {
  width: 18px;
  height: 18px;
  background-color: #A62A17;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  margin-right: 10px;
  /* Remove vertical offset so it aligns naturally */
  margin-top: 0;
}

#qs-important-notice > div {
  flex: 1;
}

.card:has(#qs-detailed-summary) {
	display: none;
}

#qs-ce-hours-list,
#qs-ce-income-list,
#qs-ce-activities-list,
#qs-exemption-list {
	margin-top: 0.5rem;
	padding-left: 1.5rem;
	color: #333;
	line-height: 1.5;
}
#qs-ce-hours-needed,
#qs-ce-income-needed,
#qs-ce-activities-result {
	margin-top: 0.75rem;
	font-weight: 700;
	color: #333;
}
#qs-ce-activities-list {
	padding-left: 0.2rem;
}
#qs-exemption-card #qs-exemption-list {
	padding-left: 1.5rem !important;
}
#qs-ce-requirements-list {
	padding-left: 1.5rem !important;
}
.result-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 16px;
}
a {
  color: #0000FF; /* Sets the text color to blue */
  text-decoration: underline; /* Adds the underline seen in your image */
}
.ce-status-card {
	border-radius: 4px;
}
.ce-status-card.compliant {
	background-color: #BED738;
}
.ce-status-card.non-compliant {
	background-color: #FFD100;
}
.ce-status-card.excluded {
	background-color: #C5DDF0;
}
.important-notice {
	color: rgb(33, 37, 41);
	margin-bottom: .25rem;
	font-size: 1rem;
}
.status-title-normal {
	font-weight: 400;
}


/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
  .state-header { flex-direction: column; gap: .15rem; padding: .25rem 1rem; }
  .main-nav { flex-direction: column; gap: .5rem; }
  .nav-badges { margin-left: 0; }
  .form-row { flex-direction: column; }
  .month-tabs { flex-direction: column; }
}

/* ─── Reduced motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
