/* Global */
.af-footer-menu .item a:hover {
    color: #000 !important;
    padding-left: 5px;
}

.af-series-list {
    word-wrap: break-word;
}

.ui.inverted.vertical.segment.footer {
    margin-top: 20px;
}

p {
    font-size: 1.2em;
    line-height: 1.6em;
}

.primary_container {
    padding-bottom: 5em;
}

/* Header */
.header_contact {
    background-color: rgba(215, 215, 215, .40);
}

.header_contact p {
    padding-top: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.1em;
}

/* Navbar */
.form-control:focus {
    border-color: #fa991c;
    box-shadow: 0 0 0.4rem #fa991c;
}

.nav_banner {
    background-color: rgb(28, 118, 143);
    margin-bottom: 0;
}

.navbar-collapse.collapse.show .nav-item.fast_quote {
    padding-left: 10px;
    padding-right: 10px;
}

.nav-item.fast_quote {
    background-color: #fa991c;
    border-radius: 5px;
    max-width: fit-content;
}

.nav-item.fast_quote:hover {
    transform: scale(1.1);
    color: white;
}

.nav_banner .nav-item .nav-link {
    color: white;
}

.nav_banner .nav-item.active .nav-link {
    font-weight: bold;
    color: #fa991c;
}

.search-button {
    background-color: rgb(28, 118, 143);
    color: white;
}

.search-button:hover {
    color: white;
    background-color: #fa991c;
}

.page-header {
    color: #fa991c;
    background-size: cover;
    background-position: center;
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.bg-info-subtle {
    background-color: rgb(28, 118, 143);
    padding: 10px;
    border-radius: 5px;
    width: max-content;
    font-weight: 400;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 0 0 5px 5px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item a {
    color: #1c768f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #fa991c;
}

.breadcrumb-item.active {
    color: #6c757d;
}

@media (max-width: 767px) {
    .breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .breadcrumb-item {
        display: inline-block;
        float: none;
    }

    .breadcrumb-item+.breadcrumb-item {
        padding-left: 0.3rem;
    }

    .breadcrumb-item+.breadcrumb-item::before {
        padding-right: 0.3rem;
    }
}

/* Testimonials */
.testimonial-container {
    border: 2px solid #fa991c;
    background-color: rgb(28, 118, 143);
    border-radius: 5px;
    padding: 16px;
    color: white;
    height: 100%;
}

.container::after {
    content: "";
    clear: both;
    display: table;
}

.container-img {
    margin-right: 20px;
    border-radius: 50%;
}

.testimonial-container span {
    font-size: 20px;
    margin-right: 5px;
    text-align: center;
}

@media (max-width: 500px) {
    .testimonial-container {
        text-align: center;
    }

    .container-img {
        margin: auto;
        float: none;
        display: block;
    }
}

/* RFQ form */
#container-form {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 20px;
    width: 100%;
}

#container-form input[type=submit] {
    background-color: #fa991c;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: .5s
}

#container-form input[type=submit]:hover {
    background-color: #1c768f
}

.quote-form .form-control {
    border-radius: 4px;
}

.quote-form .btn {
    border-radius: 4px;
}

.datasheet-link {
    color: #1c768f;
}

.datasheet-link:hover {
    color: #fa991c;
}

/* Manufacturers Page */
p.in_stock_products {
    text-align: center;
}

@media(max-width: 992px) {
    .manufacturer-header {
        flex-direction: column;
    }

    .manu-name {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Search Results */
.search_result_description {
    font-size: 1rem;
}

.dataTable .alert.alert-info.mt-4 {
    display: none;
}

/* Footer */
.footer_boxes {
    background: rgba(215, 215, 215, .40);
    padding: 30px 30px 0 30px
}

.footer_boxes p {
    font-size: 1em;
}

.copyright_bar {
    padding: 1rem;
    text-align: center;
    background: #1c768f;
    color: #fff;
}

.disclaimer p {
    font-size: 10px;
    text-align: center;
}

/* Terms & Conditions */
.terms_and_conditions_heading {
    margin-bottom: .5em;
    display: block;
    margin-top: .5em;
}

.terms_and_condtions_subheading {
    margin-top: .3em;
    margin-bottom: .3em;
    display: block;
}

/* Datatables */
#products_table_wrapper,
#series_table_wrapper,
#manufacturer_table_wrapper,
#in_stock_products_table_wrapper {
    margin-bottom: 1em;
}

.af-part-link {
    color: #1c768f;
}

/* Review Carousel */
#reviewSliderContainer {
    width: 450px;
    height: 90px;
    position: relative;
    overflow: hidden;
}

#review-slider-content {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    animation-duration: 0.5s;
}

#currentReviewText {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: medium;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.2em;
}

.review-footer {
    position: relative;
    font-size: small;
}

.review-author {
    display: inline-block;
}

.review-stars {
    top: 50%;
    left: 0;
}

.review-navigation {
    position: absolute;
    right: 0;
    bottom: -10%;
}

.review-navigation .chevron {
    outline: none;
    border: none;
    font-size: 24px;
    line-height: 1em;
    margin-bottom: 6px;
    background-color: #f8f9fa;
}

.review-navigation .chevron:hover {
    color: #fa991c;
}

@media (max-width: 767px) {
    #reviewSliderContainer {
        display: none;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0%);
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0%);
    }
}

.slide-from-left {
    animation-name: slideInFromLeft;
}

.slide-from-right {
    animation-name: slideInFromRight;
}

/* Blog Page */
.flex-change {
    display: flex;
}

@media(max-width: 767px) {
    .blog-list {
        padding-left: 0px;
        padding-right: 0px;
        margin: 0px;
    }

    .flex-change {
        display: block;
    }

    .quote-request-blog-div {
        margin-bottom: 1rem;
    }
}

#contact-info-card a {
    color: #fa991c;
}

/* Modal styles */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-content {
    border-radius: 0.3rem;
    border: none;
}

.modal-body {
    padding: 2rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.trust-markers {
    margin-top: 10px;
    padding-top: 10px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
}

.trust-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 33.33%;
}

.trust-marker i {
    color: #1c768f;
    margin-bottom: 5px;
    font-size: 2rem;
}

.trust-marker p {
    font-size: 0.9em;
    color: #6c757d;
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .trust-markers {
        flex-wrap: wrap;
    }

    .trust-marker {
        width: 33%;
        margin-bottom: 15px;
    }
}

/* Floating Label Styles */
.floating-label {
    position: relative;
    margin-bottom: 20px;
}

.floating-label input {
    width: 100%;
    height: 50px;
    padding: 14px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    background-color: white;
    padding: 0 5px;
    color: #999;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-label input:focus,
.floating-label input:not(:placeholder-shown) {
    border-color: #1c768f;
    outline: none;
}

.floating-label input:focus+label,
.floating-label input:not(:placeholder-shown)+label {
    top: 0;
    font-size: 16px;
    color: #1c768f;
}

/* Navbar Styles */
.navbar-search {
    position: relative;
}

@media(max-width:991px) {
    .navbar .container .form-inline {
        flex-flow: unset;
    }

    .navbar {
        width: 100%;
    }

    .navbar-search {
        width: 100% !important;
    }
}

@media(max-width:767px) {
    .navbar .container .form-inline {
        justify-content: space-between;
        width: 100%;
        flex-flow: unset;
        gap: 10px;
    }
}

/* Instant Search */
.autocomplete-result {
    z-index: 9999;
    display: none;
    position: absolute;
    top: 0;
    background-color: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 400px;
    transform: translateY(80px);
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
}

.autocomplete-row {
    padding-top: .35rem;
    padding-bottom: .35rem;
    border-bottom: solid 1px lightgray;
}

.autocomplete-row:first-child {
    padding-top: unset;
}

.autocomplete-row:last-child {
    border-bottom: none;
    padding-bottom: unset;
}

.autocomplete-item {
    display: flex;
    flex-direction: column;
}

.autocomplete-item .part-number {
    font-weight: 600;
}

.autocomplete-item .manufacturer-series {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 5px;

    font-size: .95rem;
    color: #707070;
}

.autocomplete-item .manufacturer-series>div:nth-child(1) {
    flex: 1;
}

.autocomplete-item .manufacturer-series>div:nth-child(2) {
    flex: 1;
}

@media(max-width:1199px) {

    .autocomplete-result {
        transform: translateY(150px);
    }
}

@media(max-width:991px) {

    .autocomplete-result {
        transform: translateY(158px);
    }
}

@media(max-width:767px) {

    .autocomplete-result {
        width: 418px;
    }
}

@media(max-width:575px) {

    .autocomplete-result {
        transform: translateY(165px);
        width: 100% !important;
        left: 0;
        max-height: unset;
    }

    .autocomplete-row {
        padding-top: .6rem;
        padding-bottom: .6rem;
    }
}


/* Highlights */
#highlights {
    border-radius: 0;
    background-color: rgb(28, 118, 143);
    width: 100%;
    height: auto;
    position: relative;
    bottom: 0;
    color: white;
    text-align: center;
    padding: 20px 0 5px;
    font-size: 12px;
}

/* Hide website input on forms */
form #website{ display:none; }

/* Turnstile Styles */

.turnstile-form {
  position: relative;
}

.turnstile-floating-overlay {
  position: absolute;
  z-index: 20;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  width: min(340px, calc(100% - 40px));
  max-width: 100%;
  pointer-events: none;
}

.turnstile-floating-overlay .cf-turnstile {
  width: 100%;
  min-width: auto;
  pointer-events: auto;
}

.turnstile-submit-wrapper {
  position: relative;
  width: 100%;
  display: inline-block;
}

.turnstile-submit-wrapper .turnstile-floating-overlay {
  bottom: calc(100% + 12px);
  left: 0;
  transform: translateX(0);
}

.turnstile-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
/* homepage */
#splash {
    background: url(/assets/img/air-pollution-business-clouds.jpg) no-repeat center;
    background-size: cover;
    display: block;
    position: relative;
}

#splash::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(28,118,143);
    opacity: .3;
}

#splash .card {
    background-color: transparent;
    border: 0 none;
}

#splash .card h4{
    color: white;
    font-weight: 500;
    font-size: 2.5rem;
}

#splash-card-body {
    display: flex;
}

.splash-card-item {
    display: grid;
}

.splash-card-button {
    justify-self: center;
    max-width: fit-content;
    background-color: #fa991c;
    color: white;
}

.splash-card-button:hover {
    background-color: rgb(28, 118, 143);
    color: white;
}

#splash #highlights {
    width: 100%;
    opacity: .85;
}

#splash #highlights .col {
    opacity: 0.85;
}

#highlights .row {
    flex-wrap: nowrap;
}

@media (max-width: 767px) {
    #highlights .row {
        align-items:flex-start;
    }
    #highlights .row .row {
        flex-direction: row;
        flex-wrap: nowrap;
        padding-left: 0px;
        padding-right: 0px;
    }
    #highlights .row .row .col {
        padding-left: 0px;
        padding-right: 0px;
    }
}

#search_card{
    min-height: 200px;
}

 #home-series-card-row {
    margin-bottom: 5px;
 }

 #home-series-card {
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 5px;
    margin: 10px;
}

#home-series-card-img {
    display: flex;
    justify-content: center;
    margin: 5px;
    padding-left: 0px;
    padding-right: 0px;
}

#home-series-card-img img {
    border: none;
    height: 250px;
}

#home-series-card #series-info {
    display: grid;
    justify-content: center;
    margin-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    text-align:center;
}

#home-series-card #series-info h3 {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

#series-description {
    padding-left: 5px;
    padding-right: 5px;
}

#series-info span {
    justify-self: center;
}

#series-info .series-modal {
    display: grid;
    justify-content: center;
    text-align: justify;
    margin-top: 10px;
}

.series-modal dialog {
    border: solid 2px #002b49;
    border-radius: 5px;
    width: 50%;
}

.series-modal p {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

@media (max-width: 992px) {
    #home-series-card-row {
        display: flex;
        flex-direction: column;
        margin: .2rem;
    }
    #home-series-card {
        margin: 0px;
        margin-bottom: 10px;
    }
    .series-modal dialog {
        width: 100%;
    }
}
@media (max-width: 767px) {
    .row {
        flex-direction: column;
        align-items: center;
        margin: 10px;
    }
}