/* Essentials Direct contact page */
body.ed-contact-page .hero-section,
body.ed-contact-page [data-prefix="single_page"] > .entry-header,
body.ed-contact-page .site-main > .entry-header,
body.ed-contact-page article > .entry-header {
  display: none !important;
}

body.ed-contact-page .site-main,
body.ed-contact-page .content-area,
body.ed-contact-page .ct-container-full,
body.ed-contact-page .ct-container {
  margin-top: 0;
}

body.ed-contact-page article,
body.ed-contact-page .entry-content {
  margin: 0 !important;
}

.ed-contact-shell {
  --ed-contact-orange: var(--ed-orange, #f97316);
  --ed-contact-orange-dark: var(--ed-orange-dark, #ea580c);
  --ed-contact-orange-soft: var(--ed-orange-soft, #fff4e8);
  --ed-contact-ink: var(--ed-ink, #111827);
  --ed-contact-muted: var(--ed-muted, #64748b);
  --ed-contact-line: var(--ed-line, #e5e7eb);
  --ed-contact-soft: var(--ed-soft, #f8fafc);
  --ed-contact-white: #fff;
  color: var(--ed-contact-ink);
  font-family: inherit;
  margin: 0 auto 72px;
}

.ed-contact-shell *,
.ed-contact-shell *::before,
.ed-contact-shell *::after {
  box-sizing: border-box;
}

.ed-contact-shell svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.ed-contact-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(249, 115, 22, 0.16), transparent 30%),
    linear-gradient(135deg, #fffaf5 0%, #fff 52%, #fff7ed 100%);
  margin: 30px auto 34px;
  max-width: 1220px;
}

.ed-contact-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -105px;
  width: 260px;
  height: 260px;
  border: 42px solid rgba(249, 115, 22, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.ed-contact-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 46px 52px 50px;
}

.ed-contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--ed-contact-muted);
  font-size: 14px;
  font-weight: 650;
}

.ed-contact-breadcrumb a {
  color: var(--ed-contact-muted);
  text-decoration: none;
}

.ed-contact-breadcrumb a:hover {
  color: var(--ed-contact-orange-dark);
}

.ed-contact-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.ed-contact-hero h1 {
  margin: 14px 0 12px;
  color: var(--ed-contact-ink);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -1.7px;
  font-weight: 850;
}

.ed-contact-hero p {
  max-width: 690px;
  margin: 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.7;
}

.ed-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
  gap: 26px;
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  align-items: start;
}

.ed-contact-form-card,
.ed-contact-support-card {
  border: 1px solid var(--ed-contact-line);
  background: var(--ed-contact-white);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
}

.ed-contact-form-card {
  padding: 34px;
  border-radius: 24px;
}

.ed-contact-form-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ed-contact-line);
  margin-bottom: 26px;
}

.ed-contact-form-heading > span,
.ed-contact-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--ed-contact-orange-dark);
  background: var(--ed-contact-orange-soft);
}

.ed-contact-form-heading h2,
.ed-contact-support-card h2,
.ed-contact-support-card h3 {
  color: var(--ed-contact-ink);
  font-weight: 820;
  letter-spacing: -.45px;
}

.ed-contact-form-heading h2 {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.2;
}

.ed-contact-form-heading p {
  margin: 0;
  color: var(--ed-contact-muted);
  font-size: 15px;
  line-height: 1.55;
}

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

.ed-contact-form {
  display: grid;
  gap: 18px;
}

.ed-field {
  display: grid;
  gap: 8px;
}

.ed-field label {
  color: #334155;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 760;
}

.ed-field label span {
  color: #dc2626;
}

.ed-field label small {
  color: var(--ed-contact-muted);
  font-size: 13px;
  font-weight: 600;
}

.ed-field input,
.ed-field select,
.ed-field textarea {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  color: var(--ed-contact-ink);
  background: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.ed-field textarea {
  min-height: 168px;
  resize: vertical;
}

.ed-field input::placeholder,
.ed-field textarea::placeholder {
  color: #94a3b8;
}

.ed-field input:focus,
.ed-field select:focus,
.ed-field textarea:focus {
  border-color: var(--ed-contact-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.ed-contact-submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}

.ed-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  color: #fff !important;
  background: var(--ed-contact-orange-dark) !important;
  box-shadow: 0 10px 22px rgba(234, 88, 12, .2);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ed-contact-submit:hover {
  background: #c2410c !important;
  box-shadow: 0 12px 26px rgba(194, 65, 12, .24);
  transform: translateY(-1px);
}

.ed-contact-submit:focus-visible {
  outline: 3px solid rgba(249, 115, 22, .3);
  outline-offset: 3px;
}

.ed-contact-submit svg {
  width: 18px;
  height: 18px;
}

.ed-contact-submit-row > p {
  margin: 0;
  color: var(--ed-contact-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ed-contact-submit-row > p a {
  color: #9a3412;
  font-weight: 700;
}

.ed-contact-sidebar {
  display: grid;
  gap: 18px;
}

.ed-contact-support-card {
  padding: 24px;
  border-radius: 20px;
}

.ed-contact-support-card--primary {
  color: #fff;
  border-color: #1f2937;
  background: linear-gradient(145deg, #111827, #1f2937);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .16);
}

.ed-contact-support-card--primary .ed-contact-card-icon {
  color: #fff;
  background: rgba(255,255,255,.12);
}

.ed-contact-card-kicker {
  margin: 18px 0 5px !important;
  color: #fdba74 !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.ed-contact-support-card h2 {
  margin: 0 0 9px;
  font-size: 23px;
  line-height: 1.25;
}

.ed-contact-support-card h3 {
  margin: 17px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.ed-contact-support-card p {
  margin: 0 0 14px;
  color: var(--ed-contact-muted);
  font-size: 15px;
  line-height: 1.6;
}

.ed-contact-support-card--primary h2,
.ed-contact-support-card--primary p {
  color: #fff;
}

.ed-contact-support-card--primary > p:not(.ed-contact-card-kicker) {
  color: #cbd5e1;
}

.ed-contact-email-link {
  display: inline-block;
  max-width: 100%;
  color: #fff !important;
  font-size: 15px;
  font-weight: 760;
  overflow-wrap: anywhere;
  text-decoration-color: #fb923c !important;
  text-underline-offset: 4px;
}

.ed-contact-support-card > a:not(.ed-contact-email-link) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c2410c;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.ed-contact-support-card > a svg {
  width: 17px;
  height: 17px;
}

.ed-contact-quick-links {
  display: grid;
  gap: 8px;
}

.ed-contact-quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #9a3412;
  background: var(--ed-contact-orange-soft);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.ed-contact-quick-links a::after {
  content: "→";
  font-size: 17px;
}

.ed-contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.ed-contact-alert span {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 900;
}

.ed-contact-alert span svg {
  width: 17px;
  height: 17px;
}

.ed-contact-alert p {
  margin: 1px 0 0;
  color: inherit;
}

.ed-contact-alert--success {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.ed-contact-alert--success span {
  color: #fff;
  background: #16a34a;
}

.ed-contact-alert--error {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.ed-contact-alert--error span {
  color: #fff;
  background: #dc2626;
}

.ed-contact-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

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

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

  .ed-contact-support-card--primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .ed-contact-shell {
    margin-bottom: 40px;
  }

  .ed-contact-hero {
    width: calc(100% - 24px);
    margin: 16px auto 22px;
    border-radius: 20px;
  }

  .ed-contact-hero__inner {
    padding: 28px 22px 30px;
  }

  .ed-contact-breadcrumb {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .ed-contact-hero h1 {
    margin-top: 12px;
    font-size: 34px;
    letter-spacing: -1.1px;
  }

  .ed-contact-hero p {
    font-size: 16px;
    line-height: 1.65;
  }

  .ed-contact-layout {
    width: calc(100% - 24px);
    gap: 16px;
  }

  .ed-contact-form-card,
  .ed-contact-support-card {
    border-radius: 18px;
  }

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

  .ed-contact-form-heading {
    gap: 11px;
    margin-bottom: 22px;
    padding-bottom: 20px;
  }

  .ed-contact-form-heading > span {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .ed-contact-form-heading h2 {
    font-size: 22px;
  }

  .ed-contact-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ed-contact-form {
    gap: 16px;
  }

  .ed-field label {
    font-size: 14px;
  }

  .ed-field input,
  .ed-field select,
  .ed-field textarea {
    min-height: 50px;
    font-size: 16px;
  }

  .ed-contact-submit-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .ed-contact-submit {
    width: 100%;
  }

  .ed-contact-sidebar {
    grid-template-columns: 1fr;
  }

  .ed-contact-support-card--primary {
    grid-column: auto;
  }

  .ed-contact-support-card {
    padding: 20px;
  }
}

/* v1.6.15 contact social links */
.ed-contact-social-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
}

.ed-contact-social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.ed-contact-social-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid var(--ed-contact-line);
  border-radius: 12px;
  color: var(--ed-contact-ink) !important;
  background: #fff;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 780;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ed-contact-social-link svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ed-contact-social-link svg .ed-contact-social-fill {
  fill: currentColor;
  stroke: none;
}

.ed-contact-social-link svg .ed-contact-social-play {
  fill: #fff;
  stroke: none;
}

.ed-contact-social-link:hover,
.ed-contact-social-link:focus-visible {
  transform: translateY(-1px);
  border-color: #fb923c;
  background: #fff7ed;
}

.ed-contact-social-link.is-placeholder {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 520px) {
  .ed-contact-social-links {
    grid-template-columns: 1fr;
  }
}
