:root {
  --primary: #198754;
  --primary-hover: #146c43;
  --card-bg: #fff;
}

/* Page background */
.patient-forms-page {
  background: var(--primary);
  padding: 1rem 0;
}

/* Main container */
.content-box {
  margin: 2rem auto 4rem;
  max-width: 1200px;
  background: var(--card-bg);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 1rem;
}

/* Inner layout */
.container {
  margin: 0 auto;
  max-width: 1100px;
  padding: 0;
}

/* Hero section */
.patient-forms-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem 2.5rem;
  border-radius: 0.5rem;
  text-align: center;
  max-width: 800px;
}

.patient-forms-hero h1 {
  color: #fff;
  font-size: 2.25rem;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.patient-forms-hero p {
  color: #eee;
  font-size: 1rem;
  margin-top: 0.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Tab Navigation */
.forms-nav {
  display: flex;
  justify-content: space-around;
  margin: 2rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.tab-button {
  background: #f7f7f7;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  text-align: center;
  flex: 1 1 150px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.tab-button img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}


/* Tab text styles */
.tab-button span {
  display: block;
  font-weight: bold;
  color: var(--primary);
}

.tab-button.active {
  background: var(--primary);
  color: white;
}

.tab-button.active span {
  color: white;
}

.tab-button.active img {
  filter: brightness(0) invert(1);
}

/* Forms content */
.forms-section {
  display: none;
}

.forms-section.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Form card grid */
.form-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.form-card-grid a {
  background: var(--card-bg);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  transition: background 0.2s ease;
  display: block;
  color: #000;
}

.form-card-grid a:hover {
  background: var(--primary-hover);
  color: white;
}

.form-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-card-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #000;
}

/* Instructions section */
.patient-forms-instructions h2,
.patient-forms-help h2 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.patient-forms-instructions ol {
  padding-left: 1.25rem;
  margin: 1rem 0 2rem;
}

.patient-forms-instructions li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Help section */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.help-card {
  background: var(--card-bg);
  border-radius: 0.5rem;
  padding: 2rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.help-card img {
  width: 48px;
  margin-bottom: 1rem;
}

.help-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.help-card p a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.help-card p a:hover {
  text-decoration: underline;
}

/* Fade-in utility */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .patient-forms-hero {
    height: 200px;
  }

  .patient-forms-hero h1 {
    font-size: 1.75rem;
  }

  .container {
    padding: 1rem;
  }

  .tab-button {
    flex: 1 1 100%;
    text-align: center;
  }
}
@media (min-width: 768px) {
  .forms-section {
    display: none;
  }
  .forms-section.active {
    display: block;
  }
}
