/* A quiet, focused enquiry form with a clear submission action. */
.contact-form {
  border: 1px solid #e8dce1;
  border-radius: 28px;
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  box-shadow: 0 18px 60px #3b162208;
}
.contact-form__head {
  margin-bottom: 22px;
}
.contact-form__title {
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1.2;
}
.contact-form__intro {
  max-width: 55ch;
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #6b6268;
}
.contact-form__required {
  margin: 0 0 16px;
  font:
    400 0.72rem/1.5 "Inter",
    sans-serif;
  color: #746970;
}
.contact-form__required > span {
  color: var(--accent);
}
.contact-form__grid {
  gap: 22px 18px;
}
.contact-control {
  gap: 8px;
}
.contact-label {
  font-size: 0.8rem;
  color: #423a40;
}
.contact-label__optional {
  margin-left: 7px;
  font-size: 0.7rem;
  font-weight: 400;
  color: #82777d;
}
.contact-control input,
.contact-control textarea,
.contact-select__trigger {
  border-radius: 14px;
  border-color: #e0d6db;
  background: #faf8f9;
  font-size: 16px;
  font-weight: 400;
  transition:
    border-color 200ms,
    background 200ms,
    box-shadow 200ms;
}
.contact-control input,
.contact-select__trigger,
.contact-control--phone {
  min-height: 54px;
}
.contact-control--phone {
  border-radius: 14px;
  background: #faf8f9;
  border-color: #e0d6db;
}
.contact-control--phone input {
  min-height: 52px;
  background: transparent;
}
.contact-control textarea {
  min-height: 140px;
  line-height: 1.65;
}
.contact-control input::placeholder,
.contact-control textarea::placeholder {
  color: #82777f;
  font-weight: 400;
}
.contact-control input:focus,
.contact-control textarea:focus,
.contact-select__trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px #c8283710;
}
.contact-control--phone:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #c8283710;
  background: #fff;
}
.contact-control--phone input:focus {
  box-shadow: none;
}
.contact-field-hint {
  font:
    400 0.73rem/1.55 "Inter",
    sans-serif;
  color: #796d75;
}
.contact-field-error {
  font-size: 0.75rem;
  line-height: 1.5;
}
.contact-control.is-invalid input,
.contact-control.is-invalid textarea,
.contact-control.is-invalid .contact-select__trigger,
.contact-control.is-invalid .contact-control--phone {
  border-color: var(--accent);
  background: #fff6f7;
}
.contact-form__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  border-top: 1px solid #eee5e9;
  margin-top: 26px;
  padding-top: 22px;
}
.contact-form__actions .contact-submit {
  width: auto;
  flex-shrink: 0;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 7px 8px 7px 22px;
  gap: 20px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.contact-form__actions .contact-submit::before {
  background: #9d1d2e;
}
.contact-form__actions .contact-submit__arrow {
  width: 36px;
  height: 36px;
  background: #fff;
  color: var(--accent);
  transform: none;
}
.contact-form__actions .contact-submit__arrow svg {
  width: 16px;
  height: 16px;
  transform: rotate(-45deg);
  transition: transform 450ms var(--action-ease);
}
@media (hover: hover) and (pointer: fine) {
  .contact-form__actions .contact-submit:hover {
    background: var(--accent);
  }
  .contact-form__actions .contact-submit:hover .contact-submit__arrow {
    transform: none;
  }
  .contact-form__actions .contact-submit:hover .contact-submit__arrow svg {
    transform: translate(2px, -2px) rotate(-45deg);
  }
}
.contact-form__success {
  padding-block: 12px;
}
.contact-form__success .contact-submit {
  justify-content: center;
  width: auto;
  padding-inline: 24px;
  min-height: 48px;
}
.contact-form__success [data-contact-reset] {
  display: inline-flex;
  justify-content: space-between;
  gap: 18px;
  width: auto;
  height: 52px;
  margin-top: 24px;
  padding: 7px 8px 7px 22px;
  background: var(--accent);
  border: 0;
  color: #fff;
  font-size: 0.85rem;
}
.contact-form__success [data-contact-reset]::before {
  background: #9d1d2e;
}
.contact-form__success [data-contact-reset] .contact-submit__arrow {
  width: 36px;
  height: 36px;
  background: #fff;
  color: var(--accent);
  transform: none;
}
.contact-form__success [data-contact-reset] svg {
  width: 16px;
  height: 16px;
  transform: rotate(-45deg);
  transition: transform 450ms var(--action-ease);
}
@media (hover: hover) and (pointer: fine) {
  .contact-form__success [data-contact-reset]:hover {
    background: var(--accent);
  }
  .contact-form__success [data-contact-reset]:hover svg {
    transform: translate(2px, -2px) rotate(-45deg);
  }
}
@media (max-width: 639px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-form__actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 14px;
  }
  .contact-form__actions .contact-submit {
    width: 100%;
    justify-content: space-between;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-form__actions .contact-submit:hover .contact-submit__arrow svg {
    transform: rotate(-45deg);
  }
  .contact-form__success [data-contact-reset]:hover svg {
    transform: rotate(-45deg);
  }
}
