/* Instant Quote Page Styles */

.instant-quote-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  min-height: 100vh;
}

.instant-quote-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  overflow: hidden;
}

@media (max-width: 768px) {
  .instant-quote-card {
    padding: 1.5rem;
    border-radius: 12px;
  }
}

/* Step Container */
.iq-step {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.iq-step.active {
  display: block;
}

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

.iq-step-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.iq-step-header h1,
.iq-step-header h2 {
  color: #070d59;
  margin-bottom: 0.5rem;
}

.iq-step-header p {
  font-size: 0.95rem;
  color: #6c757d;
}

/* Form Labels */
.form-label {
  color: #070d59;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.form-control,
.form-select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  margin-bottom: 0;
}

.form-control:focus,
.form-select:focus {
  border-color: #070d59;
  box-shadow: 0 0 0 3px rgba(7, 13, 89, 0.1);
}

/* Address Autocomplete (match embed form style) */
#iqAddress {
  min-height: 50px;
  border-radius: 12px;
  padding: 12px 14px;
  letter-spacing: -0.02em;
}

.iq-addr-wrap {
  position: relative;
}

.iq-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-top: 4px;
  z-index: 9999;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
  display: none;
}

.iq-autocomplete-item {
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.3;
  color: #2d2d2d;
}

.iq-autocomplete-item:last-child {
  border-bottom: none;
}

.iq-autocomplete-item:hover,
.iq-autocomplete-item.is-active {
  background: #f4f6ff;
}

/* Photo Upload Area */
.upload-area {
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8f9fa;
}

.upload-area:hover {
  border-color: #070d59;
  background: #f0f1f8;
}

.upload-area.dragover {
  border-color: #070d59;
  background: #e8eaf5;
  box-shadow: 0 0 0 4px rgba(7, 13, 89, 0.1);
}

.upload-prompt i {
  color: #070d59;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.photo-preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}

.photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-photo-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: background 0.2s;
}

.remove-photo-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Service Selection Grid */
.service-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.service-card-instant {
  position: relative;
  cursor: pointer;
}

.service-card-instant input {
  display: none;
}

.service-card-instant-content {
  padding: 1.5rem;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s ease;
  background: white;
}

.service-card-instant input:checked + .service-card-instant-content {
  border-color: #070d59;
  background: #f0f1f8;
  box-shadow: 0 0 0 3px rgba(7, 13, 89, 0.1);
}

.service-card-instant-content:hover {
  border-color: #070d59;
}

.service-card-instant-content h3 {
  color: #070d59;
  margin-bottom: 0.5rem;
}

/* Form Sections */
.form-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.option-card {
  position: relative;
  cursor: pointer;
}

.option-card input {
  display: none;
}

.option-card input:checked + .option-label {
  background: #070d59;
  color: white;
  border-color: #070d59;
}

.option-label {
  display: block;
  padding: 0.75rem 1rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: white;
  color: #070d59;
}

.option-label:hover {
  border-color: #070d59;
  background: #f0f1f8;
}

/* Pricing Sidebar */
.pricing-sidebar {
  @media (max-width: 1024px) {
    margin-top: 2rem;
    position: static !important;
  }
}

.pricing-card {
  background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.pricing-card h4 {
  color: #070d59;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.pricing-breakdown {
  margin-bottom: 1rem;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #e9ecef;
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-label {
  color: #6c757d;
}

.pricing-amount {
  color: #070d59;
  font-weight: 600;
}

.total-row {
  padding: 1rem 0;
  background: #f0f1f8;
  padding: 1rem;
  margin: 0 -1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
}

.total-row span {
  color: #070d59;
}

#pricingTotal {
  color: #070d59;
  font-size: 1.25rem;
}

/* Buttons */
.btn-accent {
  background: #F7B31C;
  background: linear-gradient(0deg, rgba(247, 179, 28, 1) 0%, rgba(251, 207, 23, 1) 100%);
  border: none;
  color: #373430;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  transition: all 0.35s ease;
  box-shadow: 0 4px 15px rgba(247, 179, 28, 0.4);
}

.btn-accent:hover:not(:disabled) {
  background-color: #ffb60d;
  color: #fff;
  transform: translateY(-2px);
}

.btn-accent:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-outline-secondary {
  border-color: #dee2e6;
  color: #6c757d;
  font-weight: 600;
}

.btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}

/* Form Check */
.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #dee2e6;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: #070d59;
  border-color: #070d59;
}

.form-check-input:focus {
  border-color: #070d59;
  box-shadow: 0 0 0 0.25rem rgba(7, 13, 89, 0.25);
}

.form-check-label {
  cursor: pointer;
  margin-bottom: 0;
}

.form-check-label a {
  color: #070d59;
  text-decoration: none;
  font-weight: 600;
}

.form-check-label a:hover {
  text-decoration: underline;
}

/* Text Utilities */
.text-brand-primary {
  color: #070d59 !important;
}

.text-brand-secondary {
  color: #ff6b35 !important;
}

/* Loading States */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* Responsive */
@media (max-width: 768px) {
  .iq-step-header h1 {
    font-size: 1.85rem !important;
  }

  .service-selection-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-sidebar {
    margin-top: 2rem;
  }

  .btn-lg {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    width: 100%;
  }

  .upload-area {
    padding: 1.5rem;
  }

  .iq-step > .d-flex {
    flex-direction: column;
  }

  .iq-step > .d-flex > button {
    width: 100%;
  }
}
