/* =========================================
   Anchor Contact Section
   File: /css/anchor-contact-form.css
   Used by shortcode: [anchor_contact_section]

   Purpose:
   - Layout
   - Contact card treatment
   - CF7 field layout/styling
   - Brand accent graphics

   Typography:
   - H2, H3, H5 should mostly inherit from Salient global settings.
   - This file only adjusts color, spacing, and layout-specific behavior.
   ========================================= */


/* =========================================
   Section base
   ========================================= */

.anchor-contact-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: 76px 0 88px;
  color: #1d3a1e;
}

.anchor-contact-section::before {
  content: "";
  position: absolute;
  right: -220px;
  top: 170px;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  background: #e9f4e6;
  opacity: 0.72;
  pointer-events: none;
}

.anchor-contact-section::after {
  content: "";
  position: absolute;
  left: -280px;
  bottom: 110px;
  width: 620px;
  height: 420px;
  border-radius: 0 280px 0 0;
  background: #f8f8f4;
  pointer-events: none;
}

.anchor-contact-container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}


/* =========================================
   Intro
   ========================================= */

.anchor-contact-intro {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}

/* H5 eyebrow: typography comes from Salient H5 */
.anchor-contact-section .anchor-section-eyebrow {
  margin-top: 0;
  margin-bottom: 14px;
  color: #ff9900 !important;
}

/* H2 typography comes from Salient H2 */
.anchor-contact-heading {
  margin-top: 0;
  margin-bottom: 0;
  color: #1d3a1e;
}

/* This is a lead/dek, so it gets light custom treatment */
.anchor-contact-dek {
  max-width: 760px;
  margin: 12px auto 0;
  color: #2c5134;
  font-weight: 800;
}


/* =========================================
   Main layout
   ========================================= */

.anchor-contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  align-items: stretch;
}


/* =========================================
   Left contact card
   ========================================= */

.anchor-contact-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background: linear-gradient(90deg, #153c1d 0%, #1b4a22 48%, #163c1d 100%);
  color: #ffffff;
}

.anchor-contact-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -145px;
  top: -145px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: #2c5134;
  opacity: 0.88;
  pointer-events: none;
}

/* Brand-guide-inspired horizontal bar chart texture */
.anchor-contact-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 42px;
  right: 42px;
  bottom: 48px;
  height: 210px;
  pointer-events: none;
  opacity: 0.32;
  background:
    linear-gradient(rgba(91, 126, 81, 0.8), rgba(91, 126, 81, 0.8)) 0 0 / 82% 2px no-repeat,
    linear-gradient(rgba(91, 126, 81, 0.72), rgba(91, 126, 81, 0.72)) 42px 18px / 64% 2px no-repeat,
    linear-gradient(rgba(91, 126, 81, 0.78), rgba(91, 126, 81, 0.78)) 0 36px / 92% 2px no-repeat,
    linear-gradient(rgba(91, 126, 81, 0.66), rgba(91, 126, 81, 0.66)) 72px 54px / 58% 2px no-repeat,
    linear-gradient(rgba(91, 126, 81, 0.76), rgba(91, 126, 81, 0.76)) 0 72px / 78% 2px no-repeat,
    linear-gradient(rgba(91, 126, 81, 0.64), rgba(91, 126, 81, 0.64)) 92px 90px / 52% 2px no-repeat,
    linear-gradient(rgba(91, 126, 81, 0.76), rgba(91, 126, 81, 0.76)) 0 108px / 88% 2px no-repeat,
    linear-gradient(rgba(91, 126, 81, 0.66), rgba(91, 126, 81, 0.66)) 58px 126px / 68% 2px no-repeat,
    linear-gradient(rgba(91, 126, 81, 0.74), rgba(91, 126, 81, 0.74)) 0 144px / 80% 2px no-repeat,
    linear-gradient(rgba(91, 126, 81, 0.62), rgba(91, 126, 81, 0.62)) 84px 162px / 56% 2px no-repeat,
    linear-gradient(rgba(91, 126, 81, 0.72), rgba(91, 126, 81, 0.72)) 0 180px / 72% 2px no-repeat;
}

.anchor-contact-card-inner {
  position: relative;
  z-index: 1;
  padding: 44px 42px;
}

.anchor-contact-card .anchor-section-eyebrow {
  color: #ff9900 !important;
}

/* H3 typography comes from Salient H3 */
.anchor-contact-card-heading {
  max-width: 340px;
  margin-top: 0;
  margin-bottom: 34px;
  color: #ffffff;
}

.anchor-contact-details {
  display: grid;
  gap: 0;
}

.anchor-contact-detail {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.anchor-contact-detail:first-child {
  border-top: none;
  padding-top: 0;
}

.anchor-contact-detail-label {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #abc18f;
}

.anchor-contact-detail-text {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 800;
  color: #ffffff;
}

.anchor-contact-detail-text a {
  color: #ffffff;
  text-decoration: none;
}

.anchor-contact-detail-text a:hover,
.anchor-contact-detail-text a:focus {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.anchor-contact-directions {
  margin-top: 18px;
}


/* =========================================
   Form panel
   ========================================= */

.anchor-contact-form-panel {
  background: #f8f8f4;
  border: 1px solid #d9dfd2;
  padding: 42px 42px 46px;
}

.anchor-contact-form-header {
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid #d9dfd2;
}

.anchor-contact-form-header .anchor-section-eyebrow {
  color: #ff9900 !important;
}

/* H3 typography comes from Salient H3 */
.anchor-contact-form-heading {
  margin-top: 0;
  margin-bottom: 0;
  color: #1d3a1e;
}

.anchor-contact-form-copy {
  max-width: 620px;
  margin: 12px 0 0;
  color: #4b4f52;
}


/* =========================================
   Contact Form 7 base
   ========================================= */

.anchor-contact-form-wrap {
  width: 100%;
}

.anchor-contact-form-wrap .wpcf7 {
  width: 100%;
  margin: 0;
}

.anchor-contact-form-wrap form,
.anchor-contact-form-wrap .wpcf7-form {
  width: 100% !important;
  max-width: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================
   Custom rebuilt CF7 form
   ========================================= */

.anchor-cf7-form {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.anchor-cf7-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  width: 100%;
  margin: 0 0 18px;
}

.anchor-cf7-field,
.anchor-cf7-interest,
.anchor-cf7-message,
.anchor-cf7-submit-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
}

.anchor-cf7-message {
  margin-top: 18px;
}

.anchor-cf7-submit-wrap {
  margin-top: 18px;
}

.anchor-cf7-label {
  margin: 0 0 12px;
  padding: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  color: #2c5134;
}


/* =========================================
   Field wrappers
   ========================================= */

.anchor-contact-form-wrap .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* =========================================
   Text fields
   ========================================= */

.anchor-contact-form-wrap input[type="text"],
.anchor-contact-form-wrap input[type="email"],
.anchor-contact-form-wrap input[type="tel"],
.anchor-contact-form-wrap input[type="url"],
.anchor-contact-form-wrap input[type="number"],
.anchor-contact-form-wrap select,
.anchor-contact-form-wrap textarea {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 16px 17px !important;
  border: 1px solid #c9d2c3 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  font: inherit !important;
  color: #333333 !important;
  outline: none !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.anchor-contact-form-wrap textarea {
  min-height: 150px !important;
  resize: vertical;
}

.anchor-contact-form-wrap input::placeholder,
.anchor-contact-form-wrap textarea::placeholder {
  color: #666666;
  opacity: 0.82;
}

.anchor-contact-form-wrap input:focus,
.anchor-contact-form-wrap select:focus,
.anchor-contact-form-wrap textarea:focus {
  border-color: #5b7e51 !important;
  box-shadow: 0 0 0 3px rgba(91, 126, 81, 0.15) !important;
}


/* =========================================
   Radio group
   ========================================= */

.anchor-cf7-interest {
  margin-top: 4px;
}

.anchor-contact-form-wrap .wpcf7-radio {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.anchor-contact-form-wrap .wpcf7-list-item {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.anchor-contact-form-wrap .wpcf7-list-item label {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  width: 100% !important;
  /* Keep every two-column interest card aligned when a label wraps. */
  min-height: 88px !important;
  margin: 0 !important;
  padding: 13px 14px !important;
  border: 1px solid #d9dfd2 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  cursor: pointer;
  font: inherit !important;
  font-weight: 700 !important;
  color: #333333 !important;
}

.anchor-contact-form-wrap input[type="radio"],
.anchor-contact-form-wrap input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #2c5134;
}

.anchor-contact-form-wrap .wpcf7-list-item-label {
  display: inline-block;
  min-width: 0;
  line-height: 1.35;
}


/* =========================================
   Submit button spacing only
   Button visual styling comes from style.css:
   .anchor-action-button
   ========================================= */

.anchor-contact-form-wrap input[type="submit"],
.anchor-contact-form-wrap button[type="submit"],
.anchor-contact-form-wrap .wpcf7-submit,
.anchor-contact-form-wrap .anchor-cf7-submit {
  margin: 0 !important;
}


/* =========================================
   Validation / response messages
   ========================================= */

.anchor-contact-form-wrap .wpcf7-not-valid-tip {
  margin-top: 7px;
  padding: 6px 8px;
  background: rgba(163, 58, 36, 0.06);
  font-size: 13px;
  line-height: 1.35;
  color: #a33a24;
}

.anchor-contact-form-wrap .wpcf7-not-valid {
  border-color: rgba(163, 58, 36, 0.45) !important;
}

.anchor-contact-form-wrap .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 14px 16px !important;
  border: 1px solid #d9dfd2 !important;
  background: #ffffff;
  font-size: 15px;
  line-height: 1.5;
  color: #333333;
}

.anchor-contact-form-wrap .wpcf7-spinner {
  margin-left: 12px;
}


/* =========================================
   Hide unwanted plugin/admin remnants
   ========================================= */

.anchor-contact-form-wrap a[href*="customize"],
.anchor-contact-form-wrap .cf7md-admin-customize-message,
.anchor-contact-form-wrap .cf7md-customize-link,
.anchor-contact-form-wrap .mdc-theme--customize,
.anchor-contact-form-wrap .wpcf7-form > p:last-child a {
  display: none !important;
}


/* =========================================
   Salient / WPBakery cleanup
   ========================================= */

.anchor-contact-section p:empty {
  display: none;
}

.anchor-contact-form-wrap br {
  display: none;
}

.anchor-contact-form-wrap p {
  margin: 0;
  padding: 0;
}


/* =========================================
   Responsive
   ========================================= */

@media (max-width: 999px) {
  .anchor-contact-section {
    padding: 64px 0 74px;
  }

  .anchor-contact-container {
    width: min(100% - 48px, 1180px);
  }

  .anchor-contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .anchor-contact-card-inner,
  .anchor-contact-form-panel {
    padding: 38px 34px;
  }

  .anchor-contact-card-heading,
  .anchor-contact-form-heading {
    max-width: 620px;
  }

  .anchor-contact-card::after {
    left: auto;
    right: 34px;
    bottom: 42px;
    width: 360px;
    height: 190px;
  }
}

@media (max-width: 690px) {
  .anchor-contact-section {
    padding: 48px 0 58px;
  }

  .anchor-contact-container {
    width: min(100% - 32px, 1180px);
  }

  .anchor-contact-intro {
    margin-bottom: 38px;
    text-align: left;
  }

  .anchor-contact-card-inner,
  .anchor-contact-form-panel {
    padding: 32px 26px;
  }

  .anchor-contact-detail-text {
    font-size: 18px;
  }

  .anchor-cf7-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .anchor-contact-form-wrap .wpcf7-radio {
    grid-template-columns: 1fr;
  }

  .anchor-contact-form-wrap .wpcf7-list-item label {
    min-height: 76px !important;
  }

  .anchor-contact-directions,
  .anchor-contact-form-wrap input[type="submit"],
  .anchor-contact-form-wrap button[type="submit"],
  .anchor-contact-form-wrap .wpcf7-submit,
  .anchor-contact-form-wrap .anchor-cf7-submit,
  .anchor-contact-form-wrap .anchor-action-button {
    width: 100% !important;
    text-align: center;
  }

  .anchor-contact-card::after {
    left: auto;
    right: 26px;
    bottom: 28px;
    width: 270px;
    height: 170px;
    opacity: 0.24;
  }
}

/* Contact card button spacing */
.anchor-contact-card .anchor-contact-directions {
  margin-top: 18px;
}

/* Force Get Directions to match the shared button treatment */
.anchor-contact-card a.anchor-contact-directions,
.anchor-contact-card .anchor-contact-directions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 176px !important;
  min-height: 50px !important;
  margin-top: 18px !important;
  padding: 16px 30px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #ff9900 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer;
}

.anchor-contact-card a.anchor-contact-directions:hover,
.anchor-contact-card a.anchor-contact-directions:focus,
.anchor-contact-card .anchor-contact-directions:hover,
.anchor-contact-card .anchor-contact-directions:focus {
  background: #d68100 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* =========================================
   Contact page final spacing/background polish
   ========================================= */

/* Tighten the gap below the site header */
.anchor-contact-section {
  padding-top: 52px;
}

/* Reduce intro spacing slightly */
.anchor-contact-intro {
  margin-bottom: 46px;
}

/* Make the pale green background shape feel intentional and full-bleed */
.anchor-contact-section::before {
  right: -18vw;
  top: 118px;
  width: min(720px, 58vw);
  height: min(720px, 58vw);
  border-radius: 999px 0 0 999px;
  background: #e9f4e6;
  opacity: 0.78;
}

/* Keep the shape from feeling cramped on medium screens */
@media (max-width: 999px) {
  .anchor-contact-section {
    padding-top: 44px;
  }

  .anchor-contact-intro {
    margin-bottom: 40px;
  }

  .anchor-contact-section::before {
    right: -34vw;
    top: 130px;
    width: 78vw;
    height: 78vw;
  }
}

/* On mobile, keep the shape subtle so it doesn't crowd the content */
@media (max-width: 690px) {
  .anchor-contact-section {
    padding-top: 38px;
  }

  .anchor-contact-section::before {
    right: -52vw;
    top: 110px;
    width: 105vw;
    height: 105vw;
    opacity: 0.45;
  }
}
/* =========================================
   Contact card visual refresh
   Replaces bar-chart watermark with green wave asset
   Append to bottom of anchor-contact-form.css
   ========================================= */

/* Base green field */
.anchor-contact-card {
  background: #1d3a1e !important;
  isolation: isolate;
}

/* Green wave image layer */
.anchor-contact-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background-image: url("/wp-content/uploads/2026/04/anchor-contact-green-wave.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center bottom;
  opacity: 0.62;
  filter: saturate(0.95) contrast(0.96);
  pointer-events: none;
}

/* Dark readability overlay */
.anchor-contact-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: auto;
  height: auto;
  pointer-events: none;
  opacity: 1;
  background:
    radial-gradient(circle at 18% 12%, rgba(171, 193, 143, 0.13), transparent 34%),
    linear-gradient(
      90deg,
      rgba(29, 58, 30, 0.96) 0%,
      rgba(29, 58, 30, 0.90) 45%,
      rgba(29, 58, 30, 0.76) 100%
    );
}

/* Keep content above the new image and overlay */
.anchor-contact-card-inner {
  position: relative;
  z-index: 1;
}

/* Slightly adjust the image placement on tablet */
@media (max-width: 999px) {
  .anchor-contact-card::before {
    background-position: center center;
    opacity: 0.56;
  }

  .anchor-contact-card::after {
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: auto;
    height: auto;
  }
}

/* Keep the visual subtle on mobile */
@media (max-width: 690px) {
  .anchor-contact-card::before {
    background-size: cover;
    background-position: 58% center;
    opacity: 0.42;
  }

  .anchor-contact-card::after {
    background:
      linear-gradient(
        180deg,
        rgba(29, 58, 30, 0.96) 0%,
        rgba(29, 58, 30, 0.91) 58%,
        rgba(29, 58, 30, 0.82) 100%
      );
  }
}
