﻿/* pulled from contact css start */
body {
    font-family: Arial, Helvetica, sans-serif;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    z-index: 1000;
}

@media (max-width: 480px) {
    .modal {
        padding-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 50%;
    max-width: 90vw;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Product preview modal responsive */
@media (max-width: 768px) {
    #productPreviewModal .modal-content {
        width: 90vw;
    }
}

@media (max-width: 480px) {
    #productPreviewModal .modal-content {
        width: 95vw;
        max-width: 95vw;
        height: auto;
        max-height: 90vh;
    }
}



/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }

.modal-header {
    padding: 2px 16px;
    background-color: #222b36;
    color: white;
    text-align: center;
    display: table;
    font-family: Arial, Helvetica, sans-serif;
}

    .modal-header h2 {
        text-align: center;
        vertical-align: middle;
        display: table-cell;
        font-weight: 600;
        font-size: 24px;
        padding: 7px;
    }


.modal-body {
    padding: 2px 16px;
    background-color: #f4f4f4;
}

.form-modal-footer {
    padding: 2px 16px;
    background-color: #222b36;
    color: white;
}

.left-column {
    width: 20%;
    float: left;
    margin-top: 3px;
}

.right-column {
    width: 80%;
    float: right;
}

.clear {
    clear: both;
}


.form-modal-footer {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

    .form-modal-footer .left-footer-column {
        float: left;
    }

    .form-modal-footer .right-footer-column {
        float: right;
    }



#form-button-prev {
    background-color: rgb(57,57,57);
    border: 1px solid #ccc;
    color: #fff;
    margin-top: 28.5px;
    margin-left: 18px;
    margin-bottom: 7px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-radius: 3px;
    font-size: 12px;
}



#form-button-next {
    background-color: rgb(57,57,57);
    border: 1px solid #ccc;
    color: #fff;
    margin-top: 28.5px;
    margin-right: 22px;
    margin-bottom: 7px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-radius: 3px;
    font-size: 12px;
    min-width: 70px;
}


#landing-product-grid {
    margin-top: 20px;
    width: 100%;
    overflow-x: hidden;
}

/* Desktop: Remove padding for cleaner layout */
@media (min-width: 1056px) {
    #landing-product-grid .bx--col {
        padding-left: 0;
        padding-right: 0;
    }
    
    #landing-product-grid .bx--col:first-child {
        padding-left: 9px;
    }
}

/* Tablet and mobile: Ensure full width */
@media (max-width: 768px) {
    #landing-product-grid {
        margin-left: 0;
        margin-right: 0;
        padding: 0 12px;
    }
}

/* Override padding on small mobile (480px and below) */
@media (max-width: 480px) {
    #landing-product-grid {
        padding: 0;
        box-sizing: border-box;
    }
}

h5.landing-product-grid-header {
    margin-bottom: 24px;
    margin-left: -12px;
    font-size: 1.25rem;
    font-weight: 400;
    font-family: "IBM Plex Sans";
}

@media (max-width: 768px) {
    h5.landing-product-grid-header {
        margin-left: 0;
        margin-right: 0;
    }
}

.landing-product-grid-header-row {
    padding: 7px 0px;
    background-color: #ededee;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #ccc;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

.landing-product-grid-header-row > div {
    min-width: 0;
    flex-shrink: 1;
}

/* Hide header row on mobile and tablet */
@media (max-width: 768px) {
    .landing-product-grid-header-row {
        display: none;
    }
}


.landing-product-grid-data-row {
    padding-top: 14px;
    padding-bottom: 7px;
    border: 1px solid #ccc;
    border-top: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    width: 100%;
}

.landing-product-grid-data-row:hover {
    background-color: #fafafb;
}

.landing-product-grid-data-row:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.landing-product-grid-data-row > div {
    display: flex;
    align-items: flex-start;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    flex-shrink: 1;
    flex-direction: column;
}

/* Product cell labels (hidden on desktop, shown on mobile/tablet) */
.product-cell-label {
    display: none;
    font-weight: 600;
    font-size: 12px;
    color: #222b36;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Tablet responsive (768px and below) */
@media (max-width: 768px) {
    .landing-product-grid-data-row {
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
        border:none;
        border-bottom:1px solid rgb(204,204,204)
    }

    .landing-product-grid-data-row > div {
        width: 100%;
        margin-bottom: 12px;
    }

    .landing-product-grid-data-row > div:last-child {
        margin-bottom: 10px;
    }

    .product-cell-label {
        display: block;
    }
}

/* Mobile responsive (480px and below) */
@media (max-width: 480px) {
    #landing-product-grid {
        width: 358px;
        margin-left: auto;
        margin-right: auto;
    }

    .landing-product-grid-data-row {
        flex-direction: column;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .landing-product-grid-data-row > div {
        width: 100%;
        margin-bottom: 10px;
    }

    .landing-product-grid-data-row > div:last-child {
        margin-bottom: 0;
    }

    .product-cell-label {
        display: block;
        font-size: 11px;
    }
}


.btn-landing-subscribe {
    background-color: #fff;
    color: #508DFF;
    border: 1px solid #508DFF;
    padding: 8px 20px;
    min-width:110px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left:5px;
    
}

.btn-landing-subscribe:hover {
    background-color: #f0f7ff;
}

.btn-landing-open {
    background-color: #fff;
    color: #909090;
    border: 1px solid #222b36;
    padding: 8px 20px;
    min-width: 110px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 5px;
}

.btn-landing-open:hover {
    background-color: #f9f9f9;
}

.img-product-preview {
    cursor: pointer;
}

.modal-product-preview-close {
    margin-top: 8px;
    font-size: 12px;
    margin-top: 9px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 7px;
}

.modal-product-preview-close:hover {
    color: #fff;
    cursor: pointer;
}

.action-cell {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    justify-content: flex-start;
    height: auto;
    padding-top: 0px;
    width: 160px;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    box-sizing: border-box;
    margin: 0 auto;
}

.subscribe-button-container {
    text-align: left;
    flex-shrink: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    flex: 0 1 auto;
}

.image-container {
    width: 36px;
    height: 36px;
    min-width: 36px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    border: none;
    background: transparent;
}

.action-cell .icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.image-container, .subscribe-button-container {
    min-width: 48px;
}



/* Tablet responsive (1024px and below) */
@media (max-width: 1024px) {
    .action-cell {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        padding-left: 0;
        margin: 0;
        width: 100%;
        min-width: 0;
    }

    .subscribe-button-container {
        flex: 0 0 auto;
        min-width: auto;
    }

    .btn-landing-open,
    .btn-landing-subscribe {
        height: 36px;
        min-height: 36px;
        width: auto;
        padding: 0 10px;
        font-size: 13px;
        white-space: nowrap;
        box-sizing: border-box;
        margin: 0;
    }

    .image-container {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
        min-width: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    .img-product-preview {
        width: 36px;
        height: 36px;
        display: block;
    }
}

/* Mobile responsive (480px and below) */
@media (max-width: 480px) {
    .action-cell {
        padding-left: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
        justify-content: flex-start;
        margin: 0 auto;
        width: auto;
        max-width: 100%;
    }

    .subscribe-button-container {
        flex: 0 0 auto;
        min-width: 0;
        text-align: left;
    }

    .btn-landing-subscribe,
    .btn-landing-open {
        width: 110px;
    }

    .image-container {
        justify-content: center;
        flex-shrink: 0;
    }
}

/* Product Tag/Pill Styling */
.product-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    width: 100px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.product-tag[data-tag="free"] {
    background-color: #d0f0ff;
    color: #0043ce;
    border: 1px solid #0043ce;
}

.product-tag[data-tag="originator"] {
    background-color: #e5f1ff;
    color: #0043ce;
    border: 1px solid #0043ce;
}

.product-tag[data-tag="aggregator"] {
    background-color: #e8f4f8;
    color: #055ae6;
    border: 1px solid #055ae6;
}

.product-tag[data-tag="servicers"] {
    background-color: #f1e8ff;
    color: #6f42c1;
    border: 1px solid #6f42c1;
}

/* About Milliman Row Styling */
.about-milliman-row {
    padding: 16px 0;
    border: 1px solid #ccc;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-milliman-link {
    color: #0f62fe;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.about-milliman-link:hover {
    text-decoration: underline;
    background-color: rgba(15, 98, 254, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
    .about-milliman-row {
        padding: 12px 0;
    }

    .about-milliman-link {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Filter Dropdown Styling */
.landing-filter-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-filter-container label {
    font-weight: 600;
    color: #222b36;
    font-size: 14px;
}

.product-filter-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #222b36;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.product-filter-select:hover {
    border-color: #508DFF;
}

.product-filter-select:focus {
    outline: none;
    border-color: #508DFF;
    box-shadow: 0 0 0 2px rgba(80, 141, 255, 0.2);
}

/* Contact Form Modal Styling */
.contact-modal-content {
    width: 420px;
    max-width: 90vw;
    padding: 0;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    
}

.contact-modal-body {
    padding: 28px;
    background-color: #fff;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contactForm {
    width: 100%;    
}

/* Submit Button */
.btn-modal-submit {
    background-color: #222b36;
    color: #fff;
    border: 1px solid #222b36;
    padding: 10px 24px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    transition: all 0.2s ease;
}

.btn-modal-submit:hover {
    background-color: #1a1f25;
    border-color: #1a1f25;
}

.btn-modal-submit:active {
    background-color: #0f1417;
}

.btn-modal-submit:disabled {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    color: #a8a8a8;
    cursor: not-allowed;
}

.contact-modal-footer {
    padding: 16px 28px;
    background-color: #f4f4f4;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #161616;
    font-weight: 500;
    font-size: 14px;
    font-family: "IBM Plex Sans", Arial, sans-serif;
}

.required-indicator {
    color: #da1e28;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #8d8d8d;
    border-radius: 4px;
    font-size: 14px;
    font-family: "IBM Plex Sans", Arial, sans-serif;
    background-color: #fff;
    color: #161616;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-control::placeholder {
    color: #a8a8a8;
}

.form-control:hover {
    border-color: #161616;
}

.form-control:focus {
    outline: none;
    border-color: #0f62fe;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), inset 0 0 0 1px #0f62fe;
}

.form-control-invalid {
    border-color: #da1e28 !important;
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 16px 20px;
}

.modal-header h2 {
    margin: 0;
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    padding: 0;
}

/* Modal Close Button */
.modal-close-circle {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    position: absolute;
    right: 16px;
    top: 16px;
}

.modal-close-circle:hover {
    transform: scale(1.1);
}

.modal-close-circle svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .bx--col.bx--col-sm-2 {
        margin-bottom: 10px;
    }

    .bx--col.bx--col-sm-2 img {
        margin-left: 2px;
    }

    .landing-filter-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-filter-select {
        width: 100%;
    }

    .contact-modal-content {
        width: 95vw;
    }

    .contact-modal-body {
        padding: 20px;
    }

    .contact-modal-footer {
        padding: 12px 20px;
    }

    .product-tag {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .landing-product-grid-header-row,
    .landing-product-grid-data-row {
        flex-direction: column;
    }

    .landing-product-grid-header-row > div,
    .landing-product-grid-data-row > div {
        width: 100% !important;
        flex: 0 0 100%;
    }

    .product-tag {
        width: 100%;
        margin: 0 auto 10px;
        display: block;
    }

    .contact-modal-content {
        width: 100vw;
       /* height: 100vh;*/
        max-width: 100vw;
        /*max-height: 60vh;*/
        /*border-radius: 0;*/
    }

    .contact-modal-body {
        padding: 16px;
    }

    .btn-modal-submit {
        width: 100%;
    }
}



/* product gallery */


.landing.modal-header {
    text-align: center;
}

.landing.modal-header h2 {
    display: inline-block;
    margin-left: 50px;
}

.landing.modal-content {
    width: 50%;
}

.landing.modal-body {
    padding: 0px;
}

.landing.modal-body #product-preview-gallery-image {
    width: 100%;
    height: 100%;
    display: block;
}


@media (max-width: 768px) {

    .landing.modal-header h2 {
        margin-left: -30px;
    }
}


@media (max-width: 550px) {

    .landing.modal-header h2 {
        font-size: 1rem;
        margin:0 auto;
    }

    
}



@media (min-width: 400px) {


    .modal-product-preview-close {
        float: right;
        top: 20px;
        right: 20px;
        font-size: 12px;
    }

    .img-product-preview {
        margin-left: 8px;
    }
}

@media (max-width: 400px) {


    .modal-product-preview-close {
        float: none;
        width: 50%;
        margin-left: 25%;
        margin-top: -3px;
    }

    .modal-header.landing {
        min-height: 75px;
    }

    .bx--col.bx--col-sm-2 img {
        margin-left: 8px;
    }
}


