/*==============================================================================
  theme/10-get-quote.css
  GET QUOTE — Multi-step form
  Linked from templates/base.html in numbered order with the other theme modules.
==============================================================================*/

/* --------------------------------------------------------------------------
   GET QUOTE — Three-step form, searchable procedure combo, status banners
   -------------------------------------------------------------------------- */
.quote-section {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  overflow: hidden;
}

.quote-section__visual {
  position: absolute;
  z-index: 0;
  right: max(48px, calc((100% - var(--page-max)) / 2 + 24px));
  top: 50%;
  transform: translateY(-42%);
  width: min(580px, 50vw);
  pointer-events: none;
  user-select: none;
  opacity: 0.24;
}

.quote-section__visual img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  filter: contrast(1.08);
}

.quote-section > .container {
  position: relative;
  z-index: 1;
}

.quote-section__header {
  max-width: 640px;
  margin-bottom: 24px;
}

.quote-section__header h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #0a2540;
  margin: 0 0 8px;
}

.quote-section__header p {
  margin: 0;
  color: var(--body);
}

.quote-section__privacy {
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: var(--muted) !important;
  max-width: 46ch;
}

.quote-status {
  max-width: 860px;
  margin: 0 0 20px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid transparent;
}

.quote-status.is-success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534 !important;
}

.quote-status.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b !important;
}

.quote-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.quote-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
  max-width: 860px;
}

.quote-steps__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 2px solid #e8edf2;
  color: var(--muted);
}

.quote-steps__item.is-active,
.quote-steps__item.is-done {
  border-bottom-color: var(--primary);
  color: #0a2540;
}

.quote-steps__num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8edf2;
  color: #0a2540;
  font-size: 13px;
  font-weight: 600;
}

.quote-steps__item.is-active .quote-steps__num,
.quote-steps__item.is-done .quote-steps__num {
  background: var(--primary);
  color: #fff;
}

.quote-steps__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote-form {
  max-width: 860px;
  overflow: visible;
  position: relative;
}

.quote-panel__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0a2540;
  margin: 0 0 20px;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 20px;
}

.quote-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: #0a2540;
  margin-bottom: 8px;
}

.quote-field label span {
  color: var(--primary);
}

.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7dee8;
  background: var(--bg);
  color: #0a2540;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 14px;
  border-radius: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.quote-field select {
  background-image: linear-gradient(45deg, transparent 50%, #697386 50%),
    linear-gradient(135deg, #697386 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  border-color: var(--primary);
}

.quote-field input[readonly] {
  background: #f6f8fb;
  color: var(--muted);
}

.quote-hint {
  margin: 6px 0 0 !important;
  font-size: 13px !important;
  color: var(--muted) !important;
}

.quote-combo {
  position: relative;
  z-index: 5;
}

.quote-combo.is-open {
  z-index: 20;
}

.quote-combo__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7dee8;
  background: var(--bg);
  color: #0a2540;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 40px 12px 14px;
  border-radius: 0;
  outline: none;
  background-image: linear-gradient(45deg, transparent 50%, #697386 50%),
    linear-gradient(135deg, #697386 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.quote-combo__input:focus {
  border-color: var(--primary);
}

.quote-combo__list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid #d7dee8;
  box-shadow: 0 12px 28px rgba(10, 37, 64, 0.12);
  z-index: 30;
}

.quote-combo__option {
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.35;
  color: #0a2540;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}

.quote-combo__option:last-child {
  border-bottom: 0;
}

.quote-combo__option:hover,
.quote-combo__option:focus,
.quote-combo__option.is-selected {
  background: #f8fafc;
  color: var(--primary);
  outline: none;
}

.quote-combo__empty {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  margin: 0 !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  color: var(--muted) !important;
  background: var(--bg);
  border: 1px solid #d7dee8;
  z-index: 30;
}

.quote-panel[data-step="3"] {
  overflow: visible;
}

.quote-panel[data-step="3"] .quote-grid {
  overflow: visible;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 28px;
}

.quote-actions--end {
  justify-content: flex-end;
}

.quote-btn-prev,
.btn-secondary {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  height: 48px;
  padding: 0 24px;
  border: 1px solid #0a2540;
  background: var(--bg);
  color: #0a2540;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.quote-btn-prev:hover,
.btn-secondary:hover {
  background: #0a2540;
  color: #fff;
}

.quote-actions .btn-primary {
  cursor: pointer;
  border: none;
}

@media (min-width: 768px) {
  .quote-section__header h1 {
    font-size: 36px;
  }

  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quote-field--full {
    grid-column: 1 / -1;
  }

  .quote-steps__label {
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  .quote-section__visual {
    width: min(420px, 54vw);
    opacity: 0.18;
    right: 12px;
  }
}

@media (max-width: 575px) {
  .quote-section__visual {
    width: min(320px, 78vw);
    opacity: 0.14;
    top: auto;
    bottom: 8%;
    transform: none;
    right: -12px;
  }

  .quote-steps {
    gap: 6px;
  }

  .quote-steps__label {
    display: none;
  }

  .quote-steps__item {
    justify-content: center;
  }

  .quote-actions {
    flex-direction: column-reverse;
  }

  .quote-actions .btn-primary,
  .quote-actions .btn-secondary,
  .quote-actions .quote-btn-prev {
    width: 100%;
  }
}

