/* Critical CSS for Booking Form - Immediate Loading */
/* Essential styles for above-the-fold content to prevent FOUC */

:root {
  --patriot-red: #B22234;
  --patriot-white: #FFFFFF;
  --patriot-blue: #3C3B6E;
  --gradient-start: #B22234;
  --gradient-end: #3C3B6E;
  --light-bg: #F8F9FA;
  --dark-text: #212529;
  --medium-text: #495057;
  --accent-blue: #2C5282;
  --accent-red: #C53030;
  --success-green: #10b981;
}

/* Critical Layout - Prevent Layout Shift */
.booking-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 100vh;
}

/* Critical Progress Indicator */
.progress-indicator {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.progress-step {
  text-align: center;
  flex: 1;
  position: relative;
}

.progress-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.progress-step-number.current {
  background: linear-gradient(135deg, var(--patriot-red) 0%, var(--patriot-blue) 100%);
  color: white;
  border: 3px solid var(--patriot-white);
  box-shadow: 0 0 20px rgba(178, 34, 52, 0.4);
}

.progress-step-number.completed {
  background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%);
  color: white;
}

.progress-step-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 400;
  transition: all 0.3s ease;
}

.progress-step-label.current {
  color: var(--patriot-red);
  font-weight: 600;
}

.progress-bar-container {
  height: 4px;
  background: rgba(229, 231, 235, 0.5);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--patriot-red), var(--patriot-white), var(--patriot-blue));
  transition: width 0.5s ease;
}

/* Critical Form Card */
.form-step-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Critical Typography */
.step-header {
  color: var(--patriot-blue);
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  display: inline-block;
}

/* Critical Form Elements */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-text);
  font-size: 0.95rem;
}

.form-label.required::after {
  content: ' *';
  color: var(--patriot-red);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(60, 59, 110, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--dark-text);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 2;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--patriot-blue);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 3px rgba(60, 59, 110, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Critical Buttons */
.btn {
  padding: 0.875rem 2rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--patriot-blue) 0%, var(--accent-blue) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(60, 59, 110, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Critical Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(60, 59, 110, 0.1);
}

/* Critical Error Handling */
.error-message {
  color: #DC3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(220, 53, 69, 0.1);
  padding: 0.5rem;
  border-radius: 6px;
  border-left: 3px solid #DC3545;
}

.error-message::before {
  content: '⚠';
  font-size: 1rem;
  color: #DC3545;
}

/* Critical Mobile Responsiveness */
@media (max-width: 768px) {
  .booking-container {
    padding: 0 1rem;
  }

  .form-step-card {
    padding: 1.5rem;
  }

  .form-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .progress-step-label {
    font-size: 0.65rem;
  }
}

/* Loading State Styles */
.css-loading .form-step-card {
  opacity: 0;
  transform: translateY(20px);
}

.css-loaded .form-step-card {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* Prevent FOUC */
.booking-form-container {
  visibility: hidden;
}

.booking-form-container.styles-loaded {
  visibility: visible;
}