.contact-page { background: #fff; }
.contact-page .contact-wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; }
.contact-intro { background: #fff; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.contact-intro-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.contact-intro-copy h1 { margin: 0 0 1.25rem; font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.1; font-weight: 700; color: #0a0a0a; }
.contact-title-accent { color: #10b981; }
.contact-intro-copy h2 { margin: 0 0 1.25rem; max-width: 18ch; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; font-weight: 600; color: #0a0a0a; }
.contact-intro-copy p { max-width: 58ch; margin: 0; color: #464646; font-size: 1.0625rem; line-height: 1.75; }
.contact-details { display: grid; justify-items: start; gap: .8rem; margin-top: 1.5rem; }
.contact-details a { display: inline-flex; align-items: center; gap: .75rem; color: #0a0a0a; font-size: .875rem; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.contact-details a .material-symbols-outlined { flex: 0 0 auto; color: #10b981; font-size: 1.25rem; }
.contact-details a:hover { color: #087c55; }
.contact-social-links { display: flex; gap: .65rem; margin-top: 1rem; }
.contact-social-links a { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid #aaa; border-radius: 4px; color: #10b981; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.contact-social-links a:hover { border-color: #10b981; background: #10b981; color: #fff; }
.contact-social-links svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.contact-social-links a:nth-child(2) svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.contact-social-links .contact-social-dot { fill: currentColor; stroke: none; }
.contact-form-card { min-width: 0; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid #aaa; border-radius: 8px; background: #e5e5e5; color: #0a0a0a; box-shadow: 0 12px 32px rgb(0 0 0 / 14%); }
.contact-form { position: relative; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.contact-field { display: grid; gap: .6rem; min-width: 0; }
.contact-field-wide { grid-column: 1 / -1; }
.contact-field label { color: #171717; font-size: .875rem; font-weight: 500; }
.contact-field label span { color: #10b981; }
.contact-field input,
.contact-field textarea { width: 100%; min-height: 3.25rem; padding: .85rem 1rem; border: 1px solid #aaa; border-radius: 3px; outline: none; background: #fff; color: #171717; font: inherit; }
.contact-field textarea { min-height: 9rem; resize: vertical; }
.contact-field input:focus,
.contact-field textarea:focus { border-color: #10b981; box-shadow: 0 0 0 2px rgb(16 185 129 / 18%); }
.contact-submit { display: flex !important; width: fit-content !important; margin-top: 1.5rem; border: 0; cursor: pointer; }
.contact-submit:hover { background-color: #e8e8e8 !important; }
.contact-submit:disabled { cursor: wait; opacity: .7; }
.contact-form.is-submitted .contact-fields,
.contact-form.is-submitted .contact-submit { visibility: hidden; }
.contact-form-success { position: absolute; inset: 0; align-content: center; justify-items: center; gap: 1rem; text-align: center; }
.contact-form-success[hidden] { display: none !important; }
.contact-form-success:not([hidden]) { display: grid; }
.contact-form-success .material-symbols-outlined { color: #10b981; font-size: 4rem; }
.contact-form-success p { margin: 0; color: #171717; font-size: 1.125rem; font-weight: 500; }
@media (max-width: 800px) {
  .contact-intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form-card { padding: 1.5rem; }
}
@media (min-width: 1024px) {
  .contact-page .contact-wrap { padding-inline: 3rem; }
}
@media (max-width: 520px) {
  .contact-fields { grid-template-columns: 1fr; }
  .contact-field-wide { grid-column: auto; }
}
