/* Quote form — shared with quote.html */
.quote-form {
  margin: 0;
}

.quote-progress {
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.quote-progress__bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.quote-progress__bar span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-blue, #00AEEF);
  transition: width 0.2s ease;
}

.quote-progress p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
}

.quote-form__section {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dbe7f0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(11, 17, 32, 0.035);
}

.quote-form__section[hidden] {
  display: none !important;
}

.quote-form__section:first-of-type {
  margin-top: 0;
}

.quote-form__section h3 {
  margin: 0 0 14px;
  color: var(--brand-dark, #0B1120);
  font-size: 1rem;
  font-weight: 900;
}

.quote-form__section h3:not(:first-child) {
  margin-top: 18px;
}

.quote-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quote-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-form__field--full {
  grid-column: 1 / -1;
}

.quote-form__label {
  font-weight: 900;
  font-size: 0.92rem;
  color: var(--brand-dark, #0B1120);
}

.quote-form__label span {
  color: #64748b;
  font-weight: 700;
}

.quote-form__input,
.quote-form__select,
.quote-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark, #0B1120);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-form__input:focus,
.quote-form__select:focus,
.quote-form__textarea:focus {
  outline: none;
  border-color: var(--brand-blue, #00AEEF);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.quote-form__textarea {
  min-height: 110px;
  resize: vertical;
}

.quote-form__field.is-invalid .quote-form__input,
.quote-form__field.is-invalid .quote-form__select,
.quote-form__field.is-invalid .quote-form__textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.quote-form__section.is-invalid {
  border-color: rgba(220, 38, 38, 0.48);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.quote-form__hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.45;
}

.quote-form__address-wrap {
  position: relative;
}

.quote-form__suggestions {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(11, 17, 32, 0.12);
  max-height: 240px;
  overflow-y: auto;
  display: none;
}

.quote-form__suggestions.is-open {
  display: block;
}

.quote-form__suggestion {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  line-height: 1.4;
}

.quote-form__suggestion:hover,
.quote-form__suggestion.is-active {
  background: rgba(0, 174, 239, 0.1);
  color: #0B1120;
}

.quote-form__suggestion small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.quote-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

.quote-choice-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid #dbe7f0;
  background: #f8fafc;
  color: var(--brand-dark, #0B1120);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.quote-choice-grid input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-blue, #00AEEF);
}

.quote-choice-grid label:has(input:checked) {
  border-color: rgba(0, 174, 239, 0.4);
  background: rgba(0, 174, 239, 0.09);
}

.quote-choice-grid--compact {
  margin-top: 8px;
}

.quote-choice-grid--compact label {
  min-height: 44px;
  font-size: 0.86rem;
}

.quote-conditional {
  margin-top: 12px;
}

.quote-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid #dbe7f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.quote-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-blue, #00AEEF);
}

.quote-expectation {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 174, 239, 0.22);
  background: rgba(0, 174, 239, 0.08);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
}

.quote-step-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.quote-step-actions [hidden] {
  display: none !important;
}

.quote-step-actions button:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}

[hidden] {
  display: none !important;
}

.quote-form__actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.quote-form__status {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  min-height: 1.25em;
}

.quote-form__status.is-error {
  color: #b91c1c;
}

@media (max-width: 640px) {
  .quote-form__grid {
    grid-template-columns: 1fr;
  }

  .quote-form__section {
    padding: 14px;
  }

  .quote-choice-grid {
    grid-template-columns: 1fr;
  }

  .quote-step-actions {
    flex-direction: column;
  }
}
