@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #1e40af; /* Bold Royal Blue */
  --primary-hover: #1e3a8a;
  --secondary-color: #0f172a; /* Midnight Blue/Dark Slate */
  --accent-color: #ea580c; /* High-contrast Emergency Orange */
  --accent-hover: #c2410c;
  --text-dark: #0f172a;
  --text-light: #475569;
  --bg-light: #f1f5f9;
  --bg-white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.injury-body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* Header alert bar */
.header-alert-bar {
  background-color: var(--accent-color);
  color: var(--bg-white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
}

.alert-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hotline-btn {
  background-color: var(--bg-white);
  color: var(--accent-color);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.hotline-btn:hover {
  background-color: var(--secondary-color);
  color: var(--bg-white);
}

/* Header */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-symbol {
  font-size: 2.25rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary-color);
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.header-nav .nav-list a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.header-nav .nav-list a:hover {
  color: var(--primary-color);
}

.header-nav .nav-list a.nav-cta {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.header-nav .nav-list a.nav-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* Hero Section */
.hero-banner {
  background: radial-gradient(circle at 10% 20%, #1e3a8a 0%, #020617 90%);
  color: var(--bg-white);
  padding: 5.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(2, 6, 23, 0.4) 100%);
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(234, 88, 12, 0.15);
  border: 1px solid rgba(234, 88, 12, 0.35);
  color: #ff7a3c;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  max-width: 850px;
}

.hero-tagline {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 700px;
  margin-bottom: 2.25rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--bg-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--bg-white);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Layout Grid */
.main-content-wrapper {
  max-width: 1200px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
}

/* Content Area */
.content-area {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 1rem;
}

.article-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary-color);
  letter-spacing: -0.02em;
}

.article-content {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.7;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem 0;
  color: var(--secondary-color);
  font-weight: 700;
}

/* Sidebar */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--bg-white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.sidebar-widget h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--secondary-color);
  border-left: 4px solid var(--accent-color);
  padding-left: 0.75rem;
  font-weight: 700;
}

/* Consultation Widget */
.quote-widget {
  background: linear-gradient(185deg, var(--bg-white) 0%, rgba(234, 88, 12, 0.02) 100%);
  border-top: 4px solid var(--accent-color);
}

.quote-widget p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.sidebar-form .form-group {
  margin-bottom: 1rem;
}

.sidebar-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--secondary-color);
}

.sidebar-form input,
.sidebar-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dark);
  background-color: var(--bg-white);
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.sidebar-form input:focus,
.sidebar-form select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.btn-submit {
  width: 100%;
  background-color: var(--accent-color);
  color: var(--bg-white);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  border: none;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.2);
}

.btn-submit:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

/* Resources Widget */
.resources-widget ul, .quick-links-widget ul {
  list-style: none;
}

.resources-widget ul li, .quick-links-widget ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.resources-widget ul li:last-child, .quick-links-widget ul li:last-child {
  border-bottom: none;
}

.resources-widget ul li a, .quick-links-widget ul li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: block;
}

.resources-widget ul li a:hover, .quick-links-widget ul li a:hover {
  color: var(--primary-color);
}

/* Footer */
.site-footer {
  background-color: var(--secondary-color);
  color: #64748b;
  padding: 4rem 1.5rem 2rem 1.5rem;
  margin-top: 5rem;
  border-top: 4px solid var(--primary-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--bg-white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--bg-white);
}

.disclaimer-text {
  font-size: 0.75rem !important;
  line-height: 1.5;
  color: #475569;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #475569;
}

/* Responsive */
@media (max-width: 900px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
}

/* ==========================================
   Directory & Submission Form Styles
   ========================================== */
.directory-container {
  margin-top: 1.5rem;
}

.directory-controls {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: center;
}

.search-box {
  flex: 1;
}

.directory-search {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 1rem;
  background-color: var(--bg-white);
  transition: all 0.2s ease;
}

.directory-search:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.submit-listing-btn {
  padding: 0.85rem 1.5rem;
  background-color: var(--accent-color);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.submit-listing-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.directory-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

.directory-categories {
  background-color: var(--bg-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  align-self: start;
}

.directory-categories h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.15rem;
  border-bottom: 2px solid var(--bg-light);
  padding-bottom: 0.5rem;
}

.directory-categories ul {
  list-style: none;
}

.directory-categories li {
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-light);
  font-weight: 500;
  transition: all 0.2s ease;
}

.directory-categories li:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.directory-categories li.active {
  background-color: rgba(30, 64, 175, 0.08);
  color: var(--primary-color);
  font-weight: 700;
}

.directory-listings {
  flex: 1;
}

.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.listing-card {
  background-color: var(--bg-white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  text-align: left;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 64, 175, 0.2);
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.listing-title a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: 'Outfit', sans-serif;
  transition: color 0.2s ease;
}

.listing-title a:hover {
  color: var(--primary-color);
}

.listing-badge {
  background-color: rgba(234, 88, 12, 0.08);
  color: var(--accent-color);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.listing-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.listing-footer {
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding-top: 0.75rem;
}

.listing-link-text {
  font-family: monospace;
  color: var(--primary-color);
  font-weight: 500;
}

/* Modal form and Standalone directory form */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.directory-modal {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-family: 'Outfit', sans-serif;
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.close-btn {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
}

.directory-form-container {
  background-color: var(--bg-white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

.directory-form-container .directory-form {
  padding: 0;
}

.directory-form .form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.directory-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.directory-form input,
.directory-form select,
.directory-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background-color: #f8fafc;
  font-family: inherit;
  transition: all 0.2s ease;
}

.directory-form input:focus,
.directory-form select:focus,
.directory-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08);
}

.directory-form .btn-submit {
  width: 100%;
  padding: 0.85rem;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.directory-form .btn-submit:hover {
  background-color: var(--primary-hover);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Contact Page Form */
.contact-form-container {
  background-color: var(--bg-white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-page-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-page-form .form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.contact-page-form label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  text-align: left;
}

.contact-page-form input,
.contact-page-form select,
.contact-page-form textarea {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

.contact-page-form input:focus,
.contact-page-form select:focus,
.contact-page-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08);
}

.privilege-disclaimer {
  font-size: 0.85rem;
  color: var(--text-light);
  background-color: var(--bg-light);
  border-left: 4px solid var(--accent-color);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  line-height: 1.5;
  text-align: left;
}

.btn-submit-large {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit-large:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
}

@media (max-width: 768px) {
  .directory-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact-page-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ==========================================
   Homepage Content Layout Elements
   ========================================== */
.intro-paragraph {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 2rem;
}

.injury-types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.injury-type-item {
  background-color: var(--bg-white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  text-align: left;
}

.injury-type-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 64, 175, 0.2);
}

.injury-type-item h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.injury-type-item p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.cta-box-inline {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0 1rem 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-box-inline h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--bg-white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-box-inline p {
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.btn-cta-link {
  display: inline-block;
  padding: 0.85rem 2rem;
  background-color: var(--accent-color);
  color: var(--bg-white);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-cta-link:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .injury-types-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
