.haillo-contact-template,
.haillo-contact-shell,
.haillo-contact-shell > div {
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
}

.haillo-contact-page {
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--navy);
}

.haillo-contact-container {
  width: var(--wp--custom--container--page);
  margin-inline: auto;
}

.haillo-contact-hero {
  padding: clamp(128px, 14vw, 182px) 0 clamp(68px, 8vw, 104px);
  background:
    radial-gradient(circle at 82% 8%, rgba(167, 44, 243, .08), transparent 31%),
    linear-gradient(180deg, rgba(246, 248, 252, .96), var(--wp--preset--color--white));
}

.haillo-contact-eyebrow,
.haillo-contact-kicker {
  margin: 0 0 22px;
  color: var(--wp--preset--color--blue);
  font-size: .75rem;
  font-weight: 760;
  letter-spacing: .12em;
}

.haillo-contact-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.04;
}

.haillo-contact-lead {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--wp--preset--color--slate);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
}

.haillo-contact-body {
  padding: clamp(76px, 9vw, 132px) 0 clamp(100px, 12vw, 158px);
}

.haillo-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(520px, 1.22fr);
  gap: clamp(58px, 8vw, 118px);
  align-items: start;
}

.haillo-contact-details {
  position: sticky;
  top: 120px;
}

.haillo-contact-details h2,
.haillo-contact-form-card h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: 0;
  line-height: 1.12;
}

.haillo-contact-details > div > p:last-child {
  max-width: 480px;
  margin: 22px 0 0;
  color: var(--wp--preset--color--slate);
  font-size: 1.03rem;
  line-height: 1.75;
}

.haillo-contact-list {
  display: grid;
  gap: 22px;
  margin: 48px 0 0;
}

.haillo-contact-list div {
  padding-top: 20px;
  border-top: 1px solid var(--wp--custom--surface--border);
}

.haillo-contact-list dt {
  color: var(--wp--preset--color--slate);
  font-size: .76rem;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.haillo-contact-list dd {
  margin: 7px 0 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.haillo-contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.haillo-contact-placeholder-note {
  margin: 10px 0 0;
  color: var(--wp--preset--color--slate);
  font-size: .76rem;
}

.haillo-contact-form-card {
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid var(--wp--custom--surface--border);
  border-radius: var(--wp--custom--radius--large);
  background: var(--wp--preset--color--mist);
  box-shadow: var(--wp--custom--shadow--small);
}

.haillo-contact-form {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

/* WordPress may add paragraph formatting around rendered shortcode markup. */
.haillo-contact-form-card > p:empty,
.haillo-contact-form > br,
.haillo-contact-form > p:empty,
.haillo-contact-field-row > p:empty,
.haillo-contact-field > br,
.haillo-contact-honeypot > br {
  display: none;
}

.haillo-contact-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.haillo-contact-field {
  display: grid;
  gap: 9px;
}

.haillo-contact-field label {
  font-size: .87rem;
  font-weight: 680;
}

.haillo-contact-field input,
.haillo-contact-field select,
.haillo-contact-field textarea {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  border: 1px solid var(--wp--custom--surface--border-strong);
  border-radius: var(--wp--custom--radius--small);
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--navy);
  font: inherit;
  line-height: 1.45;
  transition: border-color var(--wp--custom--transition--fast), box-shadow var(--wp--custom--transition--fast);
}

.haillo-contact-field input,
.haillo-contact-field select {
  padding: 0 15px;
}

.haillo-contact-field textarea {
  min-height: 152px;
  padding: 14px 15px;
  resize: vertical;
}

.haillo-contact-field input:focus,
.haillo-contact-field select:focus,
.haillo-contact-field textarea:focus {
  outline: 0;
  border-color: var(--wp--preset--color--blue);
  box-shadow: var(--wp--custom--shadow--focus);
}

.haillo-contact-submit {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.haillo-contact-submit .haillo-button {
  flex: 0 0 auto;
  cursor: pointer;
  font-family: inherit;
}

.haillo-contact-submit p {
  max-width: 380px;
  margin: 0;
  color: var(--wp--preset--color--slate);
  font-size: .75rem;
  line-height: 1.55;
}

.haillo-contact-notice {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: var(--wp--custom--radius--small);
  font-size: .9rem;
  line-height: 1.5;
}

.haillo-contact-notice--success {
  border: 1px solid rgba(18, 164, 111, .2);
  background: rgba(18, 164, 111, .09);
  color: var(--wp--custom--interaction--success-text);
}

.haillo-contact-notice--error {
  border: 1px solid rgba(185, 28, 28, .18);
  background: rgba(185, 28, 28, .07);
  color: #8f1d1d;
}

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

@media (max-width: 900px) {
  .haillo-contact-layout {
    grid-template-columns: 1fr;
  }

  .haillo-contact-details {
    position: static;
  }

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

@media (max-width: 600px) {
  .haillo-contact-container {
    width: min(100% - 32px, 1200px);
  }

  .haillo-contact-hero {
    padding-top: 112px;
  }

  .haillo-contact-field-row,
  .haillo-contact-list {
    grid-template-columns: 1fr;
  }

  .haillo-contact-form-card {
    padding: 25px 20px;
    border-radius: var(--wp--custom--radius--medium);
  }

  .haillo-contact-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .haillo-contact-submit .haillo-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .haillo-contact-field input,
  .haillo-contact-field select,
  .haillo-contact-field textarea {
    transition: none;
  }
}
