/* =============================================
   Healthcare Color Palette & Variables
   ============================================= */
:root {
  --primary: #0071BC;
  --primary-dark: #205493;
  --primary-light: #4A90D9;
  --accent-green: #2E8540;
  --accent-teal: #02BFE7;
  --bg-light: #F5F7FA;
  --card-white: #FFFFFF;
  --text-primary: #212529;
  --text-muted: #6C757D;
  --border-light: #E1E7EC;
  --error-soft: #E74C3C;
  --gradient-hero: linear-gradient(135deg, #205493 0%, #0071BC 50%, #02BFE7 100%);
  --gradient-hero-dark: linear-gradient(135deg, #1a3f6f 0%, #005a96 50%, #0299b8 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =============================================
   Global
   ============================================= */
html {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

body {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

main {
  flex: 1;
}

a {
  color: var(--primary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* =============================================
   Navigation
   ============================================= */
#mainNav {
  background: var(--gradient-hero);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease;
}

#mainNav .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

#mainNav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

#mainNav .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* =============================================
   Hero Section
   ============================================= */
.hero-section {
  background: var(--gradient-hero);
  color: white;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.hero-section h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-section .lead {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
}

.hero-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* =============================================
   Buttons
   ============================================= */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 113, 188, 0.35);
}

.btn-hero {
  background: white;
  color: var(--primary-dark);
  border: none;
  border-radius: 50px;
  padding: 0.85rem 2.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: var(--primary);
  background: white;
}

.btn-outline-light {
  border-radius: 50px;
  padding: 0.7rem 2rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

/* =============================================
   Trust Badges / Feature Cards
   ============================================= */
.trust-card {
  background: var(--card-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.trust-card .icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: white;
}

.trust-card .icon-circle.blue { background: var(--primary); }
.trust-card .icon-circle.green { background: var(--accent-green); }
.trust-card .icon-circle.teal { background: var(--accent-teal); }

.trust-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.trust-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* =============================================
   About / Info Sections
   ============================================= */
.section-padding {
  padding: 5rem 0;
}

.section-bg-white {
  background: var(--card-white);
}

.section-bg-light {
  background: var(--bg-light);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* =============================================
   Survey Multi-Step Form
   ============================================= */
.survey-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.step-indicator .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.step-indicator .step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.step-indicator .step.active .step-circle {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(0, 113, 188, 0.2);
}

.step-indicator .step.completed .step-circle {
  background: var(--accent-green);
  color: white;
}

.step-indicator .step-label {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--text-muted);
  text-align: center;
  transition: color 0.3s ease;
}

.step-indicator .step.active .step-label {
  color: var(--primary);
}

.step-indicator .step.completed .step-label {
  color: var(--accent-green);
}

.step-indicator .step-line {
  flex: 1;
  height: 3px;
  background: var(--border-light);
  margin: 0 -0.5rem;
  margin-top: -1.5rem;
  transition: background 0.4s ease;
  position: relative;
  z-index: 1;
}

.step-indicator .step-line.completed {
  background: var(--accent-green);
}

/* Step Content */
.step-content {
  display: none;
  animation: fadeInStep 0.4s ease forwards;
}

.step-content.active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress Bar */
.survey-progress {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.survey-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-green));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question Cards */
.question-card {
  background: var(--card-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.question-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.question-card .question-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.question-card .required-star {
  color: var(--error-soft);
  margin-left: 0.25rem;
}

/* Custom Radio & Checkbox */
.question-card .form-check {
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  margin-bottom: 0.25rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.question-card .form-check:hover {
  background: var(--bg-light);
}

.question-card .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.question-card textarea.form-control {
  border-radius: var(--radius-sm);
  border-color: var(--border-light);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.question-card textarea.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 113, 188, 0.15);
}

/* Likert Scale */
.likert-scale {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.likert-scale .likert-option {
  flex: 0 0 auto;
  text-align: center;
}

.likert-scale .likert-option input[type="radio"] {
  display: none;
}

.likert-scale .likert-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.likert-scale .likert-option input[type="radio"]:checked + label {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 113, 188, 0.3);
}

.likert-scale .likert-option label:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.likert-labels small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Navigation Buttons */
.step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.btn-step {
  padding: 0.7rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-step-next {
  background: var(--primary);
  color: white;
  border: none;
}

.btn-step-next:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 113, 188, 0.3);
}

.btn-step-back {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border-light);
}

.btn-step-back:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-submit {
  background: var(--accent-green);
  color: white;
  border: none;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #256d34;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 133, 64, 0.35);
}

/* =============================================
   Validation
   ============================================= */
.question-card.has-error {
  border-color: var(--error-soft);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.question-card .error-message {
  color: var(--error-soft);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.question-card.has-error .error-message {
  display: block;
}

/* =============================================
   Thank You Page
   ============================================= */
.thankyou-section {
  padding: 4rem 0;
  text-align: center;
}

.thankyou-icon {
  font-size: 4rem;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
  animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* =============================================
   Contact / About Pages
   ============================================= */
.page-header {
  background: var(--gradient-hero);
  color: white;
  padding: 3rem 0;
  margin-bottom: 0;
}

.page-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.contact-card {
  background: var(--card-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-card .icon-lg {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* =============================================
   Admin Cards (keep existing)
   ============================================= */
.stat-card {
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--primary-dark);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.site-footer h5 {
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

/* =============================================
   Animations
   ============================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0 2.5rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .step-indicator .step-label {
    font-size: 0.65rem;
  }

  .step-indicator .step-circle {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .likert-scale .likert-option label {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }

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

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .step-navigation {
    flex-direction: column-reverse;
    gap: 0.75rem;
  }

  .step-navigation .btn-step {
    width: 100%;
    text-align: center;
  }

  .question-card {
    padding: 1.25rem;
  }
}
