.contact-body,
.contact-page {
  background: #f7f7f7;
  color: #080808;
}

.contact-layout {
  width: 70.2%;
  margin-inline: auto;
  padding-block: clamp(24px, 2.2vw, 70px) clamp(60px, 8vw, 240px);
}

.contact-layout h1 {
  margin: 0 0 clamp(26px, 4vw, 120px) 2%;
  font-size: clamp(38px, 6vw, 175px);
  line-height: 1.05;
  font-weight: 800;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 36px);
}

.contact-card {
  border-radius: clamp(14px, 1.4vw, 42px);
  padding: clamp(22px, 3.2vw, 96px);
  font-size: clamp(14px, 1.1vw, 33px);
  line-height: 1.6;
}

.contact-card h2 {
  margin: 0 0 .65em;
  font-size: clamp(22px, 2.2vw, 66px);
  line-height: 1.25;
  font-weight: 750;
}

.contact-info { background: #ececec; }
.contact-message { background: #fff; }

.contact-info ul {
  display: grid;
  gap: 2.5em;
  margin: 0;
  padding: 1.15em 0 0;
  border-top: 1px solid #a3a3a3;
  list-style: none;
}

.contact-info button {
  padding: .55em .4em;
  margin-inline-start: 12%;
  max-width: 88%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.contact-info button:hover,
.contact-info button:focus-visible { color: var(--brand-red); }

.contact-feedback { min-height: 1.6em; margin: .75em 0 0; }

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55em;
}

.contact-fields input,
.contact-fields textarea {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  border: 1px solid transparent;
  border-radius: .4em;
  padding: .45em .85em;
  color: #080808;
  background: #eee;
  font: inherit;
}

.contact-fields :is(input, textarea):focus { outline: none; }

.contact-fields :is(input, textarea)::placeholder { color: #666; }

.contact-fields textarea {
  grid-column: 1 / -1;
  min-height: 10.5em;
  resize: vertical;
}

.contact-submit {
  width: 100%;
  min-height: 2.7em;
  margin-top: .55em;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: default;
  opacity: 1;
}

.contact-message p {
  margin: .45em 0 0;
  color: #666;
  font-size: .95em;
}

.contact-message #contact-availability { margin-top: 1.45em; }

@media (max-width: 850px) {
  .contact-layout { width: 88%; }
}

@media (max-width: 620px) {
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .contact-info button { margin-inline-start: 0; max-width: 100%; }
  .contact-info ul { gap: .7em; }
}

@media (max-width: 360px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); }
}

.contact-submit {
  background-image: linear-gradient(var(--brand-red), var(--brand-red));
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 280ms ease;
}

@media (hover: hover) {
  .contact-submit:hover { background-size: 100% 100%; }
}

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