.contact-page {
  --contact-wine: #740f1e;
  --contact-light: #fffaf6;
  background: var(--master-wine);
  color: var(--contact-light);
  font-family: var(--font-body, Manrope, "Segoe UI", sans-serif);
}

.contact-stage {
  --contact-photo: url("../images/optimized/contato-equipe-1920.e3be5e0eff39.webp");
  padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(2.5rem, 4vw, 4rem);
  background:
    linear-gradient(180deg, rgb(106 19 27 / .66), rgb(106 19 27 / .52) 55%, rgb(106 19 27 / .78)),
    var(--contact-photo) center 42% / cover no-repeat;
}

.contact-shell {
  width: min(100% - 3rem, 70rem);
  margin-inline: auto;
}

.contact-stage__heading {
  margin: 0 auto clamp(1.65rem, 3vw, 2.15rem);
  text-align: center;
}

.contact-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 .9rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.contact-eyebrow::before,
.contact-eyebrow::after {
  width: clamp(1.25rem, 4vw, 2.5rem);
  height: 1px;
  background: #df8585;
  content: "";
}

.contact-stage__heading h1 {
  margin: 0;
  color: var(--contact-light);
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.65vw, 4.15rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.contact-stage__heading > p:last-child {
  max-width: 55ch;
  margin: .9rem auto 0;
  color: #f2e7e1;
  font-size: clamp(.93rem, 1.35vw, 1.12rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.contact-page .contact-stage__form {
  width: min(100%, 42.25rem);
  min-width: 0;
  margin-inline: auto;
  border: 1px solid #fffaf4;
  border-radius: 1.2rem;
  padding: clamp(1.15rem, 2.2vw, 1.7rem);
  background: #f9f3ef;
  box-shadow: 0 20px 58px rgb(24 4 7 / .33), 0 0 18px rgb(203 101 91 / .23);
  color: #272023;
}

.contact-page .contact-stage__form .contact-form,
.contact-page .contact-stage__form .contact-form__grid {
  gap: 1.35rem 1.4rem;
  min-width: 0;
}

.contact-page .contact-form__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.contact-page .contact-field {
  position: relative;
  min-width: 0;
  gap: .45rem;
  color: #272023;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.25;
}

.contact-field__icon,
.contact-channels svg {
  flex: 0 0 auto;
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-field__icon {
  position: absolute;
  top: calc(1.25em + .45rem + 1.5rem);
  left: .95rem;
  transform: translateY(-50%);
  color: #575056;
  pointer-events: none;
}

.contact-page .contact-field :is(input, select, textarea) {
  min-width: 0;
  min-height: 3rem;
  border-color: #c7bcb9;
  border-radius: .7rem;
  padding: .75rem .8rem .75rem 3rem;
  background-color: #fcf8f6;
  color: #282025;
  font-size: 1rem;
  line-height: 1.4;
}

.contact-page .contact-field :is(input, textarea)::placeholder {
  color: #696165;
}

.contact-page .contact-field textarea {
  min-height: 6.65rem;
  resize: vertical;
}

.contact-page .contact-field :is(input, select, textarea):focus {
  border-color: var(--contact-wine);
  background-color: #fffdfb;
}

.contact-page .contact-field:focus-within > :is(span, svg) {
  color: var(--contact-wine);
}

.contact-page .contact-form__privacy {
  align-items: flex-start;
  margin: 0;
}

.contact-page .contact-form__privacy input[type="checkbox"] {
  margin-top: .12rem;
  accent-color: var(--contact-wine);
}

.contact-page .contact-form__privacy a {
  color: var(--contact-wine);
}

.contact-page .contact-form button[type="submit"] {
  justify-content: center;
  justify-self: stretch;
  width: 100%;
  min-height: 3.5rem;
  border-radius: .75rem;
  background: var(--contact-wine);
  color: var(--contact-light);
  font-size: 1.03rem;
  font-weight: 700;
}

.contact-page .contact-form button[type="submit"]:hover {
  background: #5b0c18;
}

.contact-page .contact-form button[type="submit"]:focus-visible {
  outline: 2px solid var(--contact-wine);
  outline-offset: 4px;
  transform: none;
}

.contact-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem 0;
  margin: clamp(1.5rem, 3vw, 2.4rem) 0 0;
  font-size: .89rem;
  font-style: normal;
}

.contact-channels a {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
  padding: .1rem clamp(1rem, 2.3vw, 2.2rem);
  color: inherit;
  text-decoration: none;
}

.contact-channels a + a {
  border-inline-start: 1px solid rgb(255 250 246 / .33);
}

.contact-channels a:hover span {
  text-decoration: underline;
  text-underline-offset: .22rem;
}

.contact-channels a:focus-visible {
  outline: 2px solid var(--contact-light);
  outline-offset: 5px;
}

@media (max-width: 62rem) {
  .contact-channels a + a { border-inline-start: 0; }
}

@media (max-width: 47.9375rem) {
  body:has(.contact-page) .floating-btn {
    display: none;
  }

  .contact-stage {
    --contact-photo: url("../images/optimized/contato-equipe-960.f9a5beee6d65.webp");
    padding-block: 2.4rem 2.65rem;
    background-position: center, 52% top;
  }

  .contact-shell {
    width: min(100% - 1.5rem, 34rem);
  }

  .contact-stage__heading {
    padding-inline: .5rem;
  }

  .contact-stage__heading h1 {
    font-size: clamp(2.35rem, 8.5vw, 3.05rem);
  }

  .contact-page .contact-stage__form {
    border-radius: 1rem;
  }

  .contact-page .contact-stage__form .contact-form,
  .contact-page .contact-stage__form .contact-form__grid {
    gap: .95rem;
  }

  .contact-channels {
    display: none;
  }
}

@keyframes contact-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .contact-stage:not(.contact-stage--feedback, :focus-within) :is(.contact-stage__heading, .contact-stage__form, .contact-channels) {
    animation: contact-enter 650ms cubic-bezier(.2, .7, .25, 1) backwards;
  }

  .contact-stage:not(.contact-stage--feedback, :focus-within) .contact-stage__form {
    animation-delay: 110ms;
  }

  .contact-stage:not(.contact-stage--feedback, :focus-within) .contact-channels {
    animation-delay: 210ms;
  }

  .contact-page .contact-form button[type="submit"] svg {
    transition: transform 220ms ease;
  }

  .contact-page .contact-form button[type="submit"]:is(:hover, :focus-visible) svg {
    transform: translateX(.2rem);
  }
}
