/* =========================================================
   Technocrete Products Page Refinements
   ========================================================= */

/* CTA button */
body .tc-products-cta .tb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 48px;
    padding: 12px 24px;
    background: #ffffff !important;
    color: #003b87 !important;
    text-decoration: none;
    font-weight: 800;
}

body .tc-products-cta .tb-button:hover,
body .tc-products-cta .tb-button:focus {
    background: #00aef0 !important;
    color: #ffffff !important;
}

/* =========================================================
   Equal-height product cards
   ========================================================= */

body .tc-products-category .tb-content-grid > * {
    display: flex;
}

body .tc-products-category .tb-content-card {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

body .tc-products-category .tb-content-card-body {
    display: flex;
    flex: 1;
    height: auto;
    flex-direction: column;
}

body .tc-products-category .tb-content-card h3 {
    min-height: 3.1em;
    font-size: 1.34rem;
    line-height: 1.25;
}

body .tc-products-category .tb-content-card p {
    flex: 1;
    min-height: 6.5em;
    font-size: 0.96rem;
    line-height: 1.65;
}

body .tc-products-category .tb-card-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    color: #00aef0 !important;
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
}

body .tc-products-category .tb-card-link:hover,
body .tc-products-category .tb-card-link:focus {
    color: #003b87 !important;
}

/* Mobile cards do not need forced text heights */
@media (max-width: 767px) {
    body .tc-products-category .tb-content-card h3,
    body .tc-products-category .tb-content-card p {
        min-height: 0;
    }
}

/* Mobile cards do not need forced text heights */
@media (max-width: 767px) {
    body .tc-products-category .tb-content-card h3,
    body .tc-products-category .tb-content-card p {
        min-height: 0;
    }
}
/* =========================================================
   Final desktop mega-menu alignment
   Products + Technical Resources
   ========================================================= */

@media (min-width: 1181px) {

  /* Move Products slightly toward About Us */
  .tc-navigation .tc-mega-products {
    margin-right: -10px !important;
  }

  /* Move Technical Resources slightly toward Quality Assurance */
  .tc-navigation .tc-mega-resources {
    margin-left: -10px !important;
  }

  /* Bring Technical Resources dropdown arrow closer to its label */
  .tc-navigation .tc-mega-resources
  .tc-mega-trigger-row > .tc-mega-toggle {
    margin-left: -15px !important;
  }

  /* Keep labels and arrows vertically aligned */
  .tc-navigation .tc-mega-trigger-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .tc-navigation .tc-mega-trigger-row > a,
  .tc-navigation .tc-mega-trigger-row .mod-menu__toggle-sub {
    display: inline-flex;
    align-items: center;
  }

  .tc-navigation .tc-mega-toggle {
    flex: 0 0 auto;
    align-self: center;
  }
}


/* Reset desktop alignment adjustments on tablet and mobile */
@media (max-width: 1180px) {

  .tc-navigation .tc-mega-products,
  .tc-navigation .tc-mega-resources {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .tc-navigation .tc-mega-resources
  .tc-mega-trigger-row > .tc-mega-toggle {
    margin-left: 0 !important;
  }
}
/* =========================================================
   Alfa Forms 1.1.1 — personalized success response fix
   Prevent the confirmation icon from overlapping the title
   ========================================================= */
body .alfaform-theme-technocrete-card .tragform-alert.is-success,
body .alfaform-theme-technocrete-card .alfaform-alert.is-success,
body .alfaform-theme-technocrete-embedded .tragform-alert.is-success,
body .alfaform-theme-technocrete-embedded .alfaform-alert.is-success,
body .tragform-alert.is-success,
body .alfaform-alert.is-success {
    position: relative;
    min-height: 68px;
    padding: 17px 18px 17px 66px !important;
}

body .tragform-alert.is-success::before,
body .alfaform-alert.is-success::before {
    top: 50%;
    left: 18px;
    width: 32px;
    height: 32px;
    line-height: 1;
    transform: translateY(-50%);
}

body .tragform-alert-title,
body .alfaform-alert-title {
    display: block;
    margin: 0 0 4px;
}

body .tragform-alert-message,
body .alfaform-alert-message {
    display: block;
}

@media (max-width: 480px) {
    body .alfaform-theme-technocrete-card .tragform-alert.is-success,
    body .alfaform-theme-technocrete-card .alfaform-alert.is-success,
    body .alfaform-theme-technocrete-embedded .tragform-alert.is-success,
    body .alfaform-theme-technocrete-embedded .alfaform-alert.is-success,
    body .tragform-alert.is-success,
    body .alfaform-alert.is-success {
        min-height: 62px;
        padding: 15px 14px 15px 58px !important;
    }

    body .tragform-alert.is-success::before,
    body .alfaform-alert.is-success::before {
        left: 14px;
        width: 30px;
        height: 30px;
    }
}
