@media (max-width: 640px) {
  #estimate .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  #estimate .contact-layout > *,
  #estimate-form .form-grid > * {
    min-inline-size: 0;
  }

  #estimate-form {
    inline-size: 100%;
    max-inline-size: 100%;
    padding: 22px clamp(14px, 4vw, 20px);
  }

  #estimate-form .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #estimate-form :is(input, select, textarea) {
    min-inline-size: 0;
    max-inline-size: 100%;
    font-size: 16px;
  }

  #estimate-form select {
    text-overflow: ellipsis;
  }

  #estimate-form :is(.btn, .email-preview, .photo-previews li) {
    min-inline-size: 0;
    max-inline-size: 100%;
    overflow-wrap: anywhere;
  }

  #estimate-form .btn {
    white-space: normal;
  }
}
