/* .CO Zone File Access - Institutional Design System */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  font-size: 16px;
  font-weight: 400;
  min-height: 100%;
}

/* Custom gradient backgrounds */
.bg-main-gradient {
  background: linear-gradient(to right, var(--main-gradient-start), var(--main-gradient-end));
}

.bg-footer-custom {
  background-color: var(--footer-bg) !important;
  border-top: 1px solid #e2e4e7;
}

/* Footer text styling for custom background */
.bg-footer-custom .text-gray-600 {
  color: #6b7280;
}

/* Improved main section styling */
.bg-main-gradient {
  background: linear-gradient(to right, var(--main-gradient-start), var(--main-gradient-end));
  min-height: calc(100vh - 140px); /* Adjust based on header/footer height */
}

/* Enhanced section styling for better contrast on gradient background */
section.bg-white {
  background-color: rgba(255, 255, 255, 0.95);  
}



/* Improve text contrast on gradient background */
.bg-main-gradient .text-gray-600 {
  color: #4b5563;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.bg-main-gradient .text-gray-900 {
  color: #111827;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Legacy gradient utilities for backward compatibility */
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-gray-50 {
  --tw-gradient-from: #f8fafc;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(248, 250, 252, 0));
}

.to-white {
  --tw-gradient-to: #ffffff;
}

/* Container system */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* Typography - Institutional Scale */
.text-sm { font-size: 0.875rem; line-height: 1.4; }
.text-base { font-size: 1rem; line-height: 1.6; }
.text-lg { font-size: 1.125rem; line-height: 1.6; }
.text-xl { font-size: 1.25rem; line-height: 1.5; }
.text-2xl { font-size: 1.5rem; line-height: 1.4; }
.text-3xl { font-size: 1.875rem; line-height: 1.3; }
.text-4xl { font-size: 2.25rem; line-height: 1.2; }
.text-5xl { font-size: 3rem; line-height: 1.1; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.leading-relaxed { line-height: 1.625; }
.leading-8 { line-height: 2rem; }

.prose {
  max-width: none;
}

.prose-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Institutional Color Palette */
:root {
  --primary-blue: #1e40af;
  --primary-blue-hover: #1d4ed8;
  --primary-blue-light: #3b82f6;
  --gray-50: #f8fafc;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5e1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  
  /* Custom brand colors from inline styles */
  --main-gradient-start: #C6C8CB;
  --main-gradient-end: #DEE0E1;
  --footer-bg: #F5F6F8;
}

.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }
.text-blue-600 { color: var(--primary-blue); }
.text-white { color: #ffffff; }
.text-red-600 { color: #dc2626; }
.text-green-600 { color: #059669; }

.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-blue-600 { background-color: var(--primary-blue); }
.bg-blue-700 { background-color: var(--primary-blue-hover); }

.border-gray-100 { border-color: var(--gray-100); }
.border-gray-200 { border-color: var(--gray-200); }

/* Layout System */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Layout utilities */
.min-h-full { min-height: 100%; }
.h-full { height: 100%; }
.mt-auto { margin-top: auto; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 75rem; }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.rounded-lg { border-radius: 0.5rem; }
.overflow-hidden { overflow: hidden; }
.shadow-sm { 
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); 
}

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.transition-colors { 
  transition-property: color, background-color, border-color; 
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); 
  transition-duration: 150ms; 
}

/* Spacing System */
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-3 { margin-right: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-16 { margin-top: 4rem; }

.p-4 { padding: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Borders */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-transparent { border-color: transparent; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

/* Shadow */
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Form Elements */
.form-input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  background-color: #ffffff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.form-select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.form-textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  background-color: #ffffff;
  resize: vertical;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* Buttons */
.btn-primary {
  
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: #ffffff;
  background-color: #2563eb;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.5);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: #374151;
  background-color: #ffffff;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-secondary:hover {
  background-color: #f9fafb;
}

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* Error styles */
.field-validation-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.input-validation-error {
  border-color: #dc2626;
}

.input-validation-error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgb(220 38 38 / 0.1);
}

/* Large Button Style */
.btn-primary-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border: 1px solid transparent;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 0.5rem;
  color: #ffffff;
  background-color: var(--primary-blue);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  min-width: 220px;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
  border: none;
  outline: none;
}

.btn-primary-large:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-primary-large:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.5);
}

.btn-primary-large:active {
  transform: translateY(0);
}

/* ================================
   HEADER STYLES
   ================================ */

.header-main {
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
}

.brand-link {
  text-decoration: none !important;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin: -0.5rem;
}




.brand-logo {
  transition: transform 0.2s ease;
}



.brand-text {
  user-select: none;
}

.text-primary-blue {
  color:#1f2937 !important;
}

.separator {
  font-weight: 300;
  font-size: 1.5rem;
  opacity: 0.7;
}

.brand-main {
  letter-spacing: 0.02em;
}

.brand-sub {
  letter-spacing: 0.01em;
}

.no-underline {
  text-decoration: none !important;
}

.no-underline:hover,
.no-underline:focus,
.no-underline:active,
.no-underline:visited {
  text-decoration: none !important;
}

/* Responsive header adjustments */
@media (max-width: 768px) {
  .brand-text {
    font-size: 0.95rem;
  }
  
  .separator {
    font-size: 1.25rem;
  }
  
  .brand-main,
  .brand-sub {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .header-main .w-full {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .brand-text {
    font-size: 0.875rem;
  }
  
  .separator {
    font-size: 1.125rem;
  }
  
  .brand-main,
  .brand-sub {
    font-size: 0.875rem;
  }
}

/* ================================
   HERO SECTION STYLES
   ================================ */

.hero-section {
  height: 20rem;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  max-width: 42rem;
  padding: 4rem 0;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 900;
  color: #111827;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
  font-size: 0.25rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-width: 200px;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 0.5rem;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-width: 150px;
}

.btn-hero-secondary:hover {
  background: white;
  border-color: #3b82f6;
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* ================================
   SERVICES SECTION STYLES
   ================================ */

.services-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgb(45 51 67 / var(--tw-bg-opacity, 1));
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.service-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.service-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: #4b5563;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.service-action {
  margin-top: auto;
}

.btn-service {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: rgb(45 51 67 / var(--tw-bg-opacity, 1));
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-service:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.additional-info {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.info-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #6b7280;
  max-width: 48rem;
  margin: 0 auto;
}

/* ================================
   RESPONSIVE BREAKPOINTS
   ================================ */

/* Tablet styles */
@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.375rem;
  }
  
  .hero-actions {
    flex-wrap: nowrap;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  .section-subtitle {
    font-size: 1.375rem;
  }
}

/* Desktop styles */
@media (min-width: 1024px) {
  .hero-content {
    max-width: 48rem;
  }
  
  .hero-title {
    font-size: 5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .services-section {
    padding: 1rem 0;
  }
  
  .section-title {
    font-size: 3.5rem;
  }
}

/* Large desktop */
@media (min-width: 1280px) {
  .hero-title {
    font-size: 5.5rem;
  }
}

/* Mobile-first responsive adjustments */
@media (max-width: 767px) {
  .hero-section {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    min-width: auto;
  }
  
  .services-section {
    padding: 1.5rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.125rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .additional-info {
    padding: 2rem;
  }
}

/* ================================
   MODAL AND FORM ENHANCEMENTS
   ================================ */

/* Enhanced form styles */
.form-label.required::after {
  content: ' *';
  color: #dc2626;
  font-weight: bold;
}

.form-help {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
  line-height: 1.4;
}

.form-disclaimer {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.btn-submit {
  min-width: 200px;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Enhanced message styles */
.success-message,
.error-message {
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.success-message {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
}

.error-message {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

/* Improved form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

/* Enhanced modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(4px);
}

.modal-overlay {
  position: absolute;
  inset: 0;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  width: 90%;
  max-width: 48rem;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: between;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: #6b7280;
  transition: all 0.2s ease;
  margin-left: auto;
}

.modal-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.modal-body {
  padding: 1rem 2rem 2rem;
}

/* Accessibility improvements */
.modal:not(.hidden) {
  animation: modalSlideIn 0.3s ease-out;
}

.modal.hidden {
  display: none;
}

/* Loading animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Focus management */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: #ffffff;
}

/* Enhanced field validation styles */
.field-validation-error {
  display: block;
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.input-validation-error {
  border-color: #dc2626 !important;
  background-color: #fef2f2;
}

.input-validation-error:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

/* Responsive form improvements */
@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
  
  .modal-content {
    width: 80%;
  }
  
  .modal-header,
  .modal-body {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .modal-content {
    width: 70%;
    max-width: 56rem;
  }
}

/* Print styles */
@media print {
  .modal {
    display: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .form-input,
  .form-select,
  .form-textarea {
    border: 2px solid #000000;
  }
  
  .btn-primary {
    border: 2px solid #000000;
  }
  
  .success-message {
    border: 2px solid #059669;
  }
  
  .error-message {
    border: 2px solid #dc2626;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .modal-content,
  .btn-submit,
  .modal-close {
    animation: none;
    transition: none;
  }
  
  .animate-spin {
    animation: none;
  }
}

/* Ultra-wide screens */
@media (min-width: 1536px) {
  .hero-title {
    font-size: 6rem;
  }
}

.btn-primary-large:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.3);
  color: #ffffff;
  text-decoration: none;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.modal.hidden .modal-content {
  transform: scale(0.95);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-100);
  background-color: var(--gray-50);
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  border-radius: 0.375rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: var(--gray-100);
  color: var(--gray-900);
}

.modal-body {
  padding: 2rem;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

/* Form Grid System */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

/* Message Styles */
.success-message {
  padding: 1rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
  color: #166534;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.error-message {
  padding: 1rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  color: #dc2626;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Table Styles */
table {
  border-collapse: collapse;
  table-layout: fixed;
}

table th,
table td {
  text-align: left;
  vertical-align: top;
}

/* Enhanced header styling */
header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Navigation styles */
nav a {
  text-decoration: none;
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: var(--primary-blue);
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

nav a:hover:after {
  width: 100%;
}

/* Utility classes */
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hidden.md\\:flex {
    display: none !important;
  }
  
  .text-4xl, .text-5xl {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .py-16 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .modal-header,
  .modal-body {
    padding: 1.5rem;
  }
  
  .btn-primary-large {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-width: auto;
  }
  
  .max-w-7xl {
    max-width: 90%;
  }
  
  .space-y-4 > * + * {
    margin-top: 1rem;
  }
  
  .space-x-6 > * + * {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .flex-col {
    align-items: center;
  }
}

/* Focus management for accessibility */
.modal:not(.hidden) .form-input:first-of-type {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid #000000;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    border: 2px solid #000000;
  }
}

/* Success message */
.success-message {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* Error message */
.error-message {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:text-sm { font-size: 0.875rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1024px) {
  .lg\:px-12 { padding-left: 3rem; padding-right: 3rem; }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}