/* Global Component Classes - Advanced Professional System */
/* ===================================================
   ARCHITECTURAL FOUNDATION - SEMANTIC CLASS NAMING
   ================================================== */

/* Layout Foundation Classes */
.layout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.layout-section {
  padding: 5rem 0;
}

.layout-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.layout-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.layout-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* ===================================================
   HERO SYSTEM - DYNAMIC CONTENT DISPLAY
   ================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.hero-overlay-gradient {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.8) 0%, rgba(220, 38, 38, 0.6) 100%);
}

.hero-overlay-dark {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 4;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* ===================================================
   NAVIGATION SYSTEM - PROFESSIONAL HEADER
   ================================================== */

.navigation-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

.navigation-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-gray-800);
}

.navigation-brand img {
  height: 3rem;
  width: auto;
  margin-right: 0.75rem;
}

.navigation-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navigation-link {
  color: var(--color-gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.navigation-link:hover {
  color: var(--color-primary);
}

.active-nav-link {
  color: var(--color-primary) !important;
  font-weight: 600;
}

.active-nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.dropdown-menu {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 0.25rem;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999;
}

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

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--color-gray-700);
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--color-gray-50);
  color: var(--color-primary);
}

.call-to-action-button {
  background: var(--color-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.call-to-action-button:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ===================================================
   MOBILE NAVIGATION - RESPONSIVE MENU SYSTEM
   ================================================== */

.mobile-menu-toggle {
  display: none;
}

.mobile-menu-toggle + label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
}

.mobile-menu-toggle + label:hover {
  background: var(--color-gray-100);
}

.mobile-menu-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

.mobile-menu-toggle:checked + label + .mobile-menu-container {
  display: block;
}

.mobile-menu-list {
  padding: 1rem 0;
}

.mobile-menu-item {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--color-gray-700);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--color-gray-100);
}

.mobile-menu-item:hover {
  background: var(--color-gray-50);
  color: var(--color-primary);
}

.active-mobile-link {
  background: var(--color-primary);
  color: white !important;
}

.mobile-submenu-toggle {
  display: none;
}

.mobile-submenu-toggle + label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  padding: 1rem 1.5rem;
  color: var(--color-gray-700);
  border-bottom: 1px solid var(--color-gray-100);
}

.mobile-submenu-container {
  display: none;
  background: var(--color-gray-50);
}

.mobile-submenu-toggle:checked + label + .mobile-submenu-container {
  display: block;
}

.mobile-submenu-item {
  display: block;
  padding: 0.75rem 2rem;
  color: var(--color-gray-600);
  text-decoration: none;
  border-bottom: 1px solid var(--color-gray-200);
  transition: all 0.2s ease;
}

.mobile-submenu-item:hover {
  background: white;
  color: var(--color-primary);
}

.mobile-cta-button {
  display: block;
  background: var(--color-accent);
  color: white;
  padding: 1rem 1.5rem;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  border-top: 1px solid var(--color-gray-200);
  transition: all 0.3s ease;
}

.mobile-cta-button:hover {
  background: #dc2626;
}

/* ===================================================
   CONTENT SECTIONS - STRUCTURAL COMPONENTS
   ================================================== */

.content-section {
  padding: 5rem 0;
  background: var(--color-gray-50);
}

.content-section-alternate {
  background: white;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.content-header {
  text-align: center;
  margin-bottom: 3rem;
}

.content-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

/* Modifier: use plain solid color text (e.g., white on dark backgrounds) */
.plain-title {
  background: none !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}

.content-subtitle {
  font-size: 1.25rem;
  color: var(--color-gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.content-grid {
  display: grid;
  gap: 2rem;
}

.content-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.content-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.content-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.content-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.content-card-content {
  padding: 1.5rem;
}

.content-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: 0.5rem;
}

.content-card-description {
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.content-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.content-card-features li {
  padding: 0.25rem 0;
  color: var(--color-gray-600);
  font-size: 0.875rem;
}

.content-card-features li::before {
  content: '•';
  color: var(--color-primary);
  font-weight: bold;
  margin-right: 0.5rem;
}

.content-card-action {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.content-card-action:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ===================================================
   FORM SYSTEM - PROFESSIONAL INPUT COMPONENTS
   ================================================== */

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

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

.form-label {
  display: block;
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  background: var(--color-accent);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.form-submit:disabled {
  background: var(--color-gray-400);
  cursor: not-allowed;
  transform: none;
}

/* ===================================================
   STATISTICS DISPLAY - TRUST BUILDING COMPONENTS
   ================================================== */

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-card {
  background: white;
  padding: 2rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--color-gray-600);
  font-weight: 500;
}

/* ===================================================
   TESTIMONIAL SYSTEM - SOCIAL PROOF COMPONENTS
   ================================================== */

.testimonial-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-gray-50);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial-rating {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.testimonial-stars {
  color: var(--color-gold);
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.testimonial-score {
  color: var(--color-gray-600);
  font-weight: 600;
}

.testimonial-content {
  color: var(--color-gray-700);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  margin-right: 1rem;
}

.testimonial-info h4 {
  margin: 0;
  color: var(--color-gray-800);
  font-weight: 600;
}

.testimonial-info p {
  margin: 0.25rem 0 0 0;
  color: var(--color-gray-500);
  font-size: 0.875rem;
}

/* ===================================================
   FOOTER SYSTEM - SITE CLOSURE COMPONENTS
   ================================================== */

.site-footer {
  background: var(--color-gray-900);
  color: white;
  padding: 3rem 0 1rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 3rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--color-gray-400);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-contact {
  color: var(--color-gray-400);
  line-height: 1.6;
}

.footer-contact strong {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-800);
  padding-top: 1rem;
  text-align: center;
  color: var(--color-gray-500);
  font-size: 0.875rem;
}

/* ===================================================
   UTILITY CLASSES - FUNCTIONAL HELPERS
   ================================================== */

.utility-hidden {
  display: none !important;
}

.utility-visible {
  display: block !important;
}

.utility-flex {
  display: flex;
}

.utility-flex-column {
  flex-direction: column;
}

.utility-items-center {
  align-items: center;
}

.utility-justify-center {
  justify-content: center;
}

.utility-text-center {
  text-align: center;
}

.utility-text-left {
  text-align: left;
}

.utility-text-right {
  text-align: right;
}

.utility-margin-auto {
  margin: 0 auto;
}

.utility-full-width {
  width: 100%;
}

.utility-relative {
  position: relative;
}

.utility-absolute {
  position: absolute;
}

.utility-fixed {
  position: fixed;
}

/* ===================================================
   ACCESSIBILITY ENHANCEMENTS - WCAG COMPLIANCE
   ================================================== */

.accessibility-skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
}

.accessibility-skip-link:focus {
  top: 0;
}

.accessibility-focus-visible:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.accessibility-high-contrast {
  filter: contrast(1.5);
}

.accessibility-reduced-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ===================================================
   PERFORMANCE OPTIMIZATIONS - LOADING STATES
   ================================================== */

.loading-skeleton {
  background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--color-gray-200);
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ================================================== */

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

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

  .content-title {
    font-size: 2rem;
  }

  .content-subtitle {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .testimonial-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .layout-section {
    padding: 2rem 0;
  }

  .content-card-content {
    padding: 1rem;
  }

  .form-container {
    padding: 1.5rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   MULTI-STEP FORM SYSTEM - AWARD-WINNING UX
   ================================================== */

/* Form Container - Compact and Modern */
.multi-step-form-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
}

.multi-step-form-container.compact {
  max-width: 480px;
}

/* Progress Bar - Minimal and Elegant */
.form-progress-minimal {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.step-counter {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  margin-bottom: 0.75rem;
}

.progress-line {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* Form Steps Container */
.form-steps-container {
  position: relative;
  min-height: 300px;
}

/* Individual Steps */
.form-step {
  display: none;
  padding: 2rem;
  animation: stepEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.form-step.step-enter {
  animation: stepEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.step-exit {
  animation: stepExit 0.3s ease-in-out;
}

@keyframes stepEnter {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes stepExit {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

/* Step Content */
.step-question {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2rem;
  line-height: 1.3;
  text-align: center;
}

/* Choice Buttons - Icon Grid Layout */
.form-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0.75rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  color: #475569;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100px;
  aspect-ratio: 1;
}

.choice-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s;
}

.choice-btn:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.choice-btn:hover::before {
  left: 100%;
}

.choice-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: #1d4ed8;
  color: white;
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.choice-btn i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  width: auto;
  text-align: center;
  color: #64748b;
  transition: all 0.2s ease;
}

.choice-btn span {
  font-size: 0.875rem;
  line-height: 1.2;
  word-wrap: break-word;
  display: block;
}

.choice-btn.active i {
  color: white;
}

/* Form Input Wrapper */
.form-input-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.125rem;
  z-index: 2;
}

/* Form Inputs */
.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.form-input.valid {
  border-color: #10b981;
  background: #f0fdf4;
}

.form-input.invalid {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Location Options */
.location-options {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.location-btn {
  flex: 1;
  min-width: 140px;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 0.875rem;
}

.location-btn:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.location-btn.secondary {
  border-color: #94a3b8;
  color: #64748b;
}

.location-btn.secondary:hover {
  background: #f1f5f9;
}

.or-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.form-nav-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 100px;
  justify-content: center;
}

.prev-btn {
  background: white;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.prev-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.prev-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.next-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.next-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Optional Note */
.optional-note {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Field Error */
.field-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  animation: slideDown 0.2s ease-out;
}

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

/* Success Indicator */
.success-indicator {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #10b981;
  font-size: 1.25rem;
  animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10;
}

@keyframes popIn {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* Field Helper */
.field-helper {
  color: #6b7280;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  opacity: 0;
  animation: fadeIn 0.2s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Success Screen */
.form-success-screen {
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.success-animation {
  font-size: 4rem;
  color: #10b981;
  margin-bottom: 1.5rem;
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.form-success-screen h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 1rem;
}

.form-success-screen p {
  color: #047857;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.success-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.success-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.success-info i {
  font-size: 1.5rem;
  color: #3b82f6;
}

.success-info div {
  text-align: left;
}

.success-info strong {
  display: block;
  color: #1f2937;
  font-weight: 600;
}

.success-info span {
  color: #6b7280;
  font-size: 0.875rem;
}

.next-steps {
  margin-bottom: 2rem;
}

.next-steps h3 {
  color: #065f46;
  margin-bottom: 1rem;
}

.next-steps ol {
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
}

.next-steps li {
  color: #047857;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.next-steps li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.success-actions .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.success-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.success-actions .btn-secondary {
  background: white;
  color: #475569;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease;
}

.success-actions .btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Financing Options Screen */
.financing-options-screen {
  padding: 2rem;
  text-align: center;
}

.financing-options-screen h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.financing-options-screen p {
  color: #64748b;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.financing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.financing-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.financing-card.featured {
  border: 2px solid #fbbf24;
  position: relative;
}

.card-badge {
  position: absolute;
  top: -10px;
  right: 1rem;
  background: #fbbf24;
  color: #92400e;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.financing-card h3 {
  color: #1e293b;
  margin-bottom: 1rem;
}

.financing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.financing-card li {
  color: #64748b;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.financing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 600;
}

.apply-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s ease;
}

.apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.financing-note {
  background: #fefce8;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.financing-note p {
  margin: 0;
  color: #92400e;
  font-size: 0.875rem;
}

.financing-note .small {
  font-size: 0.75rem;
  color: #a16207;
  margin-top: 0.5rem;
}

.financing-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  color: #64748b;
}

.financing-actions {
  margin-top: 2rem;
}

/* Toast Notifications */
.error-toast,
.success-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  color: #1f2937;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s ease-out;
  max-width: 350px;
}

.error-toast {
  border-left: 4px solid #ef4444;
}

.success-toast {
  border-left: 4px solid #10b981;
}

.error-toast.show,
.success-toast.show {
  transform: translateX(0);
}

/* Mobile Optimizations */
  .form-choices {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .choice-btn {
    min-height: 80px;
    padding: 1rem 0.5rem;
  }

  .choice-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .choice-btn span {
    font-size: 0.75rem;
  }

@media (max-width: 480px) {
  .form-step {
    padding: 1rem;
  }

  .step-question {
    font-size: 1.125rem;
  }

  .choice-btn {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
  }

  .form-input,
  .form-textarea {
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
  }

  .input-icon {
    left: 0.75rem;
  }

  .form-navigation {
    padding: 0.75rem 1rem;
  }

  .form-success-screen {
    padding: 2rem 1rem;
  }

  .success-animation {
    font-size: 3rem;
  }

  .form-success-screen h2 {
    font-size: 1.5rem;
  }

  .success-info {
    padding: 0.75rem;
  }

  .financing-options-screen {
    padding: 1.5rem 1rem;
  }

  .financing-options-screen h2 {
    font-size: 1.5rem;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .choice-btn,
  .form-nav-btn,
  .apply-btn,
  .success-actions .btn-primary,
  .success-actions .btn-secondary {
    transition: none;
  }

  .choice-btn:hover,
  .form-nav-btn:hover,
  .apply-btn:hover,
  .success-actions .btn-primary:hover,
  .success-actions .btn-secondary:hover {
    transform: none;
  }

  .progress-fill,
  .form-step,
  .field-error,
  .success-indicator,
  .field-helper,
  .success-animation,
  .error-toast,
  .success-toast {
    animation: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .choice-btn {
    border-width: 3px;
  }

  .form-input,
  .form-textarea {
    border-width: 3px;
  }

  .location-btn {
    border-width: 3px;
  }
}

/* Focus Management */
.choice-btn:focus,
.location-btn:focus,
.form-nav-btn:focus,
.apply-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.form-input:focus,
.form-textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Screen Reader Only */
.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;
}
