/* Contact form base rules copied from subpage.css, scoped to Home. */


:where(.home-contact-section) .subpage-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d78fb1;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  background: #d78fb1;
  color: #fffdfd;
  font-family: var(--glacial);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

:where(.home-contact-section) .subpage-button:hover,
:where(.home-contact-section) .subpage-button:focus-visible {
  box-shadow: 0 15px 34px rgba(79, 43, 31, 0.16);
  outline: none;
  transform: translateY(-2px);
}

:where(.home-contact-section) .contact-details-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}

:where(.home-contact-section) .contact-details-list a,
:where(.home-contact-section) .contact-details-list span {
  display: block;
  border-top: 1px solid rgba(79, 43, 31, 0.12);
  padding-top: 0.7rem;
  color: #4f2b1f;
  font-family: var(--glacial);
  text-decoration: none;
}

:where(.home-contact-section) .subpage-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border: 1px solid rgba(79, 43, 31, 0.1);
  border-radius: 26px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: rgba(255, 253, 253, 0.76);
  box-shadow: 0 28px 78px rgba(79, 43, 31, 0.09);
}

:where(.home-contact-section) .subpage-form-field {
  display: grid;
  gap: 0.45rem;
}

:where(.home-contact-section) .subpage-form-field.is-full {
  grid-column: 1 / -1;
}

:where(.home-contact-section) .subpage-form-field label {
  color: #4f2b1f;
  font-family: var(--glacial);
  font-size: 0.78rem;
  font-weight: 700;
}

:where(.home-contact-section) .subpage-form-field input,
:where(.home-contact-section) .subpage-form-field select,
:where(.home-contact-section) .subpage-form-field textarea {
  width: 100%;
  border: 1px solid rgba(79, 43, 31, 0.14);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: rgba(255, 253, 253, 0.86);
  color: #4f2b1f;
  font: inherit;
}

:where(.home-contact-section) .subpage-form-field textarea {
  min-height: 170px;
  resize: vertical;
}

:where(.home-contact-section) .subpage-form-field input:focus,
:where(.home-contact-section) .subpage-form-field select:focus,
:where(.home-contact-section) .subpage-form-field textarea:focus {
  border-color: #d78fb1;
  outline: 3px solid rgba(215, 143, 177, 0.18);
}

:where(.home-contact-section) .subpage-form-status {
  grid-column: 1 / -1;
  min-height: 1.5rem;
  margin: 0;
  color: #604734;
  font-family: var(--glacial);
  font-size: 0.88rem;
}

:where(.home-contact-section) .subpage-form-status.is-success {
  color: #4f2b1f;
}

:where(.home-contact-section) .subpage-form-status.is-error {
  color: #81535d;
}

:where(.home-contact-section) .subpage-contact-form .subpage-button {
  grid-column: 1 / -1;
  justify-self: start;
  cursor: pointer;
}

:where(.home-contact-section) .subpage-contact-form .subpage-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

@media (max-width: 760px) {

  :where(.home-contact-section) .subpage-contact-form {
    grid-template-columns: minmax(0, 1fr);
  }

  :where(.home-contact-section) .subpage-form-field.is-full,
:where(.home-contact-section) .subpage-form-status,
:where(.home-contact-section) .subpage-contact-form .subpage-button {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.home-contact-section) .subpage-button {
    transition: none !important;
  }
}

.home-contact-section {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(rgba(215,143,177,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215,143,177,.045) 1px, transparent 1px),
    radial-gradient(circle at 8% 12%, rgba(247,220,226,.62), transparent 25%),
    radial-gradient(circle at 92% 34%, rgba(239,227,216,.66), transparent 24%),
    linear-gradient(180deg, #fffdfd, #fff8fa 48%, #fffdfd);
  background-size: 88px 88px, 88px 88px, auto, auto, auto;
}
.home-contact-section h2 { text-wrap: balance; }
.home-contact-section p { text-wrap: pretty; }
.home-contact-section .recaptcha-field { min-width: 0; }
.home-contact-section .subpage-contact-form > .form-submit { grid-column: 1 / -1; }
