.contact-body {
  --contact-cream: #ffe2a5;
  --contact-ink: #203f32;
  --contact-muted: #646b61;
  min-height: 100vh;
}

.contact-page {
  min-height: calc(100svh - 110px);
  padding: clamp(112px, 9vw, 150px) 0 clamp(110px, 10vw, 170px);
  background: url("../assets/images/menu/glass-effect.png") center top / cover fixed no-repeat;
}

.contact-card,
.faq-section {
  width: min(86%, 1280px);
  margin-inline: auto;
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.25fr);
  gap: clamp(72px, 8vw, 126px);
  min-height: clamp(600px, 50vw, 720px);
  padding: clamp(66px, 7vw, 108px);
  border: 4px solid #6e5140;
  background: var(--contact-cream);
  box-shadow: 10px 10px 0 rgba(68, 49, 39, 0.2);
}

.contact-close {
  position: absolute;
  z-index: 2;
  top: -78px;
  right: 18px;
}

.contact-intro {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.contact-eyebrow {
  margin: 0 0 9px;
  color: #8a543d;
  font-family: var(--readable-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-intro h1 {
  margin: 0 0 23px;
  color: var(--contact-ink);
  font-family: var(--display-font);
  font-size: clamp(55px, 6vw, 88px);
  font-weight: 600;
  line-height: 0.82;
}

.contact-intro > p:not(.contact-eyebrow) {
  max-width: 420px;
  margin: 0;
  color: var(--contact-muted);
  font-family: var(--readable-font);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
}

.contact-form {
  display: grid;
  align-content: start;
  gap: 36px;
  min-width: 0;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.contact-field {
  min-width: 0;
}

.contact-field label {
  display: block;
  margin-bottom: 8px;
  color: #221914;
  font-family: var(--readable-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-optional {
  color: #6d685d;
  font-size: 0.75em;
  letter-spacing: 0;
  text-transform: none;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 2px solid #bca66f;
  border-radius: 0;
  padding: 9px 2px;
  background: transparent;
  color: #251c17;
  font-family: var(--readable-font);
  font-size: 17px;
  line-height: 1.4;
}

.contact-field textarea {
  min-height: 124px;
  resize: vertical;
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: 3px solid #355b48;
  outline-offset: 4px;
  border-bottom-color: #355b48;
}

.contact-field [aria-invalid="true"] {
  border-bottom-color: #9e2f26;
  background: rgba(255, 239, 220, 0.55);
}

.contact-error {
  margin: 8px 0 0;
  color: #8c2821;
  font-family: var(--readable-font);
  font-size: 14px;
  font-weight: 700;
}

.contact-submit {
  width: 100%;
  min-height: 64px;
  border: 4px solid #1d3328;
  border-radius: 9px;
  padding: 12px 24px;
  background: #274a38;
  box-shadow:
    inset 0 0 0 4px #3d674f,
    5px 6px 0 #18291f;
  color: #fff9e9;
  font-family: var(--display-font);
  font-size: clamp(20px, 1.5vw, 25px);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
}

.contact-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.contact-form-status {
  margin: 0;
  padding: 14px 17px;
  border: 3px solid #315442;
  background: #e9f0d1;
  color: #274334;
  font-family: var(--readable-font);
  font-size: 16px;
  line-height: 1.4;
}

.faq-section {
  padding-top: clamp(64px, 7vw, 100px);
}

.faq-heading-row {
  margin-bottom: 30px;
}

.faq-heading-row h2 {
  margin: 0 0 9px;
  color: #fff8e7;
  font-family: var(--display-font);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 600;
  line-height: 0.95;
  text-shadow: 4px 4px 0 rgba(32, 26, 22, 0.72);
}

.faq-heading-row p {
  margin: 0;
  color: #ffedbd;
  font-family: var(--readable-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(32, 26, 22, 0.72);
}

.faq-list {
  overflow: hidden;
  border: 3px solid #d9d7cd;
  border-radius: 24px;
  padding: 18px 40px;
  background: #fffdfa;
  box-shadow: 8px 8px 0 rgba(55, 44, 36, 0.1);
}

.faq-list details + details {
  border-top: 1px solid #dddcd4;
}

.faq-list summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 20px;
  align-items: center;
  min-height: 80px;
  padding: 18px 3px;
  color: #2e4537;
  font-family: var(--readable-font);
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  color: #9a513a;
}

.faq-chevron {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  justify-self: center;
  align-self: center;
  border: 2px solid #cbd0c7;
  border-radius: 50%;
}

.faq-chevron::before {
  width: 10px;
  height: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 260ms ease;
}

.faq-list details[open] .faq-chevron::before {
  transform: translateY(2px) rotate(225deg);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  color: #61655d;
  font-family: var(--readable-font);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  transition:
    height 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease;
}

.faq-list details[open] .faq-answer {
  height: auto;
  opacity: 1;
}

.faq-answer p {
  margin: 0;
  padding: 0 56px 28px 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-intro > p:not(.contact-eyebrow) {
    max-width: 620px;
  }

}

@media (max-width: 700px) {
  .contact-page {
    min-height: calc(100svh - 178px);
    padding: 92px 0 80px;
    background-attachment: scroll;
  }

  .contact-card,
  .faq-section {
    width: calc(100% - 28px);
  }

  .contact-card {
    gap: 38px;
    padding: 42px 26px 36px;
  }

  .contact-close {
    top: -70px;
    right: 18px;
  }

  .contact-intro {
    grid-row: auto;
  }

  .contact-form {
    grid-row: auto;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .faq-heading-row h2 {
    font-size: clamp(39px, 10vw, 58px);
  }

  .faq-list {
    padding-inline: 22px;
  }

  .faq-answer {
    padding-right: 4px;
  }
}

@media (max-width: 420px) {
  .contact-page {
    min-height: calc(100svh - 128px);
  }

  .contact-card,
  .faq-section {
    width: 100%;
  }

  .contact-card {
    border-inline: 0;
  }

  .faq-list {
    border-inline: 0;
    border-radius: 0;
    padding-inline: 18px;
  }

  .faq-heading-row {
    padding-inline: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .faq-chevron::before,
  .faq-answer {
    transition: none;
  }
}
