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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #333;
  background-color: #fafafa;
}

a { text-decoration: none; color: #2c5aa0; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-block;
  background: #2c5aa0;
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn:hover { background: #1e4a8a; transform: translateY(-2px); text-decoration: none; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-red { background: #e74c3c; }
.btn-red:hover { background: #c0392b; }
.btn-green { background: #27ae60; }
.btn-green:hover { background: #1e8e4f; }
.btn-gray { background: #7f8c8d; }
.btn-primary-full { background: #2c5aa0; width: 100%; padding: 14px; }

/* ========== HEADER ========== */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky; top: 0; z-index: 1000;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center; padding: 20px 0;
}
.logo { font-size: 1.8rem; font-weight: 700; color: #2c5aa0; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; color: #444; transition: color 0.3s; }
.nav-links a:hover { color: #2c5aa0; text-decoration: none; }

/* ========== HERO ========== */
.hero {
  background: linear-gradient(rgba(44,90,160,0.9), rgba(44,90,160,0.8)), url('https://via.placeholder.com/1600x800') no-repeat center/cover;
  color: white; text-align: center; padding: 120px 20px;
}
.hero h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.3rem; max-width: 800px; margin: 0 auto 40px; }
.hero-cta-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ========== MODAL ========== */
.modal {
  display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7); overflow: auto;
}
.modal[aria-hidden="false"] { display: block; }
.modal-content {
  background-color: white; margin: 5% auto; padding: 30px; width: 90%; max-width: 1000px;
  border-radius: 10px; box-shadow: 0 5px 30px rgba(0,0,0,0.3);
  position: relative; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column;
}
.modal-content-tall { max-width: 800px; height: 90vh; }
.close-modal {
  color: #aaa; position: absolute; right: 20px; top: 10px; font-size: 28px; font-weight: bold; cursor: pointer;
  background: transparent; border: none; line-height: 1;
}
.close-modal:hover { color: black; }
.modal-title { margin-bottom: 20px; color: #2c5aa0; }

/* State job center */
.state-selector-container {
  margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 15px; align-items: center;
}
.state-search, .state-selector {
  padding: 12px; font-size: 1rem; border-radius: 5px; border: 1px solid #ccc; width: 100%; max-width: 400px;
}
.iframe-container {
  flex: 1; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; margin-top: 20px; position: relative;
}
.iframe-container iframe { width: 100%; height: 100%; min-height: 500px; border: none; }
.no-selection { text-align: center; padding: 60px 20px; color: #777; font-style: italic; }
#loadError {
  display: none; position: absolute; inset: 0; background: white; padding: 40px; text-align: center; border-radius: 8px;
  z-index: 10; display: none; flex-direction: column; justify-content: center;
}
#loadError h3 { color: #e74c3c; margin-bottom: 15px; }
#externalLinkBtn { background: #2c5aa0 !important; display: inline-block; padding: 12px 24px !important; text-decoration: none !important; }
#externalLinkBtn:hover { background: #1e4a8a !important; text-decoration: none !important; }
.loaderror-note { margin-top: 20px; font-size: 0.9rem; color: #777; }

/* Assessment modal screens */
#introScreen, #questionsScreen, #contactScreen, #resultsScreen { flex: 1; display: none; }
#introScreen, #contactScreen, #resultsScreen {
  flex-direction: column; justify-content: center; text-align: center; padding: 40px 20px;
}
#questionsScreen {
  flex-direction: column; padding: 20px; overflow-y: auto;
}
.assess-title { color: #2c5aa0; margin-bottom: 20px; }
.assess-lead { font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; }
.assess-privacy-callout {
  background: #f0f9ff; border-left: 4px solid #27ae60; padding: 20px; border-radius: 8px; margin: 30px auto; max-width: 600px;
}

/* Progress */
.progress-row { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.progress-track { flex: 1; background: #eee; height: 10px; border-radius: 5px; overflow: hidden; }
#progressBar { height: 100%; background: #2c5aa0; width: 0%; transition: width 0.3s; }
.question-counter { font-weight: 600; white-space: nowrap; }

/* Questions */
.question-block { margin-bottom: 30px; }
.answer-grid { display: grid; gap: 12px; margin-top: 20px; }
.answer-grid .btn {
  background: #f0f5ff; color: #2c5aa0; justify-content: flex-start; padding: 15px 20px; font-size: 1rem; font-weight: 500;
}
.answer-grid .btn.selected { background: #d0e4ff; border: 2px solid #2c5aa0; }

/* Nav row */
.nav-row { margin-top: auto; display: flex; justify-content: space-between; }

/* Contact */
.contact-form { max-width: 500px; margin: 0 auto; text-align: left; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input {
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px;
}
.checkbox-group label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.privacy-note {
  background: #fefefe; border: 1px solid #eee; border-radius: 8px; padding: 15px; font-size: 0.9rem; margin-bottom: 20px;
}

/* Results */
.result-card {
  background: #f8f9fa; border: 1px dashed #2c5aa0; border-radius: 10px; padding: 30px; margin: 20px auto; max-width: 500px;
}
.results-subtitle { margin: 40px 0 20px; color: #2c5aa0; }
.programs-grid { display: grid; gap: 20px; max-width: 600px; margin: 0 auto; }
.program-card {
  background: white; padding: 20px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.results-footnote { margin-top: 40px; font-size: 0.95rem; color: #555; }
.strong { font-weight: 600; }

/* Footer (structure kept; add your section styles as needed) */
.footer-grid {
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 40px 0;
}
.footer-col h3 { margin-bottom: 10px; }

/* Utility to show default screen in assessment */
#introScreen { display: flex; }
