.lead-modal .modal-card > h3,
.contact-form-heading h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--ink);
}

.lead-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lead-modal.open {
  display: flex;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  width: min(480px, 90%);
  box-shadow: var(--shadow);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

input,
textarea,
select {
  font-family: var(--font-sans);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
}

.inline-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.inline-actions button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--accent-dark);
}

/* Contact form anti-spam and delivery state */
.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-status {
  min-height: 1.5em;
  margin: 8px 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

[data-lead-form] button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


/* Lead form modal — keep actions within thumb reach on mobile. */
.lead-modal {
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lead-modal .modal-card {
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lead-modal .modal-card > h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}


.lead-modal .modal-card > .notice {
  margin-bottom: 16px;
}

.lead-modal .inline-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.lead-modal .inline-actions .button {
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
}

.lead-modal .inline-actions .button.secondary {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

@media (max-width: 640px) {
  .lead-modal {
    align-items: flex-end;
    padding: 12px 0 0;
  }

  .lead-modal .modal-card {
    width: 100%;
    max-height: calc(100dvh - 12px);
    padding: 20px 16px 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .lead-modal .modal-card > .notice {
    margin-bottom: 12px;
  }

  .lead-modal .form-field {
    margin-bottom: 10px;
  }

  .lead-modal input,
  .lead-modal textarea,
  .lead-modal select {
    font-size: 16px;
  }

  .lead-modal textarea {
    min-height: 92px;
    max-height: 22vh;
  }

  .lead-modal .inline-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 10px;
    margin: 12px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
  }

  .lead-modal .inline-actions .button {
    width: 100%;
    padding-inline: 16px;
  }
}

/* Contact page */
.contact-page {
  max-width: 1040px;
}

.contact-page-header {
  padding-bottom: 20px;
}

.contact-page-header .eyebrow {
  margin-bottom: 8px;
}

.contact-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 32px);
}

.contact-form-heading {
  margin-bottom: 20px;
}

.contact-form-heading h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.contact-fields-row {
  display: grid;
  gap: 12px;
}

.contact-page .form-field {
  margin-bottom: 12px;
}


.contact-page textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-verification {
  margin-top: 4px;
}

.contact-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.contact-form-actions .button {
  min-width: 150px;
}


@media (min-width: 760px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px;
  }

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

@media (max-width: 640px) {
  .contact-page {
    padding-top: 28px;
  }

  .contact-page-header {
    padding: 24px 0 16px;
  }

  .contact-page-header h1 {
    font-size: 2rem;
  }

  .contact-form-card {
    padding: 18px 16px;
  }

  .contact-page input,
  .contact-page textarea,
  .contact-page select {
    font-size: 16px;
  }

  .contact-page textarea {
    min-height: 110px;
  }

  .contact-form-actions .button {
    width: 100%;
  }
}


/* Contact */
.editorial-page.contact-page .eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--editorial-muted);
}

.editorial-page .contact-layout {
  display: block;
  max-width: 760px;
}

.editorial-page .contact-form-card {
  padding: clamp(22px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(31, 31, 31, 0.08);
  box-shadow: none;
}

.editorial-page .contact-form-heading h2 {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--heading);
}

.editorial-page .contact-form-heading .notice {
  font-size: 0.9rem;
  color: var(--editorial-muted);
}

.editorial-page .form-field {
  margin-bottom: 14px;
}

.editorial-page .form-field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}

.editorial-page input,
.editorial-page textarea,
.editorial-page select {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 31, 31, 0.13);
  color: var(--ink);
  box-shadow: none;
}

.editorial-page textarea {
  min-height: 130px;
}

.editorial-page form > .notice {
  margin-top: 2px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--editorial-muted);
}

.editorial-page form > .notice a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(107, 79, 63, 0.34);
  text-underline-offset: 0.16em;
}

.editorial-page .contact-verification {
  margin-top: 8px;
}

.editorial-page .contact-status {
  font-size: 0.86rem;
  color: var(--editorial-muted);
}

.editorial-page .contact-form-actions .button {
  min-width: 150px;
  min-height: 44px;
}

/* Professional enquiries extend the existing general contact form. */
.contact-page-intro {
  max-width: 650px;
  color: var(--editorial-muted);
  line-height: 1.8;
}

.contact-project-help:not([hidden]) {
  border-left: 2px solid rgba(107, 79, 63, 0.5);
  background: rgba(107, 79, 63, 0.055);
  padding: 12px 15px;
  margin: -2px 0 18px;
  color: var(--editorial-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.contact-project-help[hidden] { display: none; }
