/* Vehicle Inspection Services Page Styles */

/* Theme Colors */
.text-red {
  color: #dc2626 !important;
}

.text-green {
  color: #22c55e !important;
}

.bg-primary {
  background-color: #22c55e !important;
}

.btn-primary {
  background-color: #22c55e !important;
  border-color: #22c55e !important;
}

.btn-primary:hover {
  background-color: #16a34a !important;
  border-color: #16a34a !important;
}

.btn-danger {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
}

.btn-danger:hover {
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
}

.border-green {
  border-color: #22c55e !important;
}

/* Header Styles */
.mega-dropdown {
  min-width: 800px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999 !important;
}

.dropdown-menu {
  z-index: 9999 !important;
}

/* Hero Section */
.hero-section {
  background-color: #f8f9fa;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #333;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

.hero-image-container {
  display: flex;
  justify-content: start;
  align-items: center;
  margin-top: 2rem;
}

/* Booking Form */
.booking-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.booking-form-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid #22c55e;
  max-width: 500px;
  width: 100%;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.form-label {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25);
}

.btn-red {
  background-color: #dc2626;
  border-color: #dc2626;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-red:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Form Validation */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid,
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
}

.was-validated .form-control:valid,
.was-validated .form-select:valid,
.form-control.is-valid,
.form-select.is-valid {
  border-color: #22c55e;
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Input Group for Phone */
.input-group .form-select {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.input-group .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group .form-select:focus {
  z-index: 3;
  border-right: 1px solid #22c55e;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

/* Benefits Section */
.benefits-section {
  background-color: #f8f9fa;
}

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid #e9ecef;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-icon-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.benefit-icon i {
  font-size: 3rem;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.benefit-text {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Process Section */
.process-step {
  position: relative;
  padding: 2rem 1rem;
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #dc2626;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.step-icon {
  background: #f1f5f9;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.step-icon i {
  font-size: 2rem;
  color: #22c55e;
}

/* Report Section */
.report-section {
  background: white;
}

.report-content {
  padding-right: 2rem;
}

.report-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.report-description {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.report-btn {
  border: 2px solid #dc2626;
  color: #dc2626;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.report-btn:hover {
  background-color: #dc2626;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.report-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

.report-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  border: 1px solid #e5e7eb;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.report-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.overall-rating {
  text-align: right;
}

.rating-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.rating-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.report-items {
  space-y: 1rem;
}

.report-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.item-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.item-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.red-icon {
  background-color: #dc2626;
}

.yellow-icon {
  background-color: #f59e0b;
}

.item-name {
  font-size: 0.95rem;
  color: #374151;
  font-weight: 500;
}

.item-score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 120px;
}

.progress-bar {
  width: 80px;
  height: 6px;
  background-color: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.red-fill {
  background-color: #dc2626;
}

.yellow-fill {
  background-color: #f59e0b;
}

.score-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  min-width: 35px;
}

/* Inspection Process Section */
.inspection-process-section {
  background-color: #f8f9fa;
}

.process-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid #e9ecef;
}

.process-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.process-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.process-icon-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.process-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.process-card-text {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Vehicle Inspection Cover Section */
.vehicle-inspection-cover-section {
  background: white;
}

.inspection-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2rem;
}

.inspection-features {
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.feature-bullet {
  color: #dc2626;
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 0.75rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.feature-text {
  color: #374151;
  font-size: 1rem;
  line-height: 1.5;
}

.car-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.car-inspection-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
}

.categories-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2rem;
}

.category-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.category-bullet {
  color: #dc2626;
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 0.75rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.category-text {
  color: #374151;
  font-size: 1rem;
  line-height: 1.5;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.step-description {
  color: #64748b;
  line-height: 1.6;
}

/* Coverage Section */
.coverage-item {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: #374151;
}

.coverage-item i {
  font-size: 1.2rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: #374151;
}

.benefits-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: bold;
}

/* Flag Icon */
.flag-icon {
  font-size: 1.2em;
  display: inline-block;
}

/* FAQ Section */
.faq-section {
  background-color: #f8f9fa;
}

.accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.accordion-button {
  background: white;
  border: none;
  font-weight: 600;
  color: #1e293b;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  text-align: left;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: #fef2f2;
  color: #dc2626;
  box-shadow: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dc2626'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.accordion-button:not(.collapsed) {
  background: #f8fafc;
  color: #dc2626;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.accordion-body {
  padding: 1.5rem;
  color: #64748b;
  line-height: 1.6;
}

/* Enhanced Form Styling */
.field-focused {
  transform: scale(1.01);
  transition: transform 0.2s ease;
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: #22c55e;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2322c55e' d='m2.3 6.73.94-.94 1.38 1.38'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4m0-2.4L5.8 7'/%3e%3c/svg%3e");
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .booking-form-card {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .booking-form-card {
    padding: 1.5rem;
    margin: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .benefit-card {
    padding: 1.5rem;
  }

  .process-step {
    padding: 1.5rem 1rem;
  }

  .step-icon {
    width: 60px;
    height: 60px;
  }

  .step-icon i {
    font-size: 1.5rem;
  }

  .report-content {
    padding-right: 0;
    margin-bottom: 2rem;
    text-align: center;
  }

  .report-title {
    font-size: 2rem;
  }

  .report-card {
    max-width: 100%;
    padding: 1.5rem;
  }

  .item-score {
    min-width: 100px;
  }

  .progress-bar {
    width: 60px;
  }

  /* Process Cards Mobile */
  .process-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }

  .process-icon-img {
    width: 60px;
    height: 60px;
  }

  .process-card-title {
    font-size: 1.1rem;
  }

  .process-card-text {
    font-size: 0.9rem;
  }

  /* Inspection Cover Mobile */
  .inspection-subtitle {
    font-size: 1.25rem;
  }

  .categories-title {
    font-size: 1.25rem;
  }

  .car-image-container {
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .car-inspection-img {
    max-width: 350px;
  }

  .feature-text,
  .category-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .inspector-figure {
    display: none;
  }

  .benefit-card {
    padding: 1.5rem;
  }

  .benefit-icon-img {
    width: 50px;
    height: 50px;
  }

  .benefit-icon i {
    font-size: 2.5rem;
  }

  .process-step {
    padding: 1rem;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .step-icon {
    width: 50px;
    height: 50px;
  }

  .step-icon i {
    font-size: 1.25rem;
  }

  /* Process Cards Small Mobile */
  .process-card {
    padding: 1.25rem 0.75rem;
  }

  .process-icon-img {
    width: 50px;
    height: 50px;
  }

  .process-card-title {
    font-size: 1rem;
  }

  .process-card-text {
    font-size: 0.85rem;
  }

  /* Inspection Cover Small Mobile */
  .inspection-subtitle {
    font-size: 1.1rem;
  }

  .categories-title {
    font-size: 1.1rem;
  }

  .car-inspection-img {
    max-width: 280px;
  }

  .feature-text,
  .category-text {
    font-size: 0.85rem;
  }

  /* FAQ Mobile */
  .accordion-button {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }

  .accordion-body {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.benefit-card,
.process-step {
  animation: fadeInUp 0.6s ease-out;
}

.benefit-card:nth-child(1) {
  animation-delay: 0.1s;
}
.benefit-card:nth-child(2) {
  animation-delay: 0.2s;
}
.benefit-card:nth-child(3) {
  animation-delay: 0.3s;
}
.benefit-card:nth-child(4) {
  animation-delay: 0.4s;
}

.process-step:nth-child(1) {
  animation-delay: 0.1s;
}
.process-step:nth-child(2) {
  animation-delay: 0.2s;
}
.process-step:nth-child(3) {
  animation-delay: 0.3s;
}
.process-step:nth-child(4) {
  animation-delay: 0.4s;
}

/* Footer Styles */
footer {
  background-color: #1f2937 !important;
}

footer .text-red {
  color: #dc2626 !important;
}

footer a:hover {
  color: #22c55e !important;
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner-border {
  color: #22c55e;
}
