/* Booking Form Design System Compliance Styles */
/* Following Potomac Worx Design System Guidelines */

/* Root Variables for Booking Form */
.booking-container {
  --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;
}

/* Main Container */
.booking-container {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease-out;
}

/* Progress Indicator Container */
.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);
  transition: all 0.3s ease;
}

.progress-indicator:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.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.active {
  background: linear-gradient(135deg, var(--patriot-blue) 0%, var(--accent-blue) 100%);
  color: white;
  animation: pulse 2s infinite;
}

.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);
  animation: patrioticPulse 2s ease-in-out infinite;
}

.progress-step-number.completed {
  background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%);
  color: white;
}

.progress-step-number.booking-confirmed {
  background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%);
  color: white;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
  animation: bookingConfirmedPulse 2s ease-in-out infinite;
}

@keyframes bookingConfirmedPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
    transform: scale(1.05);
  }
}

.progress-step-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 400;
  transition: all 0.3s ease;
}

.progress-step-label.active {
  color: var(--patriot-blue);
  font-weight: 500;
}

.progress-step-label.current {
  color: var(--patriot-red);
  font-weight: 600;
}

.progress-step-label.booking-confirmed {
  color: var(--success-green);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.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));
  background-size: 200% 100%;
  transition: width 0.5s ease;
  animation: patrioticGradientMove 3s linear infinite;
}

/* Form Step Cards with Glass Morphism */
.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;
  animation: slideInUp 0.5s ease-out;
}

.form-step-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
  pointer-events: none; /* Fix: Prevent blocking clicks */
  z-index: 1;
}

.form-step-card:hover::before {
  opacity: 1;
  animation: shimmer 1s ease-in-out;
}

.form-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: var(--patriot-white);
}

/* Step Headers */
.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;
}

.step-header::after {
  content: '★';
  position: absolute;
  right: -30px;
  color: var(--patriot-red);
  animation: starPulse 2s ease-in-out infinite;
}

/* Form Grid Layouts */
.form-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.form-grid-3 {
  grid-template-columns: 2fr 1fr 1fr;
}

/* Form Groups */
.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 Inputs with Glass Effect */
.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; /* Ensure inputs are above decorative elements */
}

.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);
  animation: inputFocusPulse 0.5s ease;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--patriot-red);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--accent-red);
  background: rgba(220, 38, 38, 0.05);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* Date Input Wrapper */
.date-input-wrapper {
  position: relative;
  width: 100%;
  cursor: pointer;
  z-index: 2; /* Ensure date wrapper is clickable */
}

.date-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* Ensure icon doesn't block clicks */
  color: var(--patriot-blue);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 1;
}

.date-input-wrapper:hover .date-input-icon {
  color: var(--patriot-red);
  animation: bounce 0.5s ease;
}

/* Error Messages */
.error-message {
  color: #DC3545;
  font-size: 0.61rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  animation: slideInLeft 0.3s ease;
  background: rgba(220, 53, 69, 0.1);
  padding: 0.5rem;
  border-radius: 6px;
  border-left: 3px solid #DC3545;
  transition: all 0.3s ease;
}

.error-message::before {
  content: '⚠';
  font-size: 1rem;
  color: #DC3545;
}

/* Help Text */
.help-text {
  color: var(--medium-text);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-style: italic;
}

/* Service Location Section */
.service-location-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(60, 59, 110, 0.1);
  position: relative;
}

.section-subtitle {
  color: var(--patriot-blue);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg,
    var(--patriot-blue) 0%,
    transparent 100%);
  margin-left: 1rem;
}

/* Auto-populated field styling */
.form-input.auto-populated {
  background: rgba(16, 185, 129, 0.05) !important;
  border-color: var(--success-green) !important;
  color: var(--dark-text);
  font-weight: 500;
}

.success-text {
  color: var(--success-green) !important;
  font-weight: 500;
}

/* Buttons with Universal Hover Animation */
.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-primary:hover {
  transform: translateY(-2px) scale(1.02);
  animation: borderGlowUniversal 2s ease-in-out infinite;
  box-shadow: 0 6px 20px rgba(60, 59, 110, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  animation: borderGlowUniversal 2s ease-in-out infinite;
}

.btn-success {
  background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px) scale(1.02);
  animation: patrioticBorderCycle 3s ease-in-out infinite;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none !important;
}

/* Navigation Button Container */
.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);
}

/* Checkbox Container */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 0.75rem;
  position: relative;
  z-index: 2; /* Ensure checkbox is clickable */
}

.checkbox-input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--patriot-blue);
}

.checkbox-label {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--dark-text);
}

/* SMS Opt-in Container */
.sms-optin-container {
  background: rgba(59, 59, 110, 0.05);
  border: 1px solid rgba(59, 59, 110, 0.1);
  border-radius: 12px;
  padding: 1rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sms-optin-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--patriot-red), var(--patriot-white), var(--patriot-blue));
  background-size: 200% 100%;
  animation: patrioticGradientMove 3s linear infinite;
}

.sms-optin-container:hover {
  background: rgba(59, 59, 110, 0.08);
  border-color: rgba(59, 59, 110, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sms-optin-container .checkbox-container {
  margin: 0;
  gap: 0.75rem;
}

.sms-optin-container .checkbox-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  accent-color: var(--patriot-blue);
  border: 2px solid rgba(59, 59, 110, 0.3);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.sms-optin-container .checkbox-input:checked {
  background: var(--patriot-blue);
  border-color: var(--patriot-blue);
  box-shadow: 0 0 0 2px rgba(60, 59, 110, 0.2);
}

.sms-optin-container .checkbox-label {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--medium-text);
  margin: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sms-optin-container .checkbox-label:hover {
  color: var(--dark-text);
}

.sms-optin-container .checkbox-label strong {
  color: var(--dark-text);
  font-weight: 600;
}

.sms-optin-container .checkbox-label small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--medium-text);
  font-style: italic;
  opacity: 0.8;
}

/* SMS Terms Link */
.sms-terms-link {
  background: transparent !important;
  border: none !important;
  color: var(--patriot-blue) !important;
  text-decoration: underline !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  padding: 0 !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.sms-terms-link:hover {
  color: var(--patriot-red) !important;
  text-decoration: none !important;
  transform: scale(1.05) !important;
}

/* Pricing Summary Card */
.pricing-summary {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(60, 59, 110, 0.2);
  margin-bottom: 2rem;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0;
}

.pricing-row.total {
  border-top: 2px solid var(--patriot-blue);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--patriot-blue);
}

.pricing-label {
  color: var(--medium-text);
}

.pricing-value {
  font-weight: 500;
  color: var(--dark-text);
}

/* Terms & Conditions Box */
.terms-box {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  max-height: 250px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.terms-box h4 {
  color: var(--patriot-blue);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.terms-box ul {
  margin: 0 0 1rem 1.5rem;
  color: var(--medium-text);
}

.terms-box li {
  margin-bottom: 0.5rem;
}

/* View Terms Button */
.view-terms-btn {
  background: transparent;
  color: var(--patriot-blue);
  border: 2px solid var(--patriot-blue);
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.view-terms-btn:hover {
  background: var(--patriot-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(60, 59, 110, 0.3);
}

/* Confirmation Screen */
.confirmation-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: zoomIn 0.5s ease-out;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  animation: successPulse 1s ease-out;
}

.confirmation-title {
  color: var(--patriot-blue);
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 600;
}

.confirmation-number {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.confirmation-number strong {
  color: var(--patriot-red);
  font-size: 1.5rem;
}

.confirmation-total {
  color: var(--medium-text);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Disabled State for No Inventory */
.no-inventory-message {
  width: 100%;
  padding: 1rem;
  border: 2px dashed var(--accent-red);
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.05);
  color: var(--accent-red);
  text-align: center;
  font-weight: 500;
}

/* Zip Code Validation Styles */
.zip-checking-indicator {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--patriot-blue);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  animation: fadeIn 0.3s ease;
}

/* Address Validation Styles */
.address-validation-indicator {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
  z-index: 3;
  transition: all 0.3s ease;
}

.address-validation-indicator.valid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.address-validation-indicator.invalid {
  background: rgba(220, 53, 69, 0.15);
  color: #DC3545;
  border: 1px solid rgba(220, 53, 69, 0.4);
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}

.address-validation-indicator.pending {
  background: rgba(60, 59, 110, 0.1);
  color: var(--patriot-blue);
  border: 1px solid rgba(60, 59, 110, 0.3);
}

.validation-icon {
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.validation-text {
  font-size: 0.8rem;
  white-space: nowrap;
}

.form-input.address-validated {
  border-color: var(--success-green) !important;
  background: rgba(16, 185, 129, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.form-input.address-invalid {
  border-color: #DC3545 !important;
  background: rgba(220, 53, 69, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  transition: all 0.3s ease;
}

/* Email Validation Styles */
.email-validation-indicator {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
  z-index: 3;
  transition: all 0.3s ease;
}

.email-validation-indicator.valid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.email-validation-indicator.invalid {
  background: rgba(220, 53, 69, 0.15);
  color: #DC3545;
  border: 1px solid rgba(220, 53, 69, 0.4);
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}

.form-input.email-validated {
  border-color: var(--success-green) !important;
  background: rgba(16, 185, 129, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.form-input.email-invalid {
  border-color: #DC3545 !important;
  background: rgba(220, 53, 69, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  transition: all 0.3s ease;
}

/* Phone Validation Styles */
.phone-validation-indicator {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
  z-index: 3;
  transition: all 0.3s ease;
}

.phone-validation-indicator.valid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.phone-validation-indicator.invalid {
  background: rgba(220, 53, 69, 0.15);
  color: #DC3545;
  border: 1px solid rgba(220, 53, 69, 0.4);
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}

.form-input.phone-validated {
  border-color: var(--success-green) !important;
  background: rgba(16, 185, 129, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.form-input.phone-invalid {
  border-color: #DC3545 !important;
  background: rgba(220, 53, 69, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  transition: all 0.3s ease;
}

/* Name Validation Styles */
.name-validation-indicator {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
  z-index: 3;
  transition: all 0.3s ease;
}

.name-validation-indicator.valid {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.name-validation-indicator.invalid {
  background: rgba(220, 53, 69, 0.15);
  color: #DC3545;
  border: 1px solid rgba(220, 53, 69, 0.4);
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}

.form-input.name-validated {
  border-color: var(--success-green) !important;
  background: rgba(16, 185, 129, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.form-input.name-invalid {
  border-color: #DC3545 !important;
  background: rgba(220, 53, 69, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
  transition: all 0.3s ease;
}

.checking-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form-input.zip-serviceable {
  border-color: var(--success-green);
  background: rgba(16, 185, 129, 0.05);
}

.form-input.zip-not-serviceable {
  border-color: var(--accent-red);
  background: rgba(220, 38, 38, 0.05);
}

.zip-check-message {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideInLeft 0.3s ease;
}

.zip-check-message.serviceable {
  color: var(--success-green);
}

.zip-check-message.not-serviceable {
  color: var(--accent-red);
}

/* Add pulsing effect when zip is being checked */
.form-input:focus.zip-checking {
  animation: zipCheckPulse 1.5s ease-in-out infinite;
}

@keyframes zipCheckPulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(60, 59, 110, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.06);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(60, 59, 110, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.06);
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes patrioticPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(178, 34, 52, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(60, 59, 110, 0.6);
  }
}

@keyframes successPulse {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(-50%) translateY(-5px); }
}

@keyframes inputFocusPulse {
  0% { box-shadow: 0 0 0 0 rgba(60, 59, 110, 0.4); }
  100% { box-shadow: 0 0 0 8px rgba(60, 59, 110, 0); }
}

@keyframes patrioticGradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Border Glow Universal Animation */
@keyframes borderGlowUniversal {
  0%, 100% {
    border-color: var(--patriot-white);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
  }
  25% {
    border-color: var(--patriot-blue);
    box-shadow: 0 0 0 2px rgba(60, 59, 110, 0.4), 0 0 20px rgba(60, 59, 110, 0.3);
  }
  50% {
    border-color: var(--patriot-red);
    box-shadow: 0 0 0 2px rgba(178, 34, 52, 0.4), 0 0 20px rgba(178, 34, 52, 0.3);
  }
  75% {
    border-color: var(--patriot-blue);
    box-shadow: 0 0 0 2px rgba(60, 59, 110, 0.4), 0 0 20px rgba(60, 59, 110, 0.3);
  }
}

/* Patriotic Border Cycle Animation */
@keyframes patrioticBorderCycle {
  0% {
    border-color: var(--patriot-red);
    box-shadow: 0 0 0 2px rgba(178, 34, 52, 0.4), 0 0 15px rgba(178, 34, 52, 0.3);
  }
  33% {
    border-color: var(--patriot-white);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 15px rgba(255, 255, 255, 0.4);
  }
  66% {
    border-color: var(--patriot-blue);
    box-shadow: 0 0 0 2px rgba(60, 59, 110, 0.4), 0 0 15px rgba(60, 59, 110, 0.3);
  }
  100% {
    border-color: var(--patriot-red);
    box-shadow: 0 0 0 2px rgba(178, 34, 52, 0.4), 0 0 15px rgba(178, 34, 52, 0.3);
  }
}

/* Touch-Optimized Interfaces */

/* Enhanced Touch Targets for Mobile */
@media (max-width: 768px) {
  .booking-container {
    padding: 0 1rem;
  }

  .form-step-card {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .step-header {
    font-size: 1.25rem;
  }

  .step-header::after {
    display: none;
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .progress-step-label {
    font-size: 0.65rem;
  }

  .form-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .form-navigation button {
    width: 100%;
  }

  .btn {
    padding: 1rem 2rem; /* Larger touch targets */
    font-size: 1.1rem; /* Better readability */
    min-height: 48px; /* Minimum touch target size */
    border-radius: 12px; /* More rounded for touch */
  }

  .confirmation-card {
    padding: 2rem;
  }

  .confirmation-title {
    font-size: 1.5rem;
  }

  .pricing-summary {
    padding: 1rem;
  }

  /* Enhanced Form Inputs for Touch */
  .form-input,
  .form-select,
  .form-textarea {
    padding: 1rem; /* Larger padding for easier touch */
    font-size: 1rem; /* Better readability */
    min-height: 48px; /* Minimum touch target */
    border-radius: 10px; /* More rounded */
    margin-bottom: 1rem; /* More spacing */
  }

  .form-group {
    margin-bottom: 1.5rem; /* More spacing between form groups */
  }

  .form-label {
    font-size: 1rem; /* Larger labels */
    margin-bottom: 0.75rem; /* More spacing */
  }

  /* Enhanced Checkbox for Touch */
  .checkbox-input {
    width: 24px; /* Larger checkbox */
    height: 24px; /* Larger checkbox */
    margin-top: 0.25rem;
  }

  .checkbox-label {
    font-size: 1rem; /* Larger text */
    line-height: 1.6; /* Better line height */
  }

  /* Enhanced SMS Opt-in Container */
  .sms-optin-container {
    padding: 1.5rem; /* More padding */
    border-radius: 12px; /* More rounded */
  }

  /* Better spacing for mobile */
  .section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  /* Enhanced date input for mobile */
  .date-input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
  }

  .date-input-icon {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--patriot-blue);
  }

  /* Progress indicator improvements */
  .progress-indicator {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }

  .progress-step-number {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  /* Enhanced navigation buttons */
  .form-navigation {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .form-navigation button {
    margin-bottom: 0.5rem;
  }
}

/* Enhanced Touch Optimizations for Small Screens */
@media (max-width: 480px) {
  .progress-indicator {
    padding: 1rem;
  }

  .progress-steps {
    position: relative;
  }

  .progress-step-number {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .form-step-card {
    padding: 1.25rem;
  }

  .step-header {
    font-size: 1.1rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  /* Extra touch optimizations for very small screens */
  .btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    min-height: 52px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 1.2rem;
    font-size: 1.1rem;
    min-height: 52px;
    margin-bottom: 1.2rem;
  }

  .checkbox-input {
    width: 28px;
    height: 28px;
    margin-top: 0.5rem;
  }

  .checkbox-label {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  /* Better spacing for small screens */
  .form-group {
    margin-bottom: 2rem;
  }

  .section-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  /* Larger touch targets for navigation */
  .form-navigation {
    margin-top: 3rem;
    padding-top: 2.5rem;
  }

  .form-navigation button {
    margin-bottom: 1rem;
  }
}

/* Tablet Optimizations */
@media (min-width: 481px) and (max-width: 768px) {
  .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-height: 48px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 1rem;
    font-size: 1rem;
    min-height: 48px;
  }

  .checkbox-input {
    width: 22px;
    height: 22px;
  }

  .checkbox-label {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Touch Device Optimizations (General) */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .btn:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(60, 59, 110, 0.3);
  }

  .form-input:hover,
  .form-select:hover,
  .form-textarea:hover {
    border-color: var(--patriot-blue);
  }

  /* Enhanced focus states for touch */
  .btn:focus-visible,
  .form-input:focus-visible,
  .form-select:focus-visible,
  .form-textarea:focus-visible,
  .checkbox-input:focus-visible {
    outline: 3px solid var(--patriot-red);
    outline-offset: 3px;
  }

  /* Better touch feedback */
  .btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  /* Prevent text selection on touch */
  .checkbox-label {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
}

/* Accessibility Improvements */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
.checkbox-input:focus-visible {
  outline: 3px solid var(--patriot-red);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .form-step-card {
    border-width: 2px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    border-width: 2px;
  }

  .btn {
    border-width: 2px;
    font-weight: 700;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Too Much Love Banner - Patriotic No Inventory Display */
.too-much-love-banner {
  background: linear-gradient(135deg,
    #002868 0%,       /* US Flag Navy Blue */
    #003f7f 50%,      /* Bright Navy Blue */
    #0052cc 100%);    /* Vibrant Blue */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(0, 82, 204, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  animation: patrioticBannerPulse 6s ease-in-out infinite;
}

@keyframes patrioticBannerPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 60px rgba(0, 82, 204, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  25% {
    box-shadow:
      0 8px 35px rgba(178, 34, 52, 0.3),
      0 0 70px rgba(178, 34, 52, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  50% {
    transform: scale(1.01);
    box-shadow:
      0 8px 35px rgba(0, 82, 204, 0.4),
      0 0 70px rgba(0, 82, 204, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  75% {
    box-shadow:
      0 8px 32px rgba(255, 255, 255, 0.2),
      0 0 65px rgba(255, 255, 255, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* Animated stars background - now white/light for contrast on dark background */
.too-much-love-banner::before {
  content: '★ ★ ★ ★ ★ ★ ★ ★ ★ ★';
  position: absolute;
  top: 10px;
  left: -100%;
  width: 200%;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.15);
  animation: starsMove 20s linear infinite;
  pointer-events: none;
  white-space: nowrap;
}

.too-much-love-banner::after {
  content: '★ ★ ★ ★ ★ ★ ★ ★ ★ ★';
  position: absolute;
  bottom: 10px;
  right: -100%;
  width: 200%;
  font-size: 1.5rem;
  color: rgba(178, 34, 52, 0.2);
  animation: starsMove 20s linear infinite reverse;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes starsMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.too-much-love-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 1rem 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(178, 34, 52, 0.5),
    0 0 40px rgba(255, 255, 255, 0.2);
  position: relative;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow:
      2px 2px 4px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(178, 34, 52, 0.5),
      0 0 40px rgba(255, 255, 255, 0.2);
  }
  50% {
    text-shadow:
      2px 2px 4px rgba(0, 0, 0, 0.3),
      0 0 30px rgba(178, 34, 52, 0.8),
      0 0 60px rgba(255, 255, 255, 0.4);
  }
}

@keyframes patrioticTextShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Add decorative stars around title */
.too-much-love-title::before,
.too-much-love-title::after {
  content: '⭐';
  position: absolute;
  font-size: 1.2rem;
  animation: starTwinkle 2s ease-in-out infinite;
}

.too-much-love-title::before {
  left: -35px;
  top: 5px;
  animation-delay: 0s;
}

.too-much-love-title::after {
  right: -35px;
  top: 5px;
  animation-delay: 1s;
}

@keyframes starTwinkle {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
}

.too-much-love-heart {
  font-size: 3rem;
  margin: 0.5rem 0;
  display: inline-block;
  position: relative;
  animation: patrioticHeartBeat 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(178, 34, 52, 0.4))
          drop-shadow(0 0 20px rgba(60, 59, 110, 0.2));
}

@keyframes patrioticHeartBeat {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(178, 34, 52, 0.4))
            drop-shadow(0 0 20px rgba(60, 59, 110, 0.2));
  }
  20% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(178, 34, 52, 0.6))
            drop-shadow(0 0 25px rgba(178, 34, 52, 0.3));
  }
  40% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
  }
  60% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(60, 59, 110, 0.6))
            drop-shadow(0 0 25px rgba(60, 59, 110, 0.3));
  }
  80% {
    transform: scale(0.98);
    filter: drop-shadow(0 0 10px rgba(178, 34, 52, 0.4))
            drop-shadow(0 0 20px rgba(60, 59, 110, 0.2));
  }
}

/* Add sparkles around heart */
.too-much-love-heart::before,
.too-much-love-heart::after {
  content: '✨';
  position: absolute;
  font-size: 1rem;
  animation: sparkle 3s linear infinite;
}

.too-much-love-heart::before {
  left: -25px;
  top: 10px;
  animation-delay: 0s;
}

.too-much-love-heart::after {
  right: -25px;
  top: 10px;
  animation-delay: 1.5s;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

.too-much-love-message {
  font-size: 1.125rem;
  color: #FFFFFF;
  margin: 1rem 0 0.5rem 0;
  font-weight: 700;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.too-much-love-details {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0.75rem 0;
  padding: 0 2rem;
}

.too-much-love-link {
  color: #FFD700;  /* Gold color for visibility on dark background */
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid #FFD700;
  transition: all 0.3s ease;
  position: relative;
  padding: 2px 4px;
}

.too-much-love-link:hover {
  color: #FFFFFF;
  background: linear-gradient(90deg,
    rgba(178, 34, 52, 0.8) 0%,
    rgba(178, 34, 52, 0.6) 100%);
  border-bottom-color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 6px;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(178, 34, 52, 0.5);
}

.too-much-love-link::after {
  content: ' 🇺🇸';
  opacity: 0;
  transition: all 0.3s ease;
  display: inline-block;
  margin-left: 0;
}

.too-much-love-link:hover::after {
  opacity: 1;
  margin-left: 5px;
}

.too-much-love-thanks {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
  margin: 1.5rem 0 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

/* Add small flag decorations */
.too-much-love-thanks::before,
.too-much-love-thanks::after {
  content: '🎯';
  position: absolute;
  top: 0.75rem;
  font-size: 0.8rem;
}

.too-much-love-thanks::before {
  left: 20%;
}

.too-much-love-thanks::after {
  right: 20%;
}

/* Responsive adjustments for Too Much Love banner */
@media (max-width: 768px) {
  .too-much-love-banner {
    padding: 1.5rem 1rem;
  }
  
  .too-much-love-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }
  
  .too-much-love-title::before,
  .too-much-love-title::after {
    display: none;
  }
  
  .too-much-love-heart {
    font-size: 2.5rem;
  }
  
  .too-much-love-heart::before,
  .too-much-love-heart::after {
    display: none;
  }
  
  .too-much-love-message {
    font-size: 1rem;
    letter-spacing: 0.5px;
  }
  
  .too-much-love-details {
    font-size: 0.9rem;
    padding: 0 1rem;
  }
  
  .too-much-love-link::after {
    display: none;
  }
  
  .too-much-love-thanks::before,
  .too-much-love-thanks::after {
    display: none;
  }
}

/* Dark mode support for Too Much Love banner */
@media (prefers-color-scheme: dark) {
  .too-much-love-banner {
    background: linear-gradient(135deg,
      #001a33 0%,       /* Very dark navy blue */
      #002868 50%,      /* US Flag Navy */
      #003d7a 100%);    /* Deep blue */
    border-color: rgba(255, 255, 255, 0.35);
  }
  
  .too-much-love-message {
    color: #ffffff;
  }
  
  .too-much-love-details,
  .too-much-love-thanks {
    color: rgba(255, 255, 255, 0.9);
  }
}

/* Manual Validate Button for Google Places NEW API */
.validate-address-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 16px;
  background: var(--patriot-blue);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.validate-address-btn:hover {
  background: var(--patriot-navy, #2C2B5E);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.validate-address-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.validate-address-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #6b7280;
}

/* Adjust the PlaceAutocompleteElement container */
#place-autocomplete-container {
  position: relative;
  width: 100%;
}

#place-autocomplete-container gmp-placeautocomplete {
  width: 100%;
}

/* Style the shadow DOM input if possible */
#place-autocomplete-container input {
  padding-right: 150px !important; /* Make room for validate button */
}