/**
 * Smart Directory Pro - Modern Submit Form Styles
 * React-style modern form with proper width constraints and interactions
 * 
 * @package Smart_Directory_Pro
 * @version 1.0
 */

/* ============================================================================
   CSS CUSTOM PROPERTIES - DESIGN SYSTEM (with fallbacks for contrast)
   ============================================================================ */
:root {
  /* Primary Colors with good contrast */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Success Colors */
  --success-50: #ecfdf5;
  --success-100: #d1fae5;
  --success-500: #10b981;
  --success-600: #059669;
  --success-700: #047857;

  /* Error Colors */
  --error-50: #fef2f2;
  --error-100: #fee2e2;
  --error-500: #ef4444;
  --error-600: #dc2626;
  --error-700: #b91c1c;

  /* Warning Colors */
  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-500: #f59e0b;
  --warning-600: #d97706;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Typography */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Animation */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   CONTAINER AND LAYOUT FIXES
   ============================================================================ */

/* Fix the excessive width issue */
.smart-directory-submit-form-wrapper,
.smart-directory-pro-enhanced-form,
.smart-directory-form,
#smart-directory-submit-form {
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: var(--space-6);
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

/* Modern container styling */
.modern-submit-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8);
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.modern-submit-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-600), var(--primary-700));
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

/* ============================================================================
   COMPACT PRICING PACKAGES - SEPARATE FROM FORM
   ============================================================================ */

.pricing-packages-wrapper {
  max-width: 1000px;
  margin: 0 auto var(--space-8);
  padding: var(--space-6);
}

.pricing-container {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.pricing-header h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.pricing-header p {
  font-size: var(--font-size-base);
  color: var(--gray-600);
  max-width: 500px;
  margin: 0 auto;
}

.packages-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}

.package-item-compact {
  position: relative;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-base);
  cursor: pointer;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.package-item-compact:hover {
  border-color: var(--primary-300);
  background: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.package-item-compact.selected {
  border-color: var(--primary-500);
  background: var(--primary-50);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.package-item-compact.selected::after {
  content: '✓';
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 20px;
  height: 20px;
  background: var(--primary-500);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
  animation: checkmark-bounce 0.3s ease-out;
}

.package-item-compact h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.package-item-compact .package-price {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: var(--space-3);
  line-height: 1;
}

.package-item-compact .package-features {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
  flex-grow: 1;
}

.package-item-compact .package-features li {
  position: relative;
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
  color: var(--gray-700);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  text-align: left;
}

.package-item-compact .package-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: var(--space-1);
  width: 14px;
  height: 14px;
  background: var(--success-500);
  color: white;
  border-radius: var(--radius-full);
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.select-package-btn-compact {
  width: 100%;
  background: var(--primary-600);
  color: white;
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: var(--space-2);
}

.select-package-btn-compact:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.select-package-btn-compact.selected {
  background: var(--success-600);
  transform: scale(0.98);
}

.select-package-btn-compact.selected::after {
  content: ' ✓';
}

/* ============================================================================
   PACKAGE SELECTION - MODERN CARD LAYOUT
   ============================================================================ */

.package-selection-section {
  margin-bottom: var(--space-12);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.package-item,
.package-card {
  position: relative;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  cursor: pointer;
  overflow: hidden;
}

.package-item::before,
.package-card::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 var(--transition-slow);
}

.package-item:hover::before,
.package-card:hover::before {
  left: 100%;
}

.package-item:hover,
.package-card:hover {
  border-color: var(--primary-300);
  background: var(--primary-50);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.package-item.selected,
.package-card.selected {
  border-color: var(--primary-500);
  background: var(--primary-50);
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.package-item.selected::after,
.package-card.selected::after {
  content: '✓';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 24px;
  height: 24px;
  background: var(--primary-500);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  animation: checkmark-bounce 0.3s ease-out;
}

@keyframes checkmark-bounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.package-item h3,
.package-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.package-price {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--primary-600);
  margin-bottom: var(--space-4);
  line-height: 1;
}

.package-price .currency {
  font-size: var(--font-size-xl);
  vertical-align: top;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.package-features li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  color: var(--gray-700);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.package-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: var(--space-2);
  width: 16px;
  height: 16px;
  background: var(--success-500);
  color: white;
  border-radius: var(--radius-full);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.select-package-btn {
  width: 100%;
  background: var(--primary-600);
  color: white;
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.select-package-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
  transition: width var(--transition-base), height var(--transition-base);
}

.select-package-btn:hover::before {
  width: 300px;
  height: 300px;
}

.select-package-btn:hover {
  background: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.select-package-btn.selected {
  background: var(--success-600);
  transform: scale(0.98);
}

.select-package-btn.selected::after {
  content: '✓ Selected';
}

/* ============================================================================
   FORM SECTIONS AND FIELDS
   ============================================================================ */

.form-section,
.mk-form-section {
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.form-section:hover,
.mk-form-section:hover {
  background: white;
  border-color: var(--primary-200);
  box-shadow: var(--shadow-sm);
}

.form-section h3,
.mk-form-section h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--primary-200);
  position: relative;
}

.form-section h3::after,
.mk-form-section h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary-500);
  border-radius: var(--radius-full);
}

.form-field,
.mk-form-row,
.mk-field-group {
  margin-bottom: var(--space-6);
  position: relative;
}

.form-field label,
.mk-form-label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.form-field input,
.form-field textarea,
.form-field select,
.mk-form-input,
.mk-form-textarea,
.mk-form-select {
  width: 100%;
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  border: 2px solid var(--gray-300, #d1d5db);
  border-radius: var(--radius-lg, 0.75rem);
  font-size: var(--font-size-base, 1rem);
  background: white;
  transition: all var(--transition-base, 250ms ease);
  position: relative;
  
  /* Fallback for older browsers */
  padding: 0.75rem 1rem;
  border-color: #d1d5db;
  border-radius: 0.75rem;
  font-size: 1rem;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.mk-form-input:focus,
.mk-form-textarea:focus,
.mk-form-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: var(--primary-50);
}

.form-field input:focus + label,
.mk-form-input:focus + .mk-form-label {
  color: var(--primary-600);
}

/* Enhanced textarea styling */
.form-field textarea,
.mk-form-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}

/* Select dropdown styling */
.form-field select,
.mk-form-select {
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"/></svg>');
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 20px;
  padding-right: var(--space-10);
  appearance: none;
  cursor: pointer;
}

/* File upload styling */
input[type="file"] {
  padding: var(--space-2) !important;
  border: 2px dashed var(--gray-300) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--gray-50) !important;
  cursor: pointer !important;
  transition: all var(--transition-base) !important;
}

input[type="file"]:hover {
  border-color: var(--primary-400) !important;
  background: var(--primary-50) !important;
}

/* Required field indicators */
.required::after {
  content: ' *';
  color: var(--error-500);
  font-weight: 700;
}

/* Field help text */
.field-description,
.mk-form-help {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin-top: var(--space-2);
  line-height: 1.4;
}

/* ============================================================================
   FORM VALIDATION STATES
   ============================================================================ */

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select,
.mk-field-group.has-error .mk-form-input,
.mk-field-group.has-error .mk-form-textarea,
.mk-field-group.has-error .mk-form-select,
input.error,
textarea.error,
select.error {
  border-color: var(--error-500);
  background: var(--error-50);
}

.form-field.has-error input:focus,
.form-field.has-error textarea:focus,
.form-field.has-error select:focus,
.mk-field-group.has-error .mk-form-input:focus,
.mk-field-group.has-error .mk-form-textarea:focus,
.mk-field-group.has-error .mk-form-select:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error,
.mk-form-error {
  color: var(--error-600);
  font-size: var(--font-size-sm);
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.field-error::before,
.mk-form-error::before {
  content: '⚠';
  color: var(--error-500);
}

/* Success state */
.form-field.has-success input,
.form-field.has-success textarea,
.form-field.has-success select {
  border-color: var(--success-500);
  background: var(--success-50);
}

/* ============================================================================
   SUBMIT BUTTON AND ACTIONS
   ============================================================================ */

.form-submit-section {
  text-align: center;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-200);
}

.submit-business-btn,
.mk-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  border: none;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  min-width: 200px;
  box-shadow: var(--shadow-md);
}

.submit-business-btn::before,
.mk-submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-slow);
}

.submit-business-btn:hover::before,
.mk-submit-button:hover::before {
  left: 100%;
}

.submit-business-btn:hover,
.mk-submit-button:hover {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.submit-business-btn:active,
.mk-submit-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.submit-business-btn:disabled,
.mk-submit-button:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-business-btn.loading,
.mk-submit-button.loading {
  opacity: 0.8;
  pointer-events: none;
}

.submit-business-btn .spinner,
.mk-submit-button .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

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

/* ============================================================================
   MESSAGES AND NOTIFICATIONS
   ============================================================================ */

.success-message,
.error-message,
.mk-message {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  animation: slideDown 0.3s ease-out;
}

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

.success-message,
.mk-message.mk-success {
  background: var(--success-50);
  border: 2px solid var(--success-200);
  color: var(--success-700);
}

.success-message::before,
.mk-message.mk-success::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--success-500);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.error-message,
.mk-message.mk-error {
  background: var(--error-50);
  border: 2px solid var(--error-200);
  color: var(--error-700);
}

.error-message::before,
.mk-message.mk-error::before {
  content: '!';
  width: 20px;
  height: 20px;
  background: var(--error-500);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.mk-message.mk-warning {
  background: var(--warning-50);
  border: 2px solid var(--warning-200);
  color: var(--warning-700);
}

.mk-message.mk-info {
  background: var(--primary-50);
  border: 2px solid var(--primary-200);
  color: var(--primary-700);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
  .pricing-packages-wrapper {
    margin: 0 auto var(--space-6);
    padding: var(--space-4);
  }

  .pricing-container {
    padding: var(--space-4);
  }

  .pricing-header {
    margin-bottom: var(--space-6);
  }

  .packages-grid-compact {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    max-width: 300px;
  }

  .package-item-compact {
    min-height: 180px;
    padding: var(--space-3);
  }

  .package-item-compact h3 {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-2);
  }

  .package-item-compact .package-price {
    font-size: var(--font-size-lg);
  }

  .modern-submit-container,
  .smart-directory-submit-form-wrapper,
  .smart-directory-pro-enhanced-form {
    margin: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-xl);
  }

  .packages-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .package-item,
  .package-card {
    padding: var(--space-4);
  }

  .form-section,
  .mk-form-section {
    padding: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .submit-business-btn,
  .mk-submit-button {
    width: 100%;
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-base);
  }

  .form-field input,
  .form-field textarea,
  .form-field select,
  .mk-form-input,
  .mk-form-textarea,
  .mk-form-select {
    padding: var(--space-3);
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  .pricing-packages-wrapper {
    margin: 0 auto var(--space-4);
    padding: var(--space-2);
  }

  .pricing-container {
    padding: var(--space-3);
  }

  .pricing-header h2 {
    font-size: var(--font-size-xl);
  }

  .pricing-header p {
    font-size: var(--font-size-sm);
  }

  .packages-grid-compact {
    max-width: 280px;
  }

  .package-item-compact {
    min-height: 160px;
    padding: var(--space-3);
  }

  .package-item-compact h3 {
    font-size: var(--font-size-sm);
  }

  .package-item-compact .package-price {
    font-size: var(--font-size-base);
  }

  .modern-submit-container,
  .smart-directory-submit-form-wrapper,
  .smart-directory-pro-enhanced-form {
    margin: var(--space-2);
    padding: var(--space-3);
  }

  .package-item h3,
  .package-card h3 {
    font-size: var(--font-size-lg);
  }

  .package-price {
    font-size: var(--font-size-2xl);
  }
}

/* ============================================================================
   ANIMATIONS AND MICRO-INTERACTIONS
   ============================================================================ */

/* Fade in animation for form sections */
.form-section,
.mk-form-section,
.package-item,
.package-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.form-section:nth-child(2) { animation-delay: 0.1s; }
.form-section:nth-child(3) { animation-delay: 0.2s; }
.form-section:nth-child(4) { animation-delay: 0.3s; }

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

/* Loading state animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Focus ring animations */
@keyframes focusRing {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0);
  }
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  animation: focusRing 0.6s ease-out;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* ============================================================================
   FORM LAYOUT IMPROVEMENTS
   ============================================================================ */

/* Two column layout for certain fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

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

/* Special styling for form header */
.submit-form-header {
  text-align: center;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--gray-200);
}

.submit-form-header h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.submit-form-header p {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}