/* ============================================================
   Medical Tour China - Main Stylesheet
   Color Scheme:
     Primary: #0066cc (blue)
     Secondary: #00a86b (green)
     Dark text: #1a1a2e
     Body text: #333333
     Background: #f8f9fa
     White: #ffffff
     Error: #d32f2f
     Success: #2e7d32
   Contrast ratios:
     #1a1a2e on #f8f9fa = 15.5:1 (passes AAA)
     #333333 on #ffffff = 12.6:1 (passes AAA)
     #0066cc on #ffffff = 5.3:1 (passes AA normal, AAA large)
     #ffffff on #0066cc = 5.3:1 (passes AA normal)
     #ffffff on #00a86b = 3.2:1 (passes AA large text only)
   ============================================================ */

/* ---- CSS Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  background-color: #f8f9fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #0066cc;
  text-decoration: underline;
}

a:hover {
  color: #004a99;
}

h1, h2, h3, h4, h5, h6 {
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ---- Focus Indicators (Accessibility) ---- */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #0066cc;
  outline-offset: 2px;
}

/* ---- Skip to Content ---- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  background: #0066cc;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.skip-to-content:focus {
  top: 0;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---- Screen Reader Only ---- */
.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;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
  line-height: 1.4;
}

.btn-primary {
  background-color: #0066cc;
  color: #ffffff;
  border-color: #0066cc;
}

.btn-primary:hover {
  background-color: #004a99;
  border-color: #004a99;
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: #0066cc;
  border-color: #0066cc;
}

.btn-secondary:hover {
  background-color: #0066cc;
  color: #ffffff;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ============================================================
   SITE HEADER & NAVIGATION
   ============================================================ */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0066cc;
  text-decoration: none;
}

.nav-logo:hover {
  color: #004a99;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #333333;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #0066cc;
  background-color: #f0f7ff;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-user .user-name {
  font-weight: 600;
  color: #1a1a2e;
  padding: 0.5rem 0;
}

/* Notification Badge */
.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background-color: #d32f2f;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  margin-left: 4px;
  vertical-align: middle;
}

/* Hamburger Toggle */
.hamburger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger-icon {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #333333;
  position: relative;
  border-radius: 2px;
  transition: background-color 0.3s;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 3px;
  background-color: #333333;
  border-radius: 2px;
  transition: transform 0.3s;
}

.hamburger-icon::before {
  top: -7px;
}

.hamburger-icon::after {
  top: 7px;
}

/* Nav open state (hamburger active) */
.nav-open .hamburger-icon {
  background-color: transparent;
}

.nav-open .hamburger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-open .hamburger-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background-color: #1a1a2e;
  color: #e0e0e0;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-section h3 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #b0b0c0;
  text-decoration: none;
}

.footer-section a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: #3a3a5e;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.social-links a:hover .social-icon {
  background-color: #0066cc;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 1rem 0;
  margin-top: 2rem;
  border-top: 1px solid #3a3a5e;
  color: #888;
  font-size: 0.875rem;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1a1a2e;
  color: #e0e0e0;
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner-content p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ============================================================
   ALERTS & FLASH MESSAGES
   ============================================================ */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-success {
  background-color: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.alert-error {
  background-color: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

.flash-message {
  background-color: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #90caf9;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1rem auto;
  max-width: 1200px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 6px;
  background-color: #ffffff;
  color: #333333;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0066cc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #d32f2f;
}

.error-message {
  display: block;
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.form-hint {
  display: block;
  color: #666;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.required {
  color: #d32f2f;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  min-height: 60vh;
}

.auth-container {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 440px;
}

.auth-container h1 {
  text-align: center;
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 1.5rem;
}

.auth-form {
  margin-top: 1rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
  color: #ffffff;
  padding: 4rem 1rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  color: #ffffff;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.hero-subheadline {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-content .btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

/* ============================================================
   VALUE CARDS (Why Choose Us, Core Values)
   ============================================================ */
.why-choose,
.about-values {
  padding: 4rem 0;
  background-color: #ffffff;
}

.why-choose h2,
.about-values h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.value-cards,
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.5rem;
}

.value-card {
  background: #f8f9fa;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e8e8e8;
  transition: transform 0.2s, box-shadow 0.2s;
}

.value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.value-card-icon,
.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

/* ============================================================
   HOW IT WORKS — PROCESS STEPS
   ============================================================ */
.how-it-works {
  padding: 4rem 0;
  background-color: #ffffff;
}

.how-it-works h2 {
  text-align: center;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0066cc;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: #1a1a2e;
}

.process-step p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.6;
}

/* ============================================================
   SERVICE CARDS (Landing Page)
   ============================================================ */
.services-overview {
  padding: 4rem 0;
  background-color: #f8f9fa;
}

.services-overview h2 {
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 2rem;
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  text-align: center;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card .btn {
  margin-top: 1rem;
}

/* ============================================================
   TESTIMONIAL CARDS
   ============================================================ */
.testimonials {
  padding: 4rem 0;
  background-color: #ffffff;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid #0066cc;
}

.testimonial-card blockquote {
  margin-bottom: 1rem;
  font-style: italic;
  color: #444;
  line-height: 1.7;
}

.testimonial-card footer {
  border-top: 1px solid #e0e0e0;
  padding-top: 0.75rem;
}

.patient-name {
  display: block;
  font-weight: 700;
  color: #1a1a2e;
  font-style: normal;
}

.treatment-type {
  display: block;
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
}

/* ============================================================
   BOTTOM CTA
   ============================================================ */
.bottom-cta,
.about-cta,
.services-cta,
.price-list-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
  color: #ffffff;
  text-align: center;
}

.bottom-cta h2,
.about-cta h2,
.services-cta h2,
.price-list-cta h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.bottom-cta p,
.about-cta p,
.services-cta p,
.price-list-cta p {
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.bottom-cta .btn-secondary,
.price-list-cta .btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
}

.bottom-cta .btn-secondary:hover,
.price-list-cta .btn-secondary:hover {
  background-color: #ffffff;
  color: #0066cc;
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-hero {
  background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
  color: #ffffff;
  padding: 3rem 1rem;
  text-align: center;
}

.services-hero h1 {
  color: #ffffff;
}

.services-hero .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.services-section {
  padding: 3rem 0;
}

.services-section:nth-child(even) {
  background-color: #ffffff;
}

.section-description {
  color: #555;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* ============================================================
   ACCORDION (Price List)
   ============================================================ */
.price-list-hero {
  background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
  color: #ffffff;
  padding: 3rem 1rem;
  text-align: center;
}

.price-list-hero h1 {
  color: #ffffff;
}

.price-list-search {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.price-list-search input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: #ffffff;
}

.price-list-search input:focus {
  border-color: #0066cc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.price-list-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.price-disclaimer {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  color: #664d03;
  font-size: 0.9rem;
}

.accordion {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid #e0e0e0;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  margin: 0;
}

.accordion-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  gap: 0.75rem;
  transition: background-color 0.2s;
}

.accordion-toggle:hover {
  background-color: #f0f7ff;
}

.accordion-title {
  flex: 1;
}

.accordion-description {
  font-weight: 400;
  font-size: 0.875rem;
  color: #666;
  display: none;
}

.accordion-icon {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0066cc;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.accordion-toggle[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-panel {
  padding: 0 1.25rem 1.25rem;
  background: #fafafa;
}

.accordion-panel[hidden] {
  display: none;
}

/* Treatment Table */
.treatment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.treatment-table th,
.treatment-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.treatment-table th {
  background: #f0f0f0;
  font-weight: 600;
  color: #1a1a2e;
}

.treatment-table tr:last-child td {
  border-bottom: none;
}

.treatment-table tr:hover td {
  background-color: #f0f7ff;
}

.no-treatments,
.no-categories {
  padding: 2rem;
  text-align: center;
  color: #666;
}

/* ============================================================
   HOSPITAL LIST & CARDS
   ============================================================ */
.hospitals-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hospitals-page h1 {
  margin-bottom: 0.5rem;
}

.hospital-filters {
  margin: 1.5rem 0;
}

.filter-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-row input,
.filter-row select {
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: #ffffff;
}

.filter-row input {
  flex: 2;
  min-width: 200px;
}

.filter-row select {
  flex: 1;
  min-width: 150px;
}

.filter-row button {
  padding: 0.75rem 1.5rem;
  background: #0066cc;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.filter-row button:hover {
  background: #004a99;
}

.hospital-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hospital-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hospital-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.hospital-thumbnail {
  height: 180px;
  background: #e0e0e0;
  overflow: hidden;
}

.hospital-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
}

.hospital-info {
  padding: 1.25rem;
}

.hospital-info h2 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.hospital-city {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.hospital-specialties {
  font-size: 0.85rem;
  color: #0066cc;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #666;
}

/* ============================================================
   HOSPITAL DETAIL PAGE
   ============================================================ */
.hospital-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hospital-meta {
  margin-bottom: 2rem;
  color: #555;
}

.hospital-description,
.hospital-specialties,
.hospital-accreditations {
  margin-bottom: 2rem;
}

.hospital-specialties ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.hospital-specialties li {
  background: #e3f2fd;
  color: #0d47a1;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
}

.hospital-gallery {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.hospital-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  background: linear-gradient(135deg, #0066cc 0%, #004a99 100%);
  color: #ffffff;
  padding: 3rem 1rem;
  text-align: center;
}

.about-hero h1 {
  color: #ffffff;
}

.about-hero .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.about-mission {
  padding: 3rem 0;
  background: #ffffff;
}

.mission-statement {
  font-size: 1.125rem;
  color: #333;
  border-left: 4px solid #0066cc;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.about-team {
  padding: 3rem 0;
  background: #f8f9fa;
}

.about-team h2 {
  text-align: center;
}

.about-team .section-description {
  text-align: center;
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #e8e8e8;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.team-role {
  color: #0066cc;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.9rem;
  color: #555;
  text-align: left;
}

/* Statistics */
.about-stats {
  padding: 3rem 0;
  background: #ffffff;
}

.about-stats h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
  padding: 2rem 0;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-form-section {
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
}

.contact-sidebar {
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-info-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-hours {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.contact-hours h3 {
  margin-bottom: 0.5rem;
}

.contact-hours p {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #555;
}

/* ============================================================
   SURVEY / MULTI-STEP FORM
   ============================================================ */
.survey-page {
  padding: 2rem 0;
}

.survey-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.survey-header {
  text-align: center;
  margin-bottom: 2rem;
}

.survey-form {
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
}

/* Step Indicators */
.step-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.step-indicator {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #666;
  background: #f0f0f0;
  border-radius: 20px;
  white-space: nowrap;
}

.step-indicator.active {
  background: #0066cc;
  color: #ffffff;
}

.step-indicator.completed {
  background: #00a86b;
  color: #ffffff;
}

/* Survey Steps */
.survey-step h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

.step-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.step-navigation .btn-next {
  margin-left: auto;
}

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem 1rem;
}

.error-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.error-page p {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 2rem;
}

.error-container {
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ---- Mobile First: 320px base (default styles above) ---- */

/* ---- Small devices (< 768px) — Mobile ---- */
@media (max-width: 767px) {
  /* Hamburger visible on mobile */
  .hamburger-toggle {
    display: flex;
  }

  /* Nav links hidden by default on mobile, shown when .nav-open */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-user {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem;
  }

  /* Site header needs relative for dropdown positioning */
  .site-header nav {
    position: relative;
  }

  /* Hero adjustments */
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-subheadline {
    font-size: 1rem;
  }

  /* Cards stack on mobile */
  .value-cards,
  .values-grid,
  .services-cards,
  .testimonial-cards,
  .services-grid,
  .team-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Hospital list single column */
  .hospital-list {
    grid-template-columns: 1fr;
  }

  /* Filter row stacks */
  .filter-row {
    flex-direction: column;
  }

  .filter-row input,
  .filter-row select {
    min-width: 100%;
  }

  /* Contact layout stacks */
  .contact-content {
    grid-template-columns: 1fr;
  }

  /* Footer stacks */
  .footer-container {
    grid-template-columns: 1fr;
  }

  /* Cookie banner stacks */
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }

  /* Accordion description hidden on mobile */
  .accordion-description {
    display: none;
  }

  /* Treatment table responsive */
  .treatment-table {
    font-size: 0.8rem;
  }

  .treatment-table th,
  .treatment-table td {
    padding: 0.5rem;
  }

  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Step indicators wrap */
  .step-indicators {
    flex-direction: column;
    align-items: center;
  }

  /* Stat numbers smaller */
  .stat-number {
    font-size: 2rem;
  }

  /* CTA buttons stack */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ---- Tablet (768px and up) ---- */
@media (min-width: 768px) {
  /* Hamburger hidden on tablet+ */
  .hamburger-toggle {
    display: none;
  }

  /* Nav links always visible */
  .nav-links {
    display: flex;
  }

  /* Hero larger */
  .hero-banner {
    padding: 5rem 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  /* Cards 2 columns */
  .services-cards,
  .testimonial-cards,
  .services-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Value cards 5 columns */
  .value-cards,
  .values-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  /* Hospital list 2 columns */
  .hospital-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact side by side */
  .contact-content {
    grid-template-columns: 1.5fr 1fr;
  }

  /* Stats 4 columns */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Accordion description visible */
  .accordion-description {
    display: inline;
  }

  /* Gallery 3 columns */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Desktop (1024px and up) ---- */
@media (min-width: 1024px) {
  /* Hero even larger */
  .hero-banner {
    padding: 6rem 2rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  /* Cards can go to 3-5 columns */
  .value-cards,
  .values-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .services-cards,
  .testimonial-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Hospital list 3 columns */
  .hospital-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Container padding */
  .container {
    padding: 0 2rem;
  }
}

/* ---- Large Desktop (1920px and up) ---- */
@media (min-width: 1920px) {
  .container {
    max-width: 1400px;
  }

  .nav-container {
    max-width: 1400px;
  }

  .footer-container {
    max-width: 1400px;
  }

  .price-list-content {
    max-width: 1100px;
  }

  .hospital-detail {
    max-width: 1100px;
  }

  .contact-container {
    max-width: 1200px;
  }

  body {
    font-size: 1.0625rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dashboard-section {
  padding: 2rem 0;
}

.dashboard-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.dashboard-header {
  margin-bottom: 1rem;
  text-align: center;
}

.dashboard-header h1 {
  font-size: 1.75rem;
  color: #1a1a2e;
}

.dashboard-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 1rem;
  justify-content: center;
}

.dashboard-nav .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 4px;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dashboard-form .form-group {
  margin-bottom: 1.25rem;
}

/* ============================================================
   PROFILE CARD & DETAILS
   ============================================================ */
.profile-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-card h2 {
  font-size: 1.25rem;
  color: #1a1a2e;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e0e0e0;
}

.profile-details {
  margin: 0;
}

.profile-field {
  display: flex;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.profile-field:last-child {
  border-bottom: none;
}

.profile-field dt {
  font-weight: 600;
  color: #1a1a2e;
  min-width: 160px;
  flex-shrink: 0;
}

.profile-field dd {
  color: #333333;
  margin: 0;
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   MESSAGE LIST & ITEMS
   ============================================================ */
.message-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.message-item {
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.25rem;
}

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

.message-header h3 {
  font-size: 1.05rem;
  color: #1a1a2e;
  margin-bottom: 0;
}

.message-body {
  color: #333333;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.message-date {
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.message-reply {
  margin-top: 1rem;
  padding: 1rem;
  background: #e3f2fd;
  border-left: 3px solid #0066cc;
  border-radius: 0 6px 6px 0;
}

.message-reply h4 {
  font-size: 0.9rem;
  color: #0066cc;
  margin-bottom: 0.5rem;
}

.message-reply p {
  margin-bottom: 0.25rem;
}

/* ============================================================
   MESSAGE STATUS BADGES
   ============================================================ */
.message-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.4;
}

.status-pending {
  background-color: #fff3cd;
  color: #664d03;
  border: 1px solid #ffc107;
}

.status-replied {
  background-color: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */
.admin-section {
  padding: 2rem 0;
}

.admin-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.admin-header {
  margin-bottom: 1rem;
  text-align: center;
}

.admin-header h1 {
  font-size: 1.75rem;
  color: #1a1a2e;
}

.admin-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 1rem;
  justify-content: center;
}

.admin-nav .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 4px;
}

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-content > p {
  color: #555;
  font-size: 0.95rem;
  text-align: center;
}

/* ============================================================
   ADMIN STATS CARDS
   ============================================================ */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.stat-card h2 {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  border-bottom: none;
  padding-bottom: 0;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0066cc;
  margin: 0;
}

/* ============================================================
   ADMIN TABLE
   ============================================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.admin-table thead {
  background: #f0f0f0;
}

.admin-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #1a1a2e;
  border-bottom: 2px solid #e0e0e0;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.75rem 1rem;
  color: #333333;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background-color: #f0f7ff;
}

/* ============================================================
   SMALL BUTTON VARIANT
   ============================================================ */
.btn-small {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 2px solid #0066cc;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  background-color: #0066cc;
  color: #ffffff;
  line-height: 1.4;
}

.btn-small:hover {
  background-color: #004a99;
  border-color: #004a99;
  color: #ffffff;
}

/* ============================================================
   DANGER BUTTON VARIANT
   ============================================================ */
.btn-danger {
  background-color: #d32f2f;
  border-color: #d32f2f;
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #b71c1c;
  border-color: #b71c1c;
  color: #ffffff;
}

.message-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ============================================================
   FLASH MESSAGE ERROR ALERT
   ============================================================ */
.alert-error {
  background-color: #fdecea;
  color: #611a15;
  border: 1px solid #f5c6cb;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* ============================================================
   DASHBOARD & ADMIN RESPONSIVE STYLES
   ============================================================ */

/* ---- Mobile (< 768px) ---- */
@media (max-width: 767px) {
  .dashboard-container,
  .admin-container {
    padding: 0 0.75rem;
  }

  .dashboard-nav,
  .admin-nav {
    flex-direction: column;
  }

  .dashboard-nav .btn,
  .admin-nav .btn {
    text-align: center;
  }

  .profile-card {
    padding: 1.25rem;
  }

  .profile-field {
    flex-direction: column;
    gap: 0.25rem;
  }

  .profile-field dt {
    min-width: auto;
    font-size: 0.8125rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .profile-actions {
    flex-direction: column;
  }

  .profile-actions .btn {
    text-align: center;
  }

  .message-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .admin-table {
    font-size: 0.8rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.625rem;
  }
}

/* ---- Tablet (768px and up) ---- */
@media (min-width: 768px) {
  .admin-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Desktop (1024px and up) ---- */
@media (min-width: 1024px) {
  .dashboard-container {
    max-width: 960px;
  }

  .admin-container {
    max-width: 1200px;
  }
}

/* ============================================================
   ATTACHMENT DISPLAY (Message History)
   ============================================================ */
.attachment-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  font-size: 0.9rem;
}

.attachment-item a {
  color: #0066cc;
  text-decoration: underline;
  word-break: break-all;
}

.attachment-item a:hover {
  color: #004a99;
}

.attachment-thumbnail {
  max-width: 120px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
}

.attachment-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.attachment-size {
  color: #666;
  font-size: 0.8125rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   ATTACHMENT UPLOAD PREVIEW
   ============================================================ */
#attachment-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.preview-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  width: 110px;
  text-align: center;
}

.preview-thumbnail {
  max-width: 90px;
  max-height: 90px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.preview-icon {
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem 0;
}

.preview-filename {
  font-size: 0.75rem;
  color: #333333;
  word-break: break-all;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
}

.preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: #d32f2f;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s;
}

.preview-remove:hover {
  background: #b71c1c;
}

/* ============================================================
   PASTE HINT & WARNING ALERT
   ============================================================ */
.paste-hint {
  display: block;
  color: #666;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  font-style: italic;
}

.alert-warning {
  background-color: #fff3cd;
  color: #664d03;
  border: 1px solid #ffc107;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-warning ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.alert-warning li {
  margin-bottom: 0.25rem;
  font-weight: 400;
}

/* ============================================================
   ATTACHMENT RESPONSIVE STYLES
   ============================================================ */
@media (max-width: 767px) {
  .attachment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    padding: 0.625rem;
  }

  .attachment-thumbnail {
    max-width: 80px;
  }

  .attachment-size {
    font-size: 0.75rem;
  }

  #attachment-preview {
    gap: 0.5rem;
  }

  .preview-item {
    width: 90px;
    padding: 0.375rem;
  }

  .preview-thumbnail {
    max-width: 70px;
    max-height: 70px;
  }
}

/* ============================================================
   REPLY THREAD & CONVERSATION STYLES
   ============================================================ */

/* Thread container — left border to indicate conversation context */
.reply-thread {
  margin-top: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Individual reply bubble */
.reply-item {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
}

/* User replies — light blue tint */
.reply-user {
  background-color: #e3f2fd;
  border-color: #90caf9;
}

/* Admin replies — light green tint */
.reply-admin {
  background-color: #e8f5e9;
  border-color: #a5d6a7;
}

/* Sender label (bold "You" / "Admin" / "User") */
.reply-sender-label {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.375rem;
}

.reply-user .reply-sender-label {
  color: #0d47a1;
}

.reply-admin .reply-sender-label {
  color: #1b5e20;
}

/* Reply body text */
.reply-body {
  color: #333333;
  line-height: 1.6;
  margin-bottom: 0.375rem;
}

/* Reply timestamp */
.reply-date {
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 0;
}

/* Reply count — muted text next to subject */
.reply-count {
  font-size: 0.8125rem;
  font-weight: 400;
  color: #666;
  margin-left: 0.375rem;
}

/* Inline reply form within a thread */
.reply-form {
  margin-top: 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.reply-form .form-group {
  margin-bottom: 0.75rem;
}

.reply-form textarea {
  min-height: 80px;
}

.reply-form .btn {
  margin-top: 0.25rem;
}

/* ============================================================
   CONVERSATION STATUS BADGES
   ============================================================ */

/* Awaiting Admin — orange badge (needs admin attention) */
.status-awaiting-admin {
  background-color: #fff3cd;
  color: #664d03;
  border: 1px solid #ffc107;
}

/* Awaiting User — green badge (admin has replied) */
.status-awaiting-user {
  background-color: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

/* ============================================================
   REPLY THREAD RESPONSIVE STYLES
   ============================================================ */
@media (max-width: 767px) {
  .reply-thread {
    padding-left: 0.5rem;
  }

  .reply-item {
    padding: 0.75rem;
  }

  .reply-form {
    padding: 0.75rem;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .cookie-banner,
  .hamburger-toggle,
  .skip-to-content {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}
