/*
Theme Name: silvernet21
Theme URI: yoururl
Author: LiamC
Version: 1.5 
.
.
.
*/


/* 
    General page stuff
*/
.page-template-page-calculator .goog-te-gadget {
    white-space: normal;
}

.page-template-page-calculator .cta-banners {
    padding: 60px 0 50px 0;
}

/* 
    Tabs
*/

/* Style the tab container */
.map-tabs .tabs {
    display: flex;
    cursor: pointer;
}

.map-tabs .tabs .tab {
    padding: 10px 20px;
    margin-right: 5px;
    background-color: #ddd;
    border: 1px solid #ccc;
    text-align: center;
    border-radius: 4px;
}

.map-tabs .tabs .tab:hover {
    background-color: #e95d00;
    color: white;
}

/* Style the active tab */
.map-tabs .tabs .tab.active {
    background-color: #e95d00;
    color: white;
    font-weight: bold;
}

/* Style the image container */
.map-tabs .tab-content {
    display: none;
    margin-top: 20px;
}
.map-tabs .tab-content.full {
    display: block;
    margin-top: 20px;
    cursor: pointer;
}

.map-tabs .tab-content img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    display: block;    
}

.map-tabs .tab-content.active-content {
    display: block;
}


/* 
    Modal
 */

    /* Basic styles for modal */
#imageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999999;
}

#modalContent {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    position: relative;
}

#modalImage {
    max-width: 100%;
    height: auto;
}

.closeModal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 45px;
    cursor: pointer;
    color: #fff;
}

/* 
    product images
*/
.img-container img {
    width: 100%;
    max-width: 400px;
    object-fit: cover;
    margin-top: 20px;
    border-radius: 4px;
}
.img-container .image-content{
    display: none;
}
.img-container .image-content:nth-of-type(2n){
    display: block;
}
.image-button{
    width: 100%;
    padding: 10px;
    text-align: center;
    display: block;
    /* background: #ffffff;
    color: #FF6600;
    border: 2px solid #FF6600; */
    background: #ff6600;
    color: #fff; 
    border-radius: 0 0 4px 4px;   
}
.image-button:hover{
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
}

#imageModal{
    overflow: hidden;
    cursor: zoom-in; /* Default zoom-in cursor */
}

/* 
    Form
*/

.field-float{
    display: grid;
    gap: 20px;
    grid-template-columns: 250px 250px;
}
#calculateData > label, .group-label, .field-float-item label{
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    margin-left: 0;
}
#calculateData input[type="number"], #calculateData select {
    float: left;
    display: block;
    width: 94%;
    /* width: 400px; */
    max-width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.428571429;
    color: #6f6f6f;
    vertical-align: middle;
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #cacaca;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}
#calculateData .field-float select{
    width: 100%;
}
#calculateData .flexmaps {
    display: flex;
    align-items: center;
    gap: 10px;
}

#calculateData button{
    background: #ff6600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: none;
    padding: 10px 25px;
    margin-top: 15px;
    border-radius: 4px;
}
#calculateData button:hover{
   opacity: 0.9;
}


/* 
    Radio styles
*/

.radio-group{
    margin-bottom: 10px;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.radio-group .rgroup label{
    margin: 0;
}
.radio-group .rgroup{
    position: relative;
    margin-bottom: 10px;
}
/* Hide the browser's default radio button */
#calculateData .rgroup input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    top: -9px;
    left: 0px;
    height: 32px;
    width: 80%;
    z-index: 999;
}
#calculateData .rgroup-parent{
    display: grid;
    gap: 0;
    grid-template-columns: 90px 90px;
    gap: 20px;
}

/* Create a custom radio button */
#calculateData .checkmark {
    position: absolute;
    top: 3px;
    left: 40px;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border-radius: 4px;
}

/* On mouse-over, add a grey background color */
#calculateData .rgroup:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
#calculateData .rgroup input:checked ~ .checkmark {
    background-color: #ff6600;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
#calculateData .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
#calculateData .rgroup input:checked ~ .checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
#calculateData .rgroup .checkmark:after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

#showMapZones{
    display: none;
}

.scroll-indicator{
    display: none;
}

#exportPdf{
    display: none;
    background: #ff6600;
    border: none;
    text-align: center;
    color: #fff;
    border-radius: 4px;
    padding: 10px 20px;
    margin: 20px 15px;
    width: 100%;    
}

/*  Mobile */
@media only screen and (max-width: 991px) {
    .scroll-indicator{
        display: block;
    }
    .scroll-indicator i {
        color: #fff;
    }
    .scroll-indicator i:first-of-type {
        margin-right: 10px;
    }    
    .scroll-indicator i:last-of-type {
        animation: jiggle 0.5s ease-in-out 5; /* Add animation */
    }
      
    @keyframes jiggle {
        0% {
          transform: translateX(0);
        }
        25% {
          transform: translateX(-5px);
        }
        50% {
          transform: translateX(5px);
        }
        75% {
          transform: translateX(-5px);
        }
        100% {
          transform: translateX(0);
        }
    }

    #showMapZones{
        display: block;
    }
    #mapTabs{
        display: none;
    }
    #mapTabs{
        margin-top: 30px;
    }
    .calc-p{
        display: grid;
        grid-template-columns: 1fr;
    }
    .calc-p .calc-form{
        /* order: 2; */
    }
    .calc-p .map-tabs{
        /* order: 1; */
    }
    #calculateData input[type="number"], #calculateData select {
        width: 100%;
    }
    
    .field-float {
        display: grid;
        gap: 20px;
        grid-template-columns: 1fr 1fr;
    }

    .img-container{
        text-align: center;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        width: 100%; /* Ensure the container spans the full width */
    }
      
    .table-container table {
        width: 100%; /* Table width should take up the available space */
        table-layout: auto; /* Let the table adjust column widths based on content */
        border-collapse: collapse; /* Optional: improves table appearance */
    }
      
    .table-container th, td {
        padding: 8px; /* Adjust padding for better spacing */
        word-wrap: break-word; /* Prevents text from overflowing */
    }    

}

@media only screen and (max-width: 991px) {

}