/**
 * Official Contact frames 2:3808 / 2:10110 / 2:6108, adapted to verified CH data.
 * CH page158 and existing WPForms161 only. No form markup or handler replacement.
 * The actual Swiss information remains one panel; US prototype cards are not copied.
 */
body.esp-redesign.esp-figma-contact-v1 {
  --esp-contact-caption: #6e6357;
  --esp-contact-border: #9a886c;
  --esp-contact-gutter: clamp(32px, calc(12.980769vw - 100.923077px), 86px);
  background: var(--esp-paper, #fbf8f3);
}

/* Native fullwidth template has Bootstrap row/column gutters around the article. */
body.esp-redesign.esp-figma-contact-v1 #full-width-page-wrapper > #content > .row {
  margin-inline: 0;
}
body.esp-redesign.esp-figma-contact-v1 #full-width-page-wrapper #primary {
  padding-inline: 0;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 {
  box-sizing: border-box;
  width: min(1268px, calc(100% - 2 * var(--esp-contact-gutter)));
  margin-inline: auto;
  padding-block: 24px 104px;
  color: var(--esp-ink, #1e1813);
}
body.esp-redesign.esp-figma-contact-v1 #post-158 > :is(.woocommerce-products-header, .esp-section__head) {
  align-items: flex-start !important;
  min-height: 0 !important;
  margin: 0 0 32px;
  padding: 0 !important;
  background: transparent !important;
  color: var(--esp-ink, #1e1813) !important;
  text-align: start;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 .woocommerce-breadcrumb {
  width: 100%;
  margin: 0 0 32px;
  color: var(--esp-ink, #1e1813);
  font: 400 14px/1.3 var(--esp-font-body, 'Poppins', sans-serif);
  overflow-wrap: anywhere;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 :is(.page-title, .esp-section__head > h1) {
  margin: 0;
  color: var(--esp-ink, #1e1813);
  font: 400 56px/1 var(--esp-font-display, 'Bellefair', serif);
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

/* Exact published block structure, not an alternate form or copied page body. */
body.esp-redesign.esp-figma-contact-v1 #post-158 > .entry-content > .wp-block-group.container.my-5 {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 > .entry-content > .wp-block-group.container.my-5 > .wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  width: 100%;
  margin: 0;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 > .entry-content > .wp-block-group.container.my-5 > .wp-block-columns > .wp-block-column {
  box-sizing: border-box;
  min-width: 0;
  width: auto;
  margin: 0;
  border-radius: 16px;
  background: #fff;
  overflow-wrap: anywhere;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 > .entry-content > .wp-block-group.container.my-5 > .wp-block-columns > .wp-block-column:first-child {
  padding: 24px;
  font: 400 16px/1.4 var(--esp-font-body, 'Poppins', sans-serif);
}
body.esp-redesign.esp-figma-contact-v1 #post-158 > .entry-content > .wp-block-group.container.my-5 > .wp-block-columns > .wp-block-column:nth-child(2) {
  padding: 32px;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 :is(#h-contact-us, #h-contact-us-usa-hq) {
  margin: 0 0 12px !important;
  color: var(--esp-gold, #8c6a2c);
  font: 600 12px/1.4 var(--esp-font-body, 'Poppins', sans-serif);
  letter-spacing: .96px;
  text-align: start !important;
  text-transform: uppercase;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 .wp-block-column:first-child > .wp-block-paragraph {
  margin: 0 0 12px !important;
  color: var(--esp-ink, #1e1813);
  font: inherit;
  text-align: start !important;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 .wp-block-column:first-child > .wp-block-image {
  max-width: 100%;
  margin: 0 0 16px;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 .wp-block-column:first-child > .wp-block-image img {
  max-width: 100%;
  height: auto;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 .wp-block-column:first-child a {
  color: var(--esp-ink, #1e1813);
  text-underline-offset: 4px;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 .footer-social-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

/* Override the native global important block rule only in this Contact panel. */
body.esp-redesign.esp-figma-contact-v1 #post-158 .wp-block-column:first-child .wp-block-group.is-layout-flex:has(> .footer-social-item) {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 8px;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 .wp-block-column:first-child .wp-block-group.is-layout-flex:has(> .footer-social-item) > .footer-social-item {
  margin: 0 !important;
}

/* Keep all plugin visibility, validation, hidden fields and AJAX behavior native. */
body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--esp-ink, #1e1813);
  font-family: var(--esp-font-body, 'Poppins', sans-serif);
}
body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-form-161 {
  margin: 0;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 .wpforms-field-container::after {
  display: block;
  clear: both;
  content: '';
}
/* Closed list of the five real fields. No display rule targets fields5/6. */
body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 :is(#wpforms-161-field_0-container, #wpforms-161-field_1-container, #wpforms-161-field_3-container, #wpforms-161-field_4-container, #wpforms-161-field_2-container) {
  box-sizing: border-box;
  float: left;
  clear: none;
  width: calc((100% - 12px) / 2);
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  vertical-align: top;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 :is(#wpforms-161-field_0-container, #wpforms-161-field_3-container) {
  clear: left;
  margin-inline-end: 12px;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 #wpforms-161-field_2-container {
  clear: both;
  width: 100%;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 :is(#wpforms-161-field_0-container, #wpforms-161-field_1-container, #wpforms-161-field_3-container, #wpforms-161-field_4-container, #wpforms-161-field_2-container) > label:not(.wpforms-error) {
  display: block;
  margin: 0 0 6px;
  color: var(--esp-ink, #1e1813);
  font: 400 14px/1.4 var(--esp-font-body, 'Poppins', sans-serif);
}
body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 :is(#wpforms-161-field_0, #wpforms-161-field_1, #wpforms-161-field_3, #wpforms-161-field_4, #wpforms-161-field_2) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--esp-contact-border);
  border-radius: 8px;
  background: #fff;
  color: var(--esp-ink, #1e1813);
  font: 400 16px/1.4 var(--esp-font-body, 'Poppins', sans-serif);
  box-shadow: none;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 :is(#wpforms-161-field_0, #wpforms-161-field_1, #wpforms-161-field_3, #wpforms-161-field_4, #wpforms-161-field_2)::placeholder {
  color: var(--esp-contact-caption);
  opacity: 1;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 #wpforms-161-field_2 {
  height: auto;
  min-height: 180px;
  resize: vertical;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 .wpforms-submit-container {
  clear: both;
  margin: 0;
  padding: 0;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 .wpforms-submit {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--esp-gold-accent, #b8924a);
  border-radius: 8px;
  background: var(--esp-gold-accent, #b8924a);
  color: var(--esp-ink, #1e1813);
  font: 500 16px/1.4 var(--esp-font-body, 'Poppins', sans-serif);
  text-align: center;
  text-transform: none;
  white-space: normal;
}
body.esp-redesign.esp-figma-contact-v1 #post-158 :is(a, input, textarea, button):focus-visible {
  outline: 2px solid var(--esp-focus, #805d20);
  outline-offset: 3px;
}

@media (max-width: 1023.98px) {
  body.esp-redesign.esp-figma-contact-v1 { --esp-contact-gutter: 32px; }
  body.esp-redesign.esp-figma-contact-v1 #post-158 {
    padding-block: 8px 48px;
  }
  body.esp-redesign.esp-figma-contact-v1 #post-158 > :is(.woocommerce-products-header, .esp-section__head) {
    margin-bottom: 16px;
  }
  body.esp-redesign.esp-figma-contact-v1 #post-158 .woocommerce-breadcrumb {
    margin-bottom: 16px;
  }
  body.esp-redesign.esp-figma-contact-v1 #post-158 :is(.page-title, .esp-section__head > h1) {
    font-size: 40px;
  }
  body.esp-redesign.esp-figma-contact-v1 #post-158 > .entry-content > .wp-block-group.container.my-5 > .wp-block-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  body.esp-redesign.esp-figma-contact-v1 #post-158 > .entry-content > .wp-block-group.container.my-5 > .wp-block-columns > .wp-block-column:first-child {
    padding: 16px 32px;
    font-size: 14px;
    line-height: 1.3;
  }
  body.esp-redesign.esp-figma-contact-v1 #post-158 > .entry-content > .wp-block-group.container.my-5 > .wp-block-columns > .wp-block-column:nth-child(2) {
    padding: 20px;
  }
  body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 :is(#wpforms-161-field_0-container, #wpforms-161-field_1-container, #wpforms-161-field_3-container, #wpforms-161-field_4-container, #wpforms-161-field_2-container) {
    float: none;
    width: 100%;
    margin-inline: 0;
    margin-bottom: 12px;
  }
  body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 #wpforms-161-field_2 {
    min-height: 140px;
  }
  body.esp-redesign.esp-figma-contact-v1 #post-158 #wpforms-161 .wpforms-submit {
    width: 100%;
  }
}
@media (max-width: 767.98px) {
  body.esp-redesign.esp-figma-contact-v1 { --esp-contact-gutter: 16px; }
  body.esp-redesign.esp-figma-contact-v1 #post-158 > .entry-content > .wp-block-group.container.my-5 > .wp-block-columns > .wp-block-column:first-child {
    padding: 16px;
  }
}
