/* Contact: compact, accessible request form surface. */
.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
  background: #f4eddf;
  color: var(--color-ink);
}

.contact-section::before,
.contact-section::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.contact-section::before {
  top: -7rem;
  right: -8rem;
  width: 24rem;
  height: 16rem;
  border: 1px solid rgba(181, 138, 66, .38);
  border-radius: 46% 0 0 54%;
  transform: rotate(-10deg);
}

.contact-section::after {
  bottom: -9rem;
  left: -7rem;
  width: 20rem;
  height: 14rem;
  border: 1px solid rgba(29, 74, 59, .18);
  border-radius: 0 62% 0 0;
  transform: rotate(12deg);
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(22rem, 1.15fr);
  gap: clamp(1.75rem, 5vw, 4.25rem);
  align-items: center;
}

.contact-copy {
  max-width: 31rem;
}

.contact-copy .kicker {
  margin-bottom: .55rem;
}

.contact-copy h2 {
  max-width: 10ch;
  margin: 0 0 .8rem;
  color: var(--color-forest);
  font-size: clamp(2rem, 3.1vw, 2.65rem);
  line-height: 1.06;
}

.contact-copy > p {
  max-width: 31rem;
  margin: 0;
  color: #4e564f;
  font-size: 1.03rem;
  line-height: 1.6;
}

.contact-panel {
  padding: clamp(1.35rem, 2.6vw, 1.8rem);
  border: 1px solid #e4d6bc;
  border-radius: 1.1rem;
  background: #fffdf8;
  color: var(--color-ink);
  box-shadow: 0 .9rem 2rem rgba(75, 55, 24, .11);
}

.contact-panel form {
  display: grid;
  gap: .58rem;
}

.contact-panel label {
  margin-top: .4rem;
  color: #34443a;
  font-size: .86rem;
  font-weight: 750;
}

.contact-panel input,
.contact-panel select,
.contact-panel textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: .64rem .72rem;
  border: 1px solid #d9ccb4;
  border-radius: .62rem;
  background: #fffefa;
  color: var(--color-ink);
  font: inherit;
  line-height: 1.35;
}

.contact-panel textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-panel input::placeholder,
.contact-panel textarea::placeholder {
  color: #7b7a71;
}

.contact-panel input:focus-visible,
.contact-panel select:focus-visible,
.contact-panel textarea:focus-visible {
  outline: 3px solid rgba(181, 138, 66, .36);
  outline-offset: 1px;
  border-color: var(--color-gold);
}

.contact-panel .button--contact {
  min-height: 3rem;
  margin-top: .75rem;
  border-color: #b68942;
  border-radius: .7rem;
  background: var(--color-gold);
  color: #1c3127;
  box-shadow: 0 .45rem .9rem rgba(126, 91, 31, .16);
}

.contact-panel__notice {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  margin: .35rem 0 0;
  color: #596159;
  font-size: .82rem;
  line-height: 1.45;
}

.contact-panel__notice span {
  display: inline-grid;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  place-items: center;
  margin-top: .12rem;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  color: #896421;
  font-family: Georgia, serif;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.05rem;
  padding-top: .9rem;
  border-top: 1px solid #e4d6bc;
  color: var(--color-forest);
  font-size: .86rem;
  font-weight: 750;
}

.contact-email svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-email a {
  color: inherit;
  text-decoration-color: var(--color-gold);
  text-underline-offset: .24em;
}

.contact-panel .button--contact:hover {
  background: var(--color-champagne);
}

.contact-panel .button--contact:focus-visible {
  outline: 3px solid var(--color-forest);
  outline-offset: 3px;
}

.form-status {
  min-height: 1.2em;
  margin: .45rem 0 0;
  color: #596159;
  font-size: .78rem;
  line-height: 1.45;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: #8e3323;
}

.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 19;
  display: block;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  transition: transform .18s ease, background .18s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
}

.whatsapp-float:active {
  transform: translateY(0);
}

.whatsapp-float:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.whatsapp-float img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 52rem) {
  .contact-section {
    padding-block: 2.15rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .contact-copy,
  .contact-copy > p {
    max-width: none;
  }

  .contact-copy h2 {
    max-width: 12ch;
    font-size: clamp(1.9rem, 8vw, 2.25rem);
  }

  .contact-panel {
    padding: 1.25rem;
    border-radius: .9rem;
  }

  .contact-panel .button--contact {
    width: 100%;
  }

  .contact-section::before {
    top: -9rem;
    right: -12rem;
  }

  .contact-section::after {
    bottom: -10rem;
    left: -11rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-panel .button--contact {
    transition: none;
  }

  .whatsapp-float {
    transition: none;
  }
}
