/* Contact layout from López Firm; loaded only on /contactanos/. */
.contact-hero {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.7fr);
  gap: clamp(60px, 9vw, 140px);
  align-items: end;
  min-height: 540px;
  padding: clamp(75px, 9vw, 115px) max(28px, calc((100vw - var(--content)) / 2));
  background: var(--navy-deep);
  color: var(--white);
}

.contact-hero h1 {
  max-width: 780px;
  margin: 24px 0 25px;
  font-size: clamp(56px, 6.4vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.contact-hero > div:first-child > p:last-child {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
}

.contact-hero > div:first-child > p.contact-urgent-message {
  color: var(--orange);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.35;
}

.contact-hero-actions {
  display: grid;
  border-top: 4px solid var(--orange);
  background: var(--white);
}

.contact-hero-actions a {
  display: grid;
  gap: 5px;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}

.contact-hero-actions a:last-child {
  border-bottom: 0;
}

.contact-hero-actions span {
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.contact-hero-actions strong {
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.3;
}

.contact-form-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(55px, 9vw, 130px);
  padding: clamp(85px, 10vw, 130px) max(28px, calc((100vw - var(--content)) / 2));
  scroll-margin-top: calc(var(--header-height) + 20px);
  background: var(--navy);
  color: var(--white);
}

.contact-form-copy h2 {
  margin: 24px 0;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.02;
}

.contact-form-copy > p:last-of-type {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.7;
}

.contact-form-copy address {
  display: grid;
  gap: 12px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--light-line);
  font-style: normal;
}

.contact-form-copy address a {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.contact-form {
  display: grid;
  gap: 22px;
  padding: clamp(30px, 4vw, 50px);
  background: var(--white);
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label:not(.consent):not(.honeypot-field) {
  display: grid;
  gap: 9px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c9d0d8;
  border-radius: 0;
  background: #fbfcfd;
  color: var(--ink);
}

.contact-form input,
.contact-form select {
  min-height: 50px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 145px;
  padding: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(43,60,152, 0.16);
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.consent input {
  min-height: 18px;
  width: 18px;
  margin: 1px 0 0;
}

.sms-consent-block {
  display: grid;
  gap: 6px;
}

.sms-consent-block > p,
.chatbot-sms-terms {
  margin: 0 0 0 30px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sms-consent-block a,
.chatbot-sms-terms a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  min-height: 20px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
}

.contact-form button {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  padding: 0 24px;
  border: 0;
  background: var(--orange);
  color: var(--navy-deep);
  font-size: 11px;
  font-weight: 900;
}

.contact-form > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}


@media (max-width: 900px) {
  .contact-form-section, .contact-hero { grid-template-columns: 1fr; }
  .contact-form-section { gap: 50px; }
}
@media (max-width: 600px) {
  .contact-hero h1 { font-size: 49px; }
  .contact-form-section, .contact-hero { padding-inline: 20px; }
  .contact-form { padding: 28px 20px; }
}
.hero-intake-form {
  position: relative;
  z-index: 2;
  align-self: center;
  gap: 14px;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  background: rgba(3,13,66, 0.9);
  box-shadow: 0 28px 75px rgba(0, 9, 26, 0.34);
  backdrop-filter: blur(8px);
  color: var(--white);
}

.hero-form-heading > p:first-child {
  margin-bottom: 7px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-form-heading h2 {
  color: var(--white);
  font-family: var(--sans);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 850;
  line-height: 1.12;
}

.hero-form-heading .hero-form-note {
  margin: 10px 0 0;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.5;
}

.hero-intake-form label:not(.consent):not(.honeypot-field) {
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
}

.hero-intake-form input,
.hero-intake-form select {
  min-height: 47px;
  border: 0;
  border-radius: 5px;
  background: var(--white);
}

.hero-intake-form textarea {
  min-height: 90px;
  border: 0;
  border-radius: 5px;
  background: var(--white);
}

.hero-intake-form .consent {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  line-height: 1.45;
}

.consent-copy {
  display: grid;
  gap: 10px;
}

.consent-copy a {
  color: inherit;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-intake-form .form-status {
  min-height: 14px;
  color: var(--orange);
  font-size: 11px;
}

.hero-intake-form button {
  min-height: 54px;
  border-radius: 5px;
  background: var(--orange);
  font-size: 12px;
}

.hero-intake-form {
  gap: 18px;
  padding: clamp(24px, 2.6vw, 34px);
}

.hero-intake-form .hero-form-heading h2 {
  font-size: clamp(25px, 2.25vw, 32px);
}

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

.homepage-field-full {
  grid-column: 1 / -1;
}

.hero-intake-form .homepage-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-intake-form .homepage-field input,
.hero-intake-form .homepage-field select,
.hero-intake-form .homepage-field textarea {
  border-radius: 7px;
  color: #14243b;
  font-size: 15px;
  font-weight: 500;
}

.hero-intake-form .homepage-field input,
.hero-intake-form .homepage-field select {
  min-height: 50px;
  padding-inline: 18px;
}

.hero-intake-form .homepage-field textarea {
  min-height: 126px;
  padding: 17px 18px;
}

.hero-intake-form .homepage-field input::placeholder,
.hero-intake-form .homepage-field textarea::placeholder {
  color: #263242;
  opacity: 0.82;
}

.hero-intake-form .sms-consent-block {
  gap: 7px;
}

.hero-intake-form button {
  width: 100%;
}

@media (max-width: 430px) {
  .homepage-form-grid {
    grid-template-columns: 1fr;
  }

  .homepage-field-full {
    grid-column: auto;
  }
}

/* Integrate the reference form with this site's existing shared CSS. */
.contact-page .contact-form > button { background: var(--orange); color: var(--navy-deep); font-size: 12px; letter-spacing: normal; }
.contact-page .contact-form > button:hover { background: #f47a20; }
.contact-page .contact-form .form-status.is-error { color: #ffccc7; }
.contact-page .contact-hero > div, .contact-page .contact-form-section > * { min-width: 0; }
.contact-page .contact-form input, .contact-page .contact-form select, .contact-page .contact-form textarea { min-width: 0; }
.contact-page .contact-hero .eyebrow, .contact-page .contact-form-copy .eyebrow { font-size: 11px; letter-spacing: .14em; }
.contact-page .contact-hero .eyebrow > span, .contact-page .contact-form-copy .eyebrow > span { width: 34px; }
.contact-page .lf-contact-banner h2 { max-width: none; }
