.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4rem, 5.5vw, 6.5rem) 0 clamp(4.5rem, 5.8vw, 6.5rem);
  background: #eae2d8;
  color: #1b2520;
  scroll-margin-top: 1.5rem;
}

.contact__shadow {
  position: absolute;
  z-index: 0;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: blur(15px) grayscale(1);
  pointer-events: none;
}
.contact__shadow--top {
  top: -22rem;
  left: -12rem;
  width: min(64vw, 65rem);
  height: 56rem;
  background-image: url('assets/fears-shadow-top.png');
  opacity: .29;
  transform: rotate(-17deg);
}
.contact__shadow--right {
  right: -20rem;
  bottom: -21rem;
  width: min(57vw, 58rem);
  height: 52rem;
  background-image: url('assets/fears-shadow-bottom.png');
  opacity: .23;
  transform: rotate(28deg);
}

.contact__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .43fr) minmax(0, .57fr);
  width: min(94%, 100rem);
  min-height: 43rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 3.6vw, 4rem);
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: 1.9rem;
  background: rgba(255, 252, 248, .79);
  box-shadow: 0 1.5rem 4rem rgba(55, 46, 36, .08), inset 0 0 0 1px rgba(169, 149, 119, .06);
  backdrop-filter: blur(9px);
}
.contact__intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1rem, 2.2vw, 2.5rem) 0 .4rem;
  text-align: center;
}
.contact__rule,
.contact__short-rule {
  display: block;
  width: 5rem;
  height: 1px;
  background: #9e7541;
}
.contact__eyebrow {
  margin: 1.15rem 0 1.8rem;
  color: #85663d;
  font: 600 .85rem/1.2 var(--pb-font-body);
  letter-spacing: .33em;
  text-transform: uppercase;
}
.contact__intro h2 {
  font-size: clamp(4.2rem, 5.1vw, 6rem);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.05em;
  white-space: nowrap;
}
.contact__intro h2 span {
  display: block;
  margin-top: .08em;
  color: #977344;
  font-size: .77em;
  white-space: normal;
}
.contact__lead {
  max-width: 31rem;
  margin: 2.3rem auto 1.65rem;
  font: 500 clamp(1.05rem, 1.35vw, 1.35rem)/1.58 var(--pb-font-body);
}
.contact__short-rule { width: 3.4rem; }
.contact__links {
  display: flex;
  justify-content: center;
  gap: clamp(.75rem, 1.4vw, 1.4rem);
  margin-top: 1.65rem;
}
.contact__links a {
  display: grid;
  width: clamp(3.65rem, 4.5vw, 4.65rem);
  height: clamp(3.65rem, 4.5vw, 4.65rem);
  place-items: center;
  border: 1px solid #b99b73;
  border-radius: .6rem;
  color: #8b683a;
  background: rgba(255, 255, 255, .37);
  transition: transform .2s, background-color .2s, box-shadow .2s;
}
.contact__links a:hover {
  transform: translateY(-3px);
  background: #fffaf2;
  box-shadow: 0 .45rem 1.2rem rgba(114, 80, 42, .14);
}
.contact__links svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact__links a:nth-child(2) svg { fill: currentColor; stroke: none; }
.contact__messenger-bolt { fill: currentColor; stroke: none; }
.contact__logo { width: 11.6rem; height: auto; margin-top: 2.1rem; }

.contact__form {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding-left: clamp(2rem, 3.7vw, 4.3rem);
  border-left: 1px solid #bda98d;
}
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact__row > div { min-width: 0; }
.contact__form input:not([type='checkbox']),
.contact__form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3.9rem;
  padding: .85rem 1rem;
  border: 1px solid #d8ccbf;
  border-radius: .55rem;
  outline: none;
  background: rgba(255, 255, 255, .95);
  color: #243027;
  font: 500 1rem/1.5 var(--pb-font-body);
  box-shadow: 0 .25rem .7rem rgba(70, 56, 43, .025);
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: #63676b; opacity: 1; }
.contact__form textarea { min-height: 11rem; resize: vertical; }
.contact__form input:focus,
.contact__form textarea:focus { border-color: #95703e; outline: 2px solid rgba(149, 112, 62, .28); outline-offset: 1px; }
.contact__date { position: relative; }
.contact__date label {
  position: absolute;
  z-index: 1;
  top: .35rem;
  left: 1rem;
  color: #63676b;
  font: 500 .72rem/1.2 var(--pb-font-body);
}
.contact__date input { padding-top: 1.35rem !important; color-scheme: light; }
.contact__actions { display: flex; justify-content: flex-end; margin-top: .25rem; }
.contact__submit {
  display: inline-flex;
  min-width: 13.5rem;
  min-height: 4.5rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .65rem 1.4rem;
  border: 1px solid #30392b;
  border-radius: .6rem;
  background: #30392b;
  color: #dec59e;
  font: 500 clamp(1.75rem, 2vw, 2.2rem)/1 var(--pb-font-heading);
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.contact__submit:hover { background: #222b20; transform: translateY(-2px); }
.contact__submit svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact__status { min-height: 0; color: #3f5139; font: 500 .88rem/1.45 var(--pb-font-body); }
.contact__status:empty { display: none; }
.contact__olive {
  position: absolute;
  z-index: 2;
  bottom: -10rem;
  left: -12rem;
  width: min(30vw, 32rem);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(1rem 1.1rem 1rem rgba(33, 42, 26, .18));
}

@media (max-width: 1100px) {
  .contact__panel { grid-template-columns: minmax(0, .44fr) minmax(0, .56fr); padding: 2.5rem; }
  .contact__intro h2 { font-size: clamp(3.2rem, 5vw, 4.5rem); }
  .contact__form { padding-left: 2.2rem; }
  .contact__lead { font-size: 1rem; }
}
@media (max-width: 850px) {
  .contact__panel { grid-template-columns: 1fr; width: min(92%, 44rem); min-height: 0; padding: 2.5rem; }
  .contact__intro { padding: 0 0 2.5rem; }
  .contact__intro h2 { font-size: clamp(3.7rem, 9vw, 5.3rem); }
  .contact__lead { max-width: 34rem; font-size: 1.1rem; }
  .contact__form { padding: 2.5rem 0 0; border-left: 0; border-top: 1px solid #bda98d; }
  .contact__olive { width: 18rem; bottom: -7rem; left: -9rem; }
}
@media (max-width: 560px) {
  .contact { padding-block: 2.7rem 3.4rem; }
  .contact__panel { width: calc(100% - 2rem); padding: 2rem 1.15rem; border-radius: 1.3rem; }
  .contact__intro h2 { font-size: clamp(3.05rem, 13vw, 4.1rem); }
  .contact__eyebrow { margin-bottom: 1.45rem; }
  .contact__lead { margin-top: 1.8rem; }
  .contact__row { grid-template-columns: 1fr; }
  .contact__form { gap: .75rem; padding-top: 2rem; }
  .contact__form input:not([type='checkbox']) { min-height: 3.5rem; }
  .contact__submit { width: 100%; min-height: 4rem; }
  .contact__olive { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .contact__links a,
  .contact__submit { transition: none; }
}
