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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* Color System */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary-color: #059669;
  --secondary-dark: #047857;
  --secondary-light: #d1fae5;
  --accent-color: #ea580c;
  --accent-dark: #c2410c;
  --accent-light: #fed7aa;
  --success-color: #16a34a;
  --warning-color: #ca8a04;
  --error-color: #dc2626;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

/* Header */
.header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.logo-text h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0;
}

.logo-text span {
  font-size: 0.875rem;
  color: var(--neutral-600);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-link {
  text-decoration: none;
  color: var(--neutral-700);
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

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

.cta-button {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s ease;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--neutral-700);
  margin: 2px 0;
  transition: 0.3s;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--neutral-100);
  padding: var(--spacing-md) 0;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Main Content */
.main {
  min-height: calc(100vh - 200px);
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.page-header p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.header-with-print {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.print-button {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.print-button:hover {
  background: white;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  padding: var(--spacing-2xl) 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.hero-text h2 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--neutral-600);
  margin-bottom: var(--spacing-xl);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
}

.hero-image {
  position: relative;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.btn-large {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: 1.125rem;
}

/* Features Section */
.features {
  padding: var(--spacing-2xl) 0;
  background: white;
}

.features h2 {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  color: var(--neutral-800);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

/* Stats Section */
.stats {
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-2xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Testimonials */
.testimonials {
  padding: var(--spacing-2xl) 0;
  background: var(--neutral-50);
}

.testimonials h2 {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-xl);
}

.testimonial-card {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: var(--spacing-lg);
  color: var(--neutral-700);
}

.testimonial-author strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.testimonial-author span {
  color: var(--neutral-600);
  font-size: 0.875rem;
}

/* Membership Cards */
.membership-types {
  padding: var(--spacing-2xl) 0;
}

.membership-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.membership-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.membership-card.featured {
  border: 3px solid var(--primary-color);
  transform: scale(1.05);
}

.membership-header {
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-xl);
  text-align: center;
  position: relative;
}

.membership-card.featured .membership-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--accent-color);
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  margin: var(--spacing-md) 0;
}

.price span {
  font-size: 1rem;
  opacity: 0.8;
}

.membership-content {
  padding: var(--spacing-xl);
}

.membership-content ul {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.membership-content li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--neutral-200);
}

.membership-content .btn {
  width: 100%;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: var(--spacing-lg) 0;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison th,
.comparison td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid var(--neutral-200);
}

.comparison th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

.comparison tr:hover {
  background: var(--neutral-50);
}

/* Forms */
.form-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--neutral-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-help {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: 0.875rem;
  color: var(--neutral-500);
}

/* Form Progress */
.form-progress {
  padding: var(--spacing-xl) 0;
  background: var(--neutral-50);
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--neutral-300);
  z-index: 1;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--neutral-300);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  transition: all 0.3s ease;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
  background: var(--primary-color);
}

.step-label {
  font-size: 0.875rem;
  color: var(--neutral-600);
  text-align: center;
}

.progress-step.active .step-label {
  color: var(--primary-color);
  font-weight: 600;
}

/* Multi-step Form */
.form-step {
  display: none;
}

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

.form-navigation {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-xl) 0;
}

/* File Upload */
.upload-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.upload-group {
  margin-bottom: var(--spacing-lg);
}

.file-upload {
  position: relative;
  border: 2px dashed var(--neutral-300);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.upload-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--spacing-md);
}

.upload-text {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.file-upload small {
  color: var(--neutral-500);
}

/* FAQ */
.faq-section {
  padding: var(--spacing-2xl) 0;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.faq-search {
  display: flex;
  gap: var(--spacing-sm);
}

.faq-search input {
  padding: var(--spacing-md);
  border: 2px solid var(--neutral-300);
  border-radius: var(--radius-md);
  width: 300px;
}

.search-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.faq-categories {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.faq-category {
  background: transparent;
  color: var(--neutral-600);
  border: 2px solid var(--neutral-300);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-category:hover,
.faq-category.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: var(--spacing-lg);
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.faq-question:hover {
  background: var(--neutral-50);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.2s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.show {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  color: var(--neutral-700);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.contact-card {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
}

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

.contact-card.primary {
  border: 3px solid var(--primary-color);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
}

.contact-main {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.contact-sub {
  color: var(--neutral-600);
  margin-bottom: var(--spacing-lg);
}

.contact-button {
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s ease;
}

.contact-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
}

.cta-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--neutral-800);
  color: white;
  padding: var(--spacing-2xl) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: var(--spacing-lg);
  color: var(--primary-light);
}

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

.footer-section ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: var(--neutral-300);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-list,
  .cta-button {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-text h2 {
    font-size: 2rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .header-with-print {
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: center;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .progress-bar {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }
  
  .faq-header {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .faq-search input {
    width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-text h2 {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .btn-large {
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .upload-section {
    grid-template-columns: 1fr;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid var(--primary-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Accessibility */
.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;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .breadcrumb,
  .print-button,
  .btn,
  .cta-section {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .checklist-item {
    break-inside: avoid;
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}