/* Vehicle Inspection Form Styles */
.inspection-form-page {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  padding: 2rem 0 4rem 0;
}

/* Form Header */
.form-header {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(74, 144, 226, 0.1);
}

.form-header h1 {
  color: #1e293b;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  letter-spacing: -0.5px;
}

.form-reset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.reset-question {
  color: #64748b;
  font-size: 0.9rem;
}

.reset-btn {
  background: white;
  border: 2px solid #3b82f6;
  color: #ef4444;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 12px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.08);
}

.reset-btn:hover,
.reset-btn:focus {
  background: #f0f7ff;
  color: #dc2626;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.reset-btn:active {
  background: #e0e7ef;
  color: #b91c1c;
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.10);
}

/* Form Sections */
.form-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(74, 144, 226, 0.1);
}

.form-section h2 {
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.3px;
}

/* --- Modern Vehicle Type Selection --- */
/* All vehicle type selection styles removed for section rebuild */

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.required {
  color: #ef4444;
  font-weight: 600;
}

.optional {
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 400;
}

.maps-enabled {
  color: #4a90e2;
  font-size: 0.8rem;
  font-weight: 400;
}

/* Form Inputs */
.form-input {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: white;
  color: #1f2937;
}

.form-input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Input Wrapper for Clear Button */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.clear-btn {
  position: absolute;
  right: 2.5rem;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.clear-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.dropdown-arrow {
  position: absolute;
  right: 0.75rem;
  color: #9ca3af;
  pointer-events: none;
}

/* Select Wrapper */
.select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  background: white;
  color: #1f2937;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.select-arrow {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

/* Price Input */
.price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.price-input {
  padding-left: 1.5rem;
}

/* Manual Mode Checkbox */
.manual-mode {
  margin-top: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #6b7280;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: #4a90e2;
  border-color: #4a90e2;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
}

/* Form Actions */
.form-actions {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin-top: 2rem;
  text-align: center;
}

.submit-btn {
  background: #4a90e2;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  background: #2563a6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.submit-btn i {
  transition: transform 0.2s ease;
}

.submit-btn:hover i {
  transform: translateX(2px);
}

/* RV Type Section */
.rv-type-section {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .inspection-form-page {
    padding: 1rem 0 2rem 0;
  }

  .form-header,
  .form-section,
  .form-actions {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .form-header h1 {
    font-size: 1.5rem;
  }

  .form-reset {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .vehicle-type-list {
    gap: 0.5rem;
  }

  .vehicle-type-option {
    padding: 0.75rem 1rem;
  }

  .vehicle-option-content {
    gap: 0.75rem;
  }

  .radio-circle {
    width: 18px;
    height: 18px;
  }

  .vehicle-type-option input:checked + .vehicle-option-content .radio-circle::after {
    width: 6px;
    height: 6px;
  }

  .vehicle-icon {
    font-size: 1rem;
    min-width: 50px;
  }

  .vehicle-title {
    font-size: 0.85rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .form-header,
  .form-section,
  .form-actions {
    padding: 1rem;
  }

  .vehicle-type-option {
    padding: 0.75rem;
  }

  .vehicle-option-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .vehicle-text {
    flex-direction: column;
    gap: 0.25rem;
  }

  .form-input,
  .form-select {
    padding: 0.625rem 0.75rem;
    font-size: 0.9rem;
  }
}

/* Focus States for Accessibility */
.form-input:focus,
.form-select:focus,
.clear-btn:focus,
.reset-btn:focus,
.submit-btn:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

.reset-btn:focus,
.reset-btn:active {
  outline: none;
  box-shadow: none;
}

/* Loading States */
.submit-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.terms-card {
  background: #f9fafb;
  border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(36,64,120,0.06);
  margin-top: 2rem;
  padding: 1.5rem 1.5rem 1.2rem 1.5rem;
  max-width: 700px;
  /* Remove centering */
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}
.terms-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #233045;
  text-align: left;
}
.terms-scrollbox {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  max-width: 800px;
  max-height: 300px;
  min-height: 180px;
  overflow-y: auto;
  padding: 1.1rem 1rem;
  font-size: 0.92rem;
  color: #222b45;
  margin-bottom: 0.7rem;
  line-height: 1.45;
  box-shadow: 0 2px 12px rgba(36,64,120,0.06);
  text-align: left;
}
.terms-scrollbox strong {
  font-weight: 700;
  color: #2563a6;
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.2rem;
}
.terms-scrollbox .terms-update {
  color: #6b7a90;
  font-size: 0.92em;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.terms-scrollbox br {
  display: none;
}
.terms-scrollbox p {
  margin: 0.3em 0 0.3em 0;
}
.terms-scroll-hint {
  font-size: 0.88rem;
  color: #374151;
  margin-bottom: 0.7rem;
  text-align: left;
}
.terms-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
  text-align: left;
}
.terms-checkbox-row input[type="checkbox"] {
  accent-color: #4a90e2;
  width: 1.1em;
  height: 1.1em;
  border-radius: 4px;
  border: 1.5px solid #bfc9d9;
  margin-right: 0.3em;
}
.terms-checkbox-row label {
  font-size: 1rem;
  color: #222b45;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.terms-link {
  color: #2563a6;
  text-decoration: underline;
  font-weight: 600;
}
.terms-link:hover {
  color: #4a90e2;
}
.terms-error {
  color: #ef4444;
  font-size: 0.97rem;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  display: block;
  text-align: left;
}
@media (max-width: 600px) {
  .terms-card {
    padding: 1rem 0.5rem 1rem 0.5rem;
    max-width: 100%;
  }
  .terms-scrollbox {
    padding: 0.8rem 0.5rem;
    font-size: 0.95rem;
    max-width: 100%;
  }
  .terms-title {
    font-size: 1rem;
  }
  .terms-checkbox-row label {
    font-size: 0.95rem;
  }
} 

/* Simple Vehicle Type Selection Styles */
.vehicle-type-list-simple {
  display: flex;
  flex-direction: column;
  background: #fafbfc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  /* Remove gap to use margin on items for equal spacing */
}
.vehicle-type-option-simple {
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  gap: 0.6rem;
  padding: 0.2rem 0.1rem;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 1.1rem;
}
.vehicle-type-option-simple:last-child {
  margin-bottom: 0;
}
.icon-group {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 1.25em;
}
.info-icon-simple {
  color: #fbbf24;
  margin-left: 0.5rem;
  font-size: 1.1em;
}
.vehicle-type-option-simple input[type="radio"]:checked {
  accent-color: #2563eb;
} 

.svg-icon-simple {
  width: 1.5em;
  height: 1.5em;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.08em;
} 

.svg-icon-large {
  width: 2em;
  height: 2em;
} 

.vehicle-type-option-simple input[type="radio"]:focus,
.vehicle-type-option-simple input[type="radio"]:active {
  outline: none;
  box-shadow: none;
} 

.terms-checkbox-row input[type="checkbox"]:focus,
.terms-checkbox-row input[type="checkbox"]:active {
  outline: none;
  box-shadow: none;
} 

.mobile-menu-toggle:focus,
.mobile-menu-toggle:active {
  outline: none;
  box-shadow: none;
} 

button:focus,
button:active,
input[type="button"]:focus,
input[type="button"]:active,
input[type="submit"]:focus,
input[type="submit"]:active,
input[type="reset"]:focus,
input[type="reset"]:active,
a:focus,
a:active {
  outline: none !important;
  box-shadow: none !important;
} 