/* 
 * MRP Foundation - Global Styles 
 * Fonts: 'Hind Siliguri' (Bangla), 'Poppins' (English)
 */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary-color: #00695c; /* Teal/Green - Trust & Growth */
  --primary-dark: #004d40;
  --secondary-color: #469946; /* Bright Green - User requested */
  --secondary-hover: #3d7c2a;
  --text-dark: #1f2937;
  --text-light: #4b5563;
  --white: #ffffff;
  --off-white: #f9fafb;
  --border-color: #e5e7eb;
  --success: #10b981;
  --error: #ef4444;

  /* Transitions */
  --transition: all 0.3s ease;
  
  /* Shadow */
  --shadow-sm: 0 1px 2px 0 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);

  /* Container */
  --container-width: 1280px;
}

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

body {
  font-family: 'Hind Siliguri', sans-serif;
  color: var(--text-dark);
  background-color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Hind Siliguri', sans-serif;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  border: 2px solid transparent; /* Match height of bordered buttons */
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-secondary-white {
  background-color: var(--white);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.btn-secondary-white:hover {
  background-color: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Navbar Styles - Glassmorphism */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
  /* Filter to match brand color #469946 */
  filter: invert(49%) sepia(21%) saturate(1008%) hue-rotate(69deg) brightness(94%) contrast(85%);
}

.nav-menu {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1100;
  
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

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

.dropdown-item:hover {
  background-color: #f0fdf4;
  color: var(--secondary-color);
  padding-left: 1.75rem;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--text-dark);
}

/* Hero Section - Smart Design */
.hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  padding: 1rem 0;
  display: flex;
  align-items: center;
  min-height: 82vh;
  position: relative;
  overflow: hidden;
}

/* Decorative Background element */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 187, 71, 0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  text-align: left;
  color: var(--text-dark);
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-light);
  max-width: 90%;
  line-height: 1.7;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  transform: none;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

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

/* Error Modal Specifics */
.error-modal {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-overlay.active .error-modal {
  transform: scale(1);
  opacity: 1;
}

.error-icon {
  width: 70px;
  height: 70px;
  background-color: #fef2f2;
  color: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
}

.error-modal h3 {
  color: #ef4444;
  margin-bottom: 1rem;
}

.error-details-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
  max-height: 200px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.9rem;
  color: #334155;
  white-space: pre-wrap;
  user-select: all; /* Allows easy copying */
}

.btn-error-close {
  background-color: #64748b;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-error-close:hover {
  background-color: #475569;
}
.section-title {
  text-align: center;
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* About Styles */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Footer Styles */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  text-align: center;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Internal Page Shared Styles */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.2)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 800px;
  margin: 0.5rem auto 1rem;
}

.form-container {
  max-width: 900px;
  margin: -5rem auto 4rem;
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 8px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 10;
}

.form-section-header {
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
  margin: 2rem 0 1.5rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  transition: var(--transition);
  background: #fff;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(99, 187, 71, 0.2);
}

.form-control.error {
  border-color: var(--error);
  background-color: #fffafb;
}

.form-control.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none; /* Hidden by default */
}

/* Show error message when parent has error (optional, depending on JS logic) */
.form-group.has-error .error-message {
  display: block;
}

.form-control.error + .error-message {
  display: block;
}

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

/* Custom Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 12px;
  margin-top: 2rem;
}

.checkbox-wrapper input { display: none; }

.custom-check {
  width: 24px; height: 24px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:all 0.2s;
}

.checkbox-wrapper input:checked + .custom-check {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.custom-check::after {
  content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
  color: white; font-size: 14px; display: none;
}

.checkbox-wrapper input:checked + .custom-check::after { display: block; }

/* Photo Upload Styles */
.photo-upload-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.photo-preview-container {
  width: 150px;
  height: 180px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f9fafb;
  margin-bottom: 1rem;
  position: relative;
  transition: var(--transition);
}

.photo-preview-container:hover {
  border-color: var(--secondary-color);
  background: #f0fdf4;
}

.photo-preview-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.upload-placeholder {
  color: #9ca3af;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-placeholder i {
  font-size: 2rem;
  color: #d1d5db;
}

.btn-upload {
  background: #edf2f7;
  color: #4a5568;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid #d1d5db;
}

.btn-upload:hover {
  background: #e2e8f0;
  border-color: #cbd5e0;
}

#photoInput {
  display: none;
}

/* Requirements Styles */
.req-section {
  margin-top: -5rem;
  position: relative;
  z-index: 10;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.req-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.req-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.req-title {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 1rem;
}

.req-title i {
  color: var(--secondary-color);
  background: rgba(99, 187, 71, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.2rem;
}

.req-list li {
  position: relative;
  padding: 12px 15px 12px 40px;
  margin-bottom: 12px;
  color: #4b5563;
  font-size: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.req-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  font-size: 0.8rem;
}

.highlight-box {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  padding: 2.5rem;
  border-radius: 16px;
  margin-top: 2rem;
  color: var(--white);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.highlight-box::after {
  content: '\f508';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 8rem;
  color: rgba(255,255,255,0.1);
  z-index: -1;
  transform: rotate(-15deg);
}

.highlight-title {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.worker-badge {
  display: inline-block;
  background-color: rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
  font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-container {
    gap: 2rem;
  }
  .hero-text h1 {
    font-size: 3rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.success-modal {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .success-modal {
  transform: scale(1);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #e6f4ea;
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.success-modal h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.success-modal p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.btn-success {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background: #3d863d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(70, 153, 70, 0.3);
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .hero {
    padding: 1.5rem 0;
    min-height: auto;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .hero-text .btn {
    width: 100%;
    margin: 0.5rem 0 !important;
  }

  .hero-image {
    max-width: 100%;
  }

  .navbar {
    padding: 0.4rem 0;
  }

  .logo img {
    height: 40px;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 54px;
    gap: 1.5rem;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    padding: 2rem 0;
    height: calc(100vh - 54px);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  /* Mobile Dropdown Styling */
  .dropdown-menu {
      position: static;
      opacity: 1;
      visibility: visible;
      transform: none;
      box-shadow: none;
      padding: 0;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease-out; /* Only animate height */
      background-color: transparent;
      width: 100%;
      min-width: auto;
      border-radius: 0;
  }
  
  .dropdown.active .dropdown-menu {
      /* max-height handled by JS for smooth animation */
      /* Padding removed to fix jumpiness, spacing handled by items */
      background-color: rgba(0,0,0,0.02); 
  }

  .dropdown-item {
      text-align: center;
      padding: 12px;
      border-bottom: none; 
  }

  .dropdown > .nav-link i {
      transition: transform 0.3s ease;
  }
  
  .dropdown.active > .nav-link i {
      transform: rotate(180deg);
  }

  .nav-item {
    margin: 0;
    width: 100%;
  }

  .nav-item[style*="display: flex"] {
    flex-direction: column !important;
    padding: 0 1rem;
    width: 100% !important;
    box-sizing: border-box;
    margin-left: 0 !important;
  }

  .nav-menu .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem !important;
    font-size: 1rem !important;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .hero-text {
    text-align: center;
    padding: 0;
  }

  .hero-text h1 {
    font-size: 2.25rem;
  }

  .hero-text p {
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .page-header {
    padding: 1rem 0 3rem;
  }

  .page-header h1 {
    font-size: 1.7rem;
    padding: 0 1rem;
    margin-bottom: 0.3rem;
  }

  .header-description p {
    margin-bottom: 0.1rem;
    padding: 0 1.5rem;
    line-height: 1.4;
  }

  .form-container {
    margin-top: -4rem;
    padding: 1.5rem;
    border-radius: 12px;
  }

  .form-grid {
    gap: 0.75rem;
  }

  .form-group {
    margin-bottom: 0.5rem;
  }

  .form-label {
    margin-bottom: 0.1rem;
    font-size: 0.9rem;
  }

  .form-section-header {
    margin: 1.25rem 0 0.75rem;
    font-size: 1.1rem;
  }

  .photo-upload-wrapper {
    margin-bottom: 1rem;
  }

  .photo-preview-container {
    width: 120px;
    height: 150px;
  }

  .req-section {
    margin-top: -3.5rem;
  }

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

  .req-card {
    padding: 1.5rem;
  }

  .req-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .req-list li {
    font-size: 0.95rem;
    padding-left: 35px;
  }

  .highlight-box {
    padding: 1.5rem;
    margin-top: 1.5rem;
  }

  .highlight-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

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

  .page-header h1 {
    font-size: 1.75rem;
  }

  .req-section {
    margin-top: -2.5rem;
  }

  .req-card {
    padding: 1.25rem;
  }

  .highlight-title {
    font-size: 1.15rem;
  }
}

/* Registration Form Grid */
.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: end;
}

@media (max-width: 768px) {
    .registration-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .submission-actions {
        margin-bottom: 0 !important;
        margin-top: 1rem;
    }

    #signaturePad {
        height: 150px;
    }
}

/* Signature Pad Styles */
.signature-container {
    margin-bottom: 2rem;
}

.signature-pad-wrapper {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    overflow: hidden;
}

.signature-pad-wrapper:hover {
    border-color: var(--secondary-color);
}

#signaturePad {
    display: block;
    width: 100%;
    height: 180px;
    cursor: crosshair;
    touch-action: none; /* Prevent scrolling when drawing */
}

.signature-actions {
    display: flex;
    justify-content: flex-end;
    padding: 8px 12px;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
}

.btn-clear {
    background: #fff;
    color: #ef4444;
    border: 1px solid #fecaca;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

