/* ========================================================
   Healthcare Inspired LLC — Step 2 Assessment
   style.css  |  Professional, clean, accessible design
   ======================================================== */

/* ---- CSS VARIABLES ---- */
:root {
  --hci-teal:       #2BA8B0;
  --hci-teal-dark:  #1d8089;
  --hci-teal-light: #e6f6f7;
  --hci-navy:       #1a1a2e;
  --hci-gold:       #c8922a;
  --hci-gold-light: #fef6e9;
  --hci-red:        #E31E24;
  --hci-red-dark:   #b81519;
  --hci-red-light:  #fdf1f0;
  --hci-green:      #1a7a4a;
  --hci-green-light:#e8f5ee;
  --hci-gray-50:    #f8f9fa;
  --hci-gray-100:   #f1f3f5;
  --hci-gray-200:   #e9ecef;
  --hci-gray-300:   #dee2e6;
  --hci-gray-400:   #ced4da;
  --hci-gray-500:   #adb5bd;
  --hci-gray-600:   #6c757d;
  --hci-gray-700:   #495057;
  --hci-gray-800:   #343a40;
  --hci-gray-900:   #212529;
  --font-sans:      'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:     'Merriweather', Georgia, serif;
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 12px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:      0 10px 30px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.07);
  --transition:     0.18s ease;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--hci-gray-800);
  background: var(--hci-gray-50);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER ---- */
.site-header {
  background: #ffffff;
  border-bottom: 3px solid var(--hci-teal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-wrap a { display: flex; align-items: center; }

.logo-img {
  height: 42px;
  width: auto;
  display: block;
  /* Logo has white background — show cleanly on white header */
}

.logo-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--hci-navy);
  letter-spacing: 0.02em;
  border-left: 2px solid var(--hci-teal);
  padding-left: 14px;
  line-height: 1.3;
}

.step-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--hci-red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-label {
  font-size: 11px;
  color: var(--hci-gray-600);
  letter-spacing: 0.04em;
}

/* ---- PROGRESS BAR ---- */
.progress-container {
  position: sticky;
  top: 68px;
  z-index: 90;
  background: var(--hci-gray-200);
  height: 6px;
  width: 100%;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--hci-teal), var(--hci-teal-dark));
  transition: width 0.4s ease;
  border-radius: 0 3px 3px 0;
}

.progress-label {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 11px;
  color: var(--hci-gray-600);
  font-weight: 600;
}

/* ---- HERO INTRO ---- */
.hero-intro {
  background: linear-gradient(135deg, #1a1a2e 0%, #1d3a4a 55%, #1d8089 100%);
  padding: 56px 0 48px;
  color: #fff;
}

.hero-intro h1 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 13px;
  color: var(--hci-teal);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.intro-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  backdrop-filter: blur(8px);
}

.intro-card p {
  margin-bottom: 14px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
}

.intro-card p:last-child { margin-bottom: 0; }

.intro-card strong { color: #fff; }
.intro-card em { color: rgba(255,255,255,0.65); font-size: 13.5px; }

.highlight-box {
  background: rgba(10,126,164,0.25);
  border-left: 3px solid var(--hci-teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 16px 0;
}

.highlight-box p { margin: 0; font-size: 13.5px; }

/* ---- RECORDING / TECHNOLOGY DISCLOSURE BOX (hero intro) ---- */
.disclosure-box {
  background: rgba(15, 20, 40, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--hci-red);
  border-radius: var(--radius-md);
  margin: 20px 0 16px;
  overflow: hidden;
}

.disclosure-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(227, 30, 36, 0.18);
  padding: 11px 18px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

.disclosure-header i {
  color: var(--hci-red);
  font-size: 15px;
  flex-shrink: 0;
}

.disclosure-body {
  padding: 16px 18px 18px;
}

.disclosure-body p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 12px;
  line-height: 1.65;
}

.disclosure-body p:last-of-type { margin-bottom: 0; }

.disclosure-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(227, 30, 36, 0.12);
  border: 1px solid rgba(227, 30, 36, 0.30);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.disclosure-alert > i {
  color: var(--hci-red);
  font-size: 17px;
  margin-top: 2px;
  flex-shrink: 0;
}

.disclosure-alert strong {
  color: #fff;
}

/* ---- MAIN CONTENT ---- */
.main-content { padding: 40px 0 80px; }

/* ---- FORM SECTIONS ---- */
.form-section {
  background: #fff;
  border: 1px solid var(--hci-gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.form-section:hover { box-shadow: var(--shadow-md); }

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--hci-gray-100);
}

.section-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--hci-teal), var(--hci-teal-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(43,168,176,0.3);
}

.section-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--hci-navy);
  margin-bottom: 6px;
  line-height: 1.3;
}

.section-desc {
  font-size: 13.5px;
  color: var(--hci-gray-600);
  line-height: 1.6;
}

/* ---- FIELD WRAPS ---- */
.field-wrap {
  margin-bottom: 26px;
}

.field-wrap:last-child { margin-bottom: 0; }

.field-wrap label:first-child {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--hci-gray-800);
  margin-bottom: 8px;
  line-height: 1.5;
}

.hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--hci-gray-500);
  font-style: italic;
}

.req-star { color: var(--hci-red); margin-left: 2px; }

/* ---- INPUTS & TEXTAREAS ---- */
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--hci-gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--hci-gray-800);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: var(--hci-teal);
  box-shadow: 0 0 0 3px rgba(10,126,164,0.12);
}

input[type="text"].invalid,
input[type="email"].invalid,
textarea.invalid {
  border-color: var(--hci-red);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--hci-gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--hci-gray-800);
  background: #fff;
  resize: vertical;
  min-height: 110px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  line-height: 1.6;
}

textarea:focus {
  border-color: var(--hci-teal);
  box-shadow: 0 0 0 3px rgba(10,126,164,0.12);
}

/* ---- TWO COLUMN GRID ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field-grid { margin-bottom: 0; }

/* ---- RADIO GROUPS ---- */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.radio-group.stacked {
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 10px 16px;
  border: 1.5px solid var(--hci-gray-200);
  border-radius: var(--radius-sm);
  background: var(--hci-gray-50);
  transition: all var(--transition);
  font-size: 14px;
  color: var(--hci-gray-700);
  min-width: 100px;
  line-height: 1.5;
}

.radio-option:hover {
  border-color: var(--hci-teal);
  background: var(--hci-teal-light);
  color: var(--hci-teal-dark);
}

.radio-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--hci-teal);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.radio-option:has(input:checked) {
  border-color: var(--hci-teal);
  background: var(--hci-teal-light);
  color: var(--hci-teal-dark);
  font-weight: 600;
}

/* ---- CHECKBOX GRIDS ---- */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 10px 14px;
  border: 1.5px solid var(--hci-gray-200);
  border-radius: var(--radius-sm);
  background: var(--hci-gray-50);
  transition: all var(--transition);
  font-size: 13.5px;
  color: var(--hci-gray-700);
  line-height: 1.4;
}

.check-option:hover {
  border-color: var(--hci-teal);
  background: var(--hci-teal-light);
  color: var(--hci-teal-dark);
}

.check-option input[type="checkbox"] {
  accent-color: var(--hci-teal);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.check-option:has(input:checked) {
  border-color: var(--hci-teal);
  background: var(--hci-teal-light);
  color: var(--hci-teal-dark);
  font-weight: 600;
}

/* ---- NOTICE BOXES ---- */
.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--hci-gold-light);
  border: 1px solid #f0c96a;
  border-left: 4px solid var(--hci-gold);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #7a5700;
  margin-bottom: 14px;
  line-height: 1.5;
}

.notice-box i { color: var(--hci-gold); margin-top: 2px; flex-shrink: 0; }

.notice-box.info-box {
  background: var(--hci-teal-light);
  border-color: #9cd5e8;
  border-left-color: var(--hci-teal);
  color: var(--hci-teal-dark);
}

.notice-box.info-box i { color: var(--hci-teal); }

/* ---- SCENARIO BOX ---- */
.scenario-box {
  background: #f0f7ff;
  border: 1.5px solid #b8d4ee;
  border-left: 4px solid var(--hci-teal);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.scenario-box p {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hci-navy);
  margin-bottom: 12px;
}

.scenario-box ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scenario-box ul li {
  font-size: 14px;
  color: var(--hci-gray-700);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.scenario-box ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--hci-teal);
  font-weight: 700;
}

/* ---- ACKNOWLEDGMENT SECTION ---- */
.acknowledgment-section { background: #fcfbf8; }

.ack-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.ack-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--hci-gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 13.5px;
  color: var(--hci-gray-700);
  line-height: 1.5;
}

.ack-item:hover {
  border-color: var(--hci-teal);
  background: var(--hci-teal-light);
}

.ack-item input[type="checkbox"] {
  accent-color: var(--hci-teal);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.ack-item:has(input:checked) {
  border-color: var(--hci-green);
  background: var(--hci-green-light);
  color: #154235;
}

.ack-final {
  background: var(--hci-navy);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.ack-master {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-size: 15px;
  color: #fff;
  line-height: 1.4;
}

.ack-master input[type="checkbox"] {
  accent-color: var(--hci-teal);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}

/* ---- FIELD ERRORS ---- */
.field-error {
  font-size: 12.5px;
  color: var(--hci-red);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

/* ---- ERROR SUMMARY ---- */
.error-summary {
  background: var(--hci-red-light);
  border: 1.5px solid #e8a9a3;
  border-left: 4px solid var(--hci-red);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--hci-red);
}

.error-summary i { margin-right: 8px; }
.error-summary strong { display: block; margin-bottom: 10px; }
.error-summary ul { padding-left: 20px; }
.error-summary ul li { margin-bottom: 4px; color: #8b2a21; }

/* ---- SUBMIT SECTION ---- */
.submit-section {
  text-align: center;
  padding: 12px 0 20px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--hci-red), var(--hci-red-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 44px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(227,30,36,0.35);
  transition: all var(--transition);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227,30,36,0.45);
}

.btn-submit:active { transform: translateY(0); }

.btn-submit:disabled {
  background: var(--hci-gray-400);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.submit-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--hci-gray-500);
}

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,45,69,0.88);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s cubic-bezier(.22,1,.36,1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
  font-size: 56px;
  color: var(--hci-green);
  margin-bottom: 20px;
  line-height: 1;
}

.modal-card h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--hci-navy);
  margin-bottom: 16px;
}

.modal-card p {
  font-size: 14.5px;
  color: var(--hci-gray-700);
  margin-bottom: 12px;
  line-height: 1.7;
}

.modal-card p strong { color: var(--hci-teal-dark); }

.modal-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hci-gray-200);
}

.modal-footer p {
  font-size: 12px;
  color: var(--hci-gray-400);
  margin: 0;
}

/* ---- COMPLIANCE NOTE (inline, per-question accommodation notice) ---- */
.compliance-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0f4ff;
  border: 1px solid #c5d0f0;
  border-left: 4px solid #4a6fa5;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin: 10px 0 14px;
  font-size: 12.5px;
  color: #2c3e6b;
  line-height: 1.6;
}

.compliance-note i {
  color: #4a6fa5;
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}

.compliance-note a {
  color: #4a6fa5;
  font-weight: 600;
  text-decoration: underline;
}

/* ---- EEO BAR (full-width compliance footer above site footer) ---- */
.eeo-bar {
  background: #f8f9fa;
  border-top: 3px solid #4a6fa5;
  padding: 24px 0;
}

.eeo-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.eeo-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #4a6fa5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  margin-top: 2px;
}

.eeo-text {
  font-size: 12px;
  color: #495057;
  line-height: 1.75;
}

.eeo-text strong {
  color: #1a1a2e;
  font-weight: 700;
}

.eeo-text a {
  color: #4a6fa5;
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .eeo-inner { flex-direction: column; gap: 12px; }
  .eeo-icon { display: none; }
}

/* ---- FOOTER ---- */
.site-footer-bar {
  background: #1a1a2e;
  padding: 20px 0;
  text-align: center;
}

.site-footer-bar p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  .header-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
  .form-section { padding: 24px 20px; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .checkbox-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-intro { padding: 36px 0 32px; }
  .intro-card { padding: 20px 18px; }

  .section-header { flex-direction: column; gap: 12px; }

  .radio-group:not(.stacked) { flex-direction: column; gap: 8px; }

  .modal-card { padding: 36px 24px; }
  .modal-card h2 { font-size: 22px; }

  .btn-submit { width: 100%; justify-content: center; }

  .logo-tagline { display: none; }
  .step-badge { display: none; }
}

@media (max-width: 420px) {
  .checkbox-grid { grid-template-columns: 1fr; }
}

/* ---- FOCUS STYLES (accessibility) ---- */
*:focus-visible {
  outline: 2px solid var(--hci-teal);
  outline-offset: 3px;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--hci-gray-100); }
::-webkit-scrollbar-thumb { background: var(--hci-teal); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--hci-teal-dark); }
