.contact-form-card {
  color: var(--white);
  background:
    radial-gradient(circle at 7% 18%, rgba(212, 183, 122, .12), transparent 32%),
    radial-gradient(circle at 86% 82%, rgba(125, 129, 91, .07), transparent 30%),
    #0c0b09;
}

.contact-form-card__layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(60px, 7.2vw, 130px);
  min-height: 100%;
  padding-top: calc(var(--header) + 25px);
  padding-bottom: 50px;
}

.contact-form-card__intro {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.contact-form-card__intro::before {
  position: absolute;
  z-index: -1;
  top: 38%;
  left: -9vw;
  width: clamp(240px, 31vw, 590px);
  aspect-ratio: 1;
  border: 1px solid rgba(212, 183, 122, .08);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.contact-form-card__intro h2 {
  max-width: 650px;
  margin-bottom: 29px;
  font-size: clamp(4.2rem, 5.55vw, 6.8rem);
  line-height: .9;
  letter-spacing: -.035em;
}

.contact-form-card__intro > p:not(.eyebrow) {
  max-width: 470px;
  color: rgba(255, 255, 255, .65);
}

.vinaigrette-contact-form {
  min-width: 0;
  padding: clamp(28px, 3vw, 48px);
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .025);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.vinaigrette-contact-form form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(17px, 2vh, 23px) clamp(18px, 1.8vw, 30px);
}

.vinaigrette-contact-form label {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.vinaigrette-contact-form label > span {
  margin-bottom: 9px;
  color: var(--gold);
  font-size: .47rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.vinaigrette-contact-form label b {
  font-weight: inherit;
}

.vinaigrette-contact-form input,
.vinaigrette-contact-form select,
.vinaigrette-contact-form textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
  outline: 0;
  color: var(--white);
  background: rgba(255, 255, 255, .025);
  font-family: inherit;
  font-size: .76rem;
  caret-color: var(--gold);
  color-scheme: dark;
  transition: border-color .25s, background .25s, box-shadow .25s;
}

.vinaigrette-contact-form input,
.vinaigrette-contact-form select {
  height: 52px;
  padding: 0 15px;
}

.vinaigrette-contact-form textarea {
  min-height: clamp(112px, 14vh, 150px);
  padding: 15px;
  resize: vertical;
}

.vinaigrette-contact-form select option {
  color: var(--white);
  background: #161410;
}

.vinaigrette-contact-form input:focus,
.vinaigrette-contact-form select:focus,
.vinaigrette-contact-form textarea:focus {
  border-color: var(--gold);
  background: rgba(212, 183, 122, .045);
  box-shadow: 0 0 0 1px rgba(212, 183, 122, .14);
}

.vinaigrette-contact-form input:-webkit-autofill,
.vinaigrette-contact-form input:-webkit-autofill:hover,
.vinaigrette-contact-form input:-webkit-autofill:focus,
.vinaigrette-contact-form textarea:-webkit-autofill,
.vinaigrette-contact-form select:-webkit-autofill {
  border-color: rgba(212, 183, 122, .3);
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px #12110e inset;
  box-shadow: 0 0 0 1000px #12110e inset;
  caret-color: var(--gold);
  transition: background-color 9999s ease-out 0s;
}

.vinaigrette-form-message,
.vinaigrette-form-submit,
.vinaigrette-form-notice {
  grid-column: 1 / -1;
}

.vinaigrette-form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 3px;
}

.vinaigrette-form-submit p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, .48);
  font-size: .56rem;
  line-height: 1.55;
}

.vinaigrette-form-submit button {
  flex: 0 0 auto;
  gap: 15px;
  min-width: 230px;
  cursor: pointer;
}

.vinaigrette-form-submit button i {
  font-style: normal;
}

.vinaigrette-form-trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.vinaigrette-form-notice {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 23px;
  padding: 15px 18px;
  border: 1px solid rgba(212, 183, 122, .45);
  color: var(--white);
  font-size: .72rem;
}

.vinaigrette-form-notice strong {
  color: var(--gold);
}

.vinaigrette-form-notice.is-error {
  border-color: rgba(210, 110, 90, .55);
}

.vinaigrette-contact-form.is-sent {
  display: grid;
  min-height: clamp(340px, 48vh, 470px);
  place-items: center;
}

.vinaigrette-contact-form.is-sent form {
  display: none;
}

.vinaigrette-contact-form.is-sent .vinaigrette-form-notice {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(212, 183, 122, .09), rgba(255, 255, 255, .015));
}

.vinaigrette-contact-form.is-sent .vinaigrette-form-notice::before {
  position: absolute;
  top: 28px;
  right: 30px;
  color: var(--gold);
  content: "✓";
  font-family: Georgia, serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
}

.vinaigrette-contact-form.is-sent .vinaigrette-form-notice strong {
  margin-bottom: 11px;
  font-family: var(--display, Georgia, serif);
  font-size: clamp(2.7rem, 4vw, 4.8rem);
  font-weight: 400;
  line-height: .9;
}

.vinaigrette-contact-form.is-sent .vinaigrette-form-notice span {
  max-width: 430px;
  color: rgba(255, 255, 255, .66);
  font-size: .75rem;
  line-height: 1.65;
}

.vinaigrette-contact-form form[aria-busy="true"] {
  opacity: .62;
  pointer-events: none;
}

.vinaigrette-contact-form button:disabled {
  cursor: wait;
}

@media (max-width: 860px) {
  .contact-form-card__layout {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: clamp(13px, 2.1dvh, 21px);
    padding: var(--phone-top) 0 var(--phone-bottom);
  }

  .contact-form-card__intro {
    width: 100%;
  }

  .contact-form-card__intro h2 {
    margin-bottom: 7px;
    font-size: clamp(2.5rem, 10.5vw, 3.65rem);
  }

  .contact-form-card__intro > p:not(.eyebrow) {
    margin-bottom: 0;
    font-size: var(--phone-copy);
  }

  .vinaigrette-contact-form {
    width: 100%;
    padding: clamp(15px, 4vw, 22px);
  }

  .vinaigrette-contact-form form {
    gap: clamp(10px, 1.7dvh, 16px) 16px;
  }

  .vinaigrette-contact-form label > span {
    margin-bottom: 4px;
    font-size: .43rem;
  }

  .vinaigrette-contact-form input,
  .vinaigrette-contact-form select {
    height: 39px;
    padding-inline: 10px;
    font-size: .72rem;
  }

  .vinaigrette-contact-form textarea {
    min-height: clamp(72px, 12dvh, 105px);
    padding: 10px;
    font-size: .72rem;
  }

  .vinaigrette-form-submit p {
    font-size: .52rem;
  }

  .vinaigrette-contact-form.is-sent {
    min-height: min(48dvh, 360px);
  }

  .vinaigrette-contact-form.is-sent .vinaigrette-form-notice {
    min-height: min(40dvh, 290px);
  }
}

@media (max-width: 520px) {
  .vinaigrette-contact-form form {
    gap: 9px 12px;
  }

  .vinaigrette-form-submit {
    gap: 12px;
  }

  .vinaigrette-form-submit p {
    max-width: 48%;
  }

  .vinaigrette-form-submit .button {
    width: auto;
    min-width: 0;
    padding-inline: 12px;
  }
}

@media (max-width: 860px) and (max-height: 680px) {
  .contact-form-card__layout {
    gap: 9px;
  }

  .contact-form-card__intro > p:not(.eyebrow),
  .vinaigrette-form-submit p {
    display: none;
  }

  .contact-form-card__intro h2 {
    font-size: 2.35rem;
  }

  .vinaigrette-contact-form form {
    gap: 7px 14px;
  }

  .vinaigrette-contact-form input,
  .vinaigrette-contact-form select {
    height: 34px;
  }

  .vinaigrette-contact-form textarea {
    min-height: 58px;
  }

  .vinaigrette-form-submit {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vinaigrette-contact-form input,
  .vinaigrette-contact-form select,
  .vinaigrette-contact-form textarea {
    transition: none;
  }
}
