.contact-layout {
  display: grid;
  grid-template-areas: "intro form" "details form";
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 24px clamp(24px, 5vw, 72px);
  padding-block: clamp(34px, 5vw, 70px) clamp(28px, 5vw, 60px);
}

.contact-intro { grid-area: intro; }

.contact-intro h1 {
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 1;
  letter-spacing: -.057em;
}

.contact-intro h1 em { color: var(--coral); font-style: normal; }

.contact-intro > p {
  max-width: 34ch;
  margin-top: 15px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

.contact-details, .contact-form-card {
  border: 1px solid var(--border);
  border-radius: 22px;
}

.contact-details {
  grid-area: details;
  padding: 21px 24px;
  background: linear-gradient(120deg, #fff1e9, var(--lavender));
}

.contact-details h2, .contact-form-card h2 {
  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.1;
  letter-spacing: -.038em;
}

.contact-details h2 { font-size: 24px; }

.contact-details address {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
  overflow-wrap: anywhere;
}

.contact-details address a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.contact-details address a:hover { color: var(--coral); }
.contact-details > p { margin-top: 10px; color: var(--muted); font-size: 14px; }

.contact-form-card {
  grid-area: form;
  padding: clamp(19px, 3.5vw, 40px);
  background: #fff;
  box-shadow: 0 10px 28px #3123450d;
}

.contact-form {
  display: grid;
  gap: 17px;
  margin-top: 20px;
}

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { display: grid; gap: 5px; }
.form-field label { font-size: 14px; font-weight: 700; }

.form-field input, .form-field textarea {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b3a6bf;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.form-field textarea { min-height: 122px; resize: vertical; }

.form-submit {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.form-submit .form-field { width: min(100%, 150px); }
.form-submit .button { border: 0; font-family: inherit; cursor: pointer; }

.form-notice {
  margin-top: 14px;
  padding: 10px 13px;
  border: 1px solid;
  border-radius: 9px;
  font-size: 15px;
}

.form-notice-success { border-color: #bad7c9; background: #eff9f3; color: #245640; }
.form-notice-error { border-color: #f2c4b8; background: #fff0ea; color: #812e1d; }
.contact-footer { grid-template-columns: 1fr auto; border-top: 1px solid var(--border); }

@media (max-width: 735px) {
  .contact-layout {
    grid-template-areas: "intro" "form" "details";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .contact-footer { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .form-row, .form-submit { display: grid; grid-template-columns: 1fr; }
  .form-submit .button { width: 100%; }
}
