/* Quote / contact form (add-on) */
.contact-card.contact-card--wide {
  max-width: min(880px, 100%);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.contact-layout {
  display: grid;
  gap: 1.75rem;
  text-align: left;
}

@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem;
    align-items: start;
  }
}

/* Contact landing page (contact.html) */
.contact-page-section {
  padding-top: 2.5rem;
}

.section-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.contact-sidebar {
  text-align: center;
}

@media (min-width: 800px) {
  .contact-sidebar {
    text-align: left;
  }
}

.quote-form-title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.form-field label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(0, 115, 207, 0.28);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(0, 45, 98, 0.45);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 115, 207, 0.18);
}

.form-field textarea {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.45;
}

.form-field--service {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.form-field--service legend {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  padding: 0;
  margin-bottom: 0.35rem;
}

.form-field--service .radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.form-field--service .radio-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--navy);
}

.form-field--service .radio-label input[type="radio"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.field-hint {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(0, 45, 98, 0.62);
}

.form-actions {
  margin: 0;
}

.form-submit {
  width: 100%;
}

@media (min-width: 480px) {
  .form-submit {
    width: auto;
  }
}

.form-note {
  font-size: 0.82rem;
  color: rgba(0, 45, 98, 0.72);
  margin: 0;
  line-height: 1.45;
  text-align: left;
}

.form-success {
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--mist);
  border: 1px solid rgba(0, 115, 207, 0.15);
  text-align: left;
}

.form-success p {
  margin: 0 0 0.75rem;
}

.form-success p:last-child {
  margin-bottom: 0;
}

.form-success__lead {
  font-weight: 600;
}

.form-success__hint {
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(0, 45, 98, 0.78);
  line-height: 1.45;
}

.quote-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.35rem 0 0.25rem;
}

.quote-fallback-actions .btn {
  flex: 1 1 auto;
  min-width: 10rem;
  justify-content: center;
}

.form-success__email {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  min-height: 1.25rem;
}

.form-success__footer {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(0, 45, 98, 0.85);
  line-height: 1.5;
}
