.bloom-contact {
  width: min(860px, 100%);
  margin: clamp(2rem, 5vw, 4rem) 0;
  color: #110d2c;
  font-family: "Geist", system-ui, sans-serif;
}

.bloom-contact__form {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #e8e6f5;
  border-radius: 1.5rem;
  background: #f8f7fc;
}

.bloom-contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.bloom-contact__field {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.bloom-contact__field[hidden] {
  display: none;
}

.bloom-contact__field label {
  color: #110d2c;
  font-weight: 700;
}

.bloom-contact__field input,
.bloom-contact__field select,
.bloom-contact__field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid #cac5dc;
  border-radius: 0.75rem;
  background: #fff;
  color: #110d2c;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.bloom-contact__field textarea {
  min-height: 11rem;
  resize: vertical;
}

.bloom-contact__field select {
  padding-right: 3.25rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23110d2c' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.125rem center;
  background-size: 1.25rem 1.25rem;
}

.bloom-contact__field input:focus,
.bloom-contact__field select:focus,
.bloom-contact__field textarea:focus {
  border-color: #5a24eb;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(90, 36, 235, 0.14);
}

.bloom-contact__field [aria-invalid="true"] {
  border-color: #b42318;
}

.bloom-contact__optional,
.bloom-contact__help {
  color: #6d6687;
  font-size: 0.8125rem;
  font-weight: 400;
}

.bloom-contact__help,
.bloom-contact__error {
  margin: 0;
}

.bloom-contact__error {
  color: #b42318;
  font-size: 0.875rem;
  font-weight: 600;
}

.bloom-contact__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.bloom-contact__actions p {
  max-width: 34rem;
  margin: 0;
  color: #6d6687;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.bloom-contact__actions a {
  color: #5a24eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bloom-contact__submit {
  min-height: 3rem;
  flex: 0 0 auto;
  padding: 0.75rem 1.5rem;
  border: 1px solid #5a24eb;
  border-radius: 999px;
  background: #5a24eb;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.bloom-contact__submit:hover {
  border-color: #411abe;
  background: #411abe;
  transform: translateY(-1px);
}

.bloom-contact__notice {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid;
  border-radius: 0.875rem;
  line-height: 1.55;
}

.bloom-contact__notice--success {
  border-color: #78c9a7;
  background: #edfbf5;
  color: #155d43;
}

.bloom-contact__notice--error {
  border-color: #f2a9a3;
  background: #fff4f2;
  color: #8a1c13;
}

.bloom-contact__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 680px) {
  .bloom-contact__grid {
    grid-template-columns: 1fr;
  }

  .bloom-contact__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bloom-contact__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bloom-contact__field input,
  .bloom-contact__field select,
  .bloom-contact__field textarea,
  .bloom-contact__submit {
    transition: none;
  }
}

@media (forced-colors: active) {
  .bloom-contact__field select {
    appearance: auto;
    background-image: none;
  }
}
