/* Quote / Booking wizard */
.quote-page {
  padding: 2rem 0 4.5rem;
  background: var(--bg-body);
  min-height: 60vh;
}

.quote-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.quote-breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.quote-breadcrumb a:hover {
  color: var(--orange);
}

.quote-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Service card */
.quote-service-card {
  position: sticky;
  top: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

[data-theme="dark"] .quote-service-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.quote-service-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.15rem;
  background: var(--bg-body);
  min-height: 160px;
  max-height: 240px;
  overflow: hidden;
}

[data-theme="dark"] .quote-service-card-media {
  background: rgba(0, 0, 0, 0.2);
}

.quote-service-card-media img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  object-position: center;
}

.quote-service-region {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(10, 31, 46, 0.75);
  color: #fff;
  backdrop-filter: blur(6px);
}

.quote-service-region-kenya { border: 1px solid rgba(74, 222, 128, 0.4); }
.quote-service-region-usa { border: 1px solid rgba(96, 165, 250, 0.4); }

.quote-service-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.quote-service-eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.quote-service-card-body h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0 0 0.65rem;
}

.quote-service-card-body > p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.quote-service-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quote-service-features li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
}

.quote-service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* Wizard */
.quote-wizard-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 2rem 2rem;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .quote-wizard-wrap {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.quote-wizard-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.35rem;
}

.quote-wizard-header p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.quote-steps-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .quote-steps-bar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.quote-step-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

.quote-step-indicator.is-active,
.quote-step-indicator.is-done {
  opacity: 1;
}

.quote-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(26, 146, 202, 0.12);
  color: var(--orange);
  border: 1.5px solid rgba(26, 146, 202, 0.25);
  flex-shrink: 0;
}

.quote-step-indicator.is-active .quote-step-num {
  background: linear-gradient(135deg, #1a92ca, #1580b0);
  color: #fff;
  border-color: transparent;
}

.quote-step-indicator.is-done .quote-step-num {
  background: rgba(26, 146, 202, 0.2);
}

.quote-step-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.quote-step-connector {
  width: 16px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.quote-form-step {
  display: none;
}

.quote-form-step.is-active {
  display: block;
  animation: quoteStepIn 0.35s ease both;
}

@keyframes quoteStepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quote-form-step-head {
  margin-bottom: 1.35rem;
}

.quote-form-step-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.4rem;
}

.quote-form-step-head h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.3rem;
}

.quote-form-step-head p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.quote-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}

.quote-field-full { grid-column: 1 / -1; }
.quote-field-half { grid-column: span 1; }

.quote-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.quote-required {
  color: #e53e3e;
  margin-left: 2px;
}

.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .quote-field input,
[data-theme="dark"] .quote-field select,
[data-theme="dark"] .quote-field textarea {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.1);
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.quote-field input.is-invalid,
.quote-field select.is-invalid,
.quote-field textarea.is-invalid {
  border-color: #e53e3e;
}

.quote-field-error {
  font-size: 0.75rem;
  color: #e53e3e;
  margin-top: 0.3rem;
}

.quote-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.4rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quote-btn svg {
  width: 16px;
  height: 16px;
}

.quote-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1a92ca 0%, #1580b0 100%);
  box-shadow: 0 4px 14px rgba(26, 146, 202, 0.3);
}

.quote-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 146, 202, 0.4);
}

.quote-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.quote-btn-ghost {
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid var(--border);
}

.quote-btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* Review panel */
.quote-review-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quote-review-group {
  padding: 1rem 1.15rem;
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  border-radius: 10px;
}

[data-theme="dark"] .quote-review-group {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.06);
}

.quote-review-group h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.65rem;
}

.quote-review-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--border-light);
}

.quote-review-row:last-child {
  border-bottom: none;
}

.quote-review-row dt {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.quote-review-row dd {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  margin: 0;
}

.quote-alert {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.quote-alert-error {
  background: rgba(229, 62, 62, 0.1);
  border: 1px solid rgba(229, 62, 62, 0.25);
  color: #c53030;
}

[data-theme="dark"] .quote-alert-error {
  color: #fc8181;
}

/* Success modal */
.quote-success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.quote-success-modal[hidden] {
  display: none;
}

.quote-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 46, 0.65);
  backdrop-filter: blur(4px);
}

.quote-success-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: quoteStepIn 0.4s ease both;
}

.quote-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(26, 146, 202, 0.12);
  color: var(--orange);
}

.quote-success-icon svg {
  width: 28px;
  height: 28px;
}

.quote-success-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.375rem;
  color: var(--text-primary);
  margin: 0 0 0.65rem;
}

.quote-success-card > p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 0.75rem;
}

.quote-success-ref {
  font-size: 0.875rem;
  color: var(--text-primary);
  padding: 0.75rem;
  background: var(--bg-body);
  border-radius: 8px;
  margin-bottom: 1.25rem !important;
}

.quote-success-ref strong {
  color: var(--orange);
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.04em;
}

.quote-success-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

.quote-photos-upload { margin-bottom: 0.5rem; }
.quote-photos-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0,0,0,0); }
.quote-photos-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.25rem;
  border: 2px dashed rgba(26, 146, 202, 0.45);
  border-radius: 12px;
  background: rgba(26, 146, 202, 0.04);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.quote-photos-drop:hover { border-color: #1a92ca; background: rgba(26, 146, 202, 0.08); }
.quote-photos-drop svg { width: 40px; height: 40px; color: #1a92ca; }
.quote-photos-drop small { color: #64748b; font-size: 0.8rem; }
.quote-photos-preview, .quote-review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.quote-photo-thumb, .quote-review-photo-item {
  width: 88px;
  text-align: center;
}
.quote-photo-thumb img, .quote-review-photo-item img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.quote-review-photo-item small, .quote-photo-thumb { font-size: 0.7rem; color: #64748b; word-break: break-all; }
.quote-review-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.65rem;
  padding: 0.35rem;
}

@media (max-width: 1024px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .quote-service-card {
    position: static;
    display: grid;
    grid-template-columns: 200px 1fr;
  }

  .quote-service-card-media {
    min-height: 140px;
    max-height: 200px;
    padding: 0.75rem;
  }

  .quote-service-card-media img {
    max-height: 160px;
  }
}

@media (max-width: 768px) {
  .quote-page { padding: 1.5rem 0 3rem; }
  .quote-wizard-wrap { padding: 1.25rem 1.15rem 1.5rem; }
  .quote-service-card { grid-template-columns: 1fr; }
  .quote-fields-grid { grid-template-columns: 1fr; }
  .quote-field-half { grid-column: auto; }
  .quote-step-label { display: none; }
  .quote-form-actions { flex-direction: column-reverse; }
  .quote-form-actions .quote-btn { width: 100%; }
}
