/*---------------------------------------------
Template Name: Smart Pack Calculator
Author: Hafiz Shehroz
Version: 1.0.0


--------------------------------------------*/
/*=======================================================================
 Default Styles
=========================================================================*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/*-------------------------
    Variables
-------------------------*/
:root {
    --color-primary: #E61A4E;
    --color-light-primary: #A80F0F90;
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-grey: #DDDDDD;
    --color-semi-grey: #e2e2e2;
    --color-medium-grey: #F3F3F4;
    --color-dark-grey: #797D86;
    --color-darker-grey: #787878;
    --color-grey-normal: #868686;
    --font-primary: "Montserrat", sans-serif;
    --font-sec: "Roboto", sans-serif;
    --transition: all 0.3s ease-in-out;
    --dark-shadow: 40px 73px 33px rgba(0, 0, 0, 0.01), 23px 41px 28px rgba(0, 0, 0, 0.05), 10px 18px 21px rgba(0, 0, 0, 0.09), 3px 5px 11px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);
}

/*-------------------------
    Typography
-------------------------*/
.calc-main-wrapper {
    padding: 0;
    margin: 0;
}

.calc-container * {
    box-sizing: border-box;
}

.calc-container {
    width: 88%;
    margin: 0 auto;
}

/*=======================================================================
2. Elements Styles
=========================================================================*/
/*-------------------------
  Helper Classes
-------------------------*/
.grid-block{
    display: grid;
    grid-gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}
.hr-line{
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    margin: 50px 0;
}
/* -----------------------
  Heading Styles 
--------------------------*/
.sec-title {
    margin-bottom: 24px;
}

.sec-title h2 {
    font-size: 32px;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin: 0;
    line-height: 1.4;
    text-align: left !important;
}

.sec-title span {
    margin-left: 30px;
    font-weight: 400;
    color: var(--color-black);
}
.sec-title p {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-primary);
    margin: 0;
    padding: 0;
}
.small-text {
    font-size: 18px;
    font-weight: 400;
    font-family: var(--font-sec);
    color: var(--color-black);
    line-height: 1.6;
    margin-bottom: 24px;
}
.small-text b{
    font-weight: 400;
    color: var(--color-primary);
}
.sm-text{
    display: block;
    font-size: 12px;
    font-weight: 400;
    font-family: var(--font-primary);
    color: var(--color-black);
    margin-top: 10px;

}

/*-------------------------
Forms Styles
-------------------------*/
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-primary);
    line-height: 1.8;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-primary);
    padding: 10px 12px;
    border: 2px solid var(--color-primary);
    color: var(--color-black);
    border-radius: 5px;
    margin: 0;
}
.form-group input:focus{
    outline: 2px dotted #2D2E33;
    outline-offset: 1px;
}

.form-group select {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-primary);
    padding: 8px 12px;
    border: 2px solid var(--color-grey);
    color: var(--color-black);
    border-radius: 2px;
    margin: 0;
    text-align: center;
}
/*-------------------------
    radio button Styles
-------------------------*/
.pack-sel [type="radio"]:checked,
.pack-sel [type="radio"]:not(:checked) {
    position: absolute;
    left: -9999px;
}
.pack-sel label{
    display: block;
    font-size: 18px;
    border: 1px solid var(--color-primary);
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.pack-sel [type="radio"]:checked + label{
    border-color: var(--color-primary);
}
.image_picker_selector .pack-sel [type="radio"]:checked + label{
  border-width: 5px;
}
[type="radio"]:not(:checked) + label:after {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
}
[type="radio"]:checked + label:after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

/*=======================================================================
Blocks Styles 
=========================================================================*/

/*-------------------------
  Setting Block Styles
-------------------------*/
.calculator-content {
    width: 100%;
    padding: 50px 0;
}
.measurements-block{
    margin-bottom: 38px;
}
.thumbnails{
    padding: 0;
    list-style: none;
    margin: 0;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(5, 1fr);
}
.thumbnails li .pack-sel{
    position: relative;
}
.thumbnails li .pack-sel label{
    overflow: hidden;
    width: 100%;
    height: 225px;
    padding: 10px;
    margin: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.thumbnails li .pack-sel.st-2 label{
    height: inherit;
    font-size: 18px;
    font-weight: 600;   
    text-align: center;
    display: inline-block;
}
.thumbnails li .pack-sel.st-2 label:hover{
    background: var(--color-light-primary);
    color: var(--color-white);
}
.thumbnails li .pack-sel label img{
    width: 100%;
    object-fit: cover;
}
.thumbnails li .pack-sel p{
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-sec);
    color: var(--color-black);
    margin: 0;
    padding: 10px 5px;
    text-align: center;

}
.thumbnails li .pack-sel span{
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    background: var(--color-light-primary);
    position: absolute;
    left: -101%;
    top: 0;
    color: white;
    transition: var(--transition);
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-sec);
    padding: 10px;
    line-height: 140%;
}
.thumbnails li .pack-sel:hover span{
    left: 0;
}
.thumbnails li .pack-sel [type="radio"]:checked + label span{
    left: 0;
}
.thumbnails li .pack-sel.st-2 [type="radio"]:checked + label{
    background: var(--color-primary);
    color: var(--color-white);
}
.segment-value{
    width: 70%;
    border: 2px solid var(--color-primary);
    border-radius: 5px 0 0 5px;
    border-right: 0;
    padding: 10px;
    display: grid;
    grid-gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
}
.segment-value::before{
    content: '';
    position: absolute;
    right: -60px;
    top: 0px;
    width: 0;
    height: 0;
    border-top: 85.5px solid transparent;
    border-left: 60px solid var(--color-white);
    border-bottom: 85.5px solid transparent;
    z-index: 100;
}

.value-item{
    width: 100%;
    padding: 40px 0px;
    position: relative;
    text-align: center;
}
.value-item::before{
    content: '';
    width: 2px;
    height: 60%;
    position: absolute;
    top: 20%;
    right: 1px;
    background: var(--color-primary);
}
.value-item:last-child::before{
    display: none;
}
.value-item p{
    font-size: 18px;
    font-weight: 500;
    font-family: var(--font-sec);
    color: var(--color-black);
    margin: 0;
    margin-bottom: 12px;
    line-height: 1.4;
}
.value-item span{
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--color-primary);
    margin-bottom: 0px;
    line-height: 1.4;
}
.value-item.st-2{
    width: 30%;
    border: 2px solid var(--color-primary);
    border-radius: 0 5px 5px 0;
    background: var(--color-primary);
    border-right: 0;
    padding: 50px 0;
    position: relative;
    padding-left: 60px;

}
.value-item.st-2 p,
.value-item.st-2 span{
    color: white;
}
.segment-container{
    display: flex;
}
.red-primary-color{
    color: var(--color-primary);

}
.calc-font-bold{
    font-weight: bold !important;
}
.calc-center-text{
    text-align: center !important;
}

/* warning popup box styles */
/* .box {
    width: 40%;
    margin: 0 auto;
    background: rgba(255,255,255,0.2);
    padding: 35px;
    border: 2px solid #fff;
    border-radius: 20px/50px;
    background-clip: padding-box;
    text-align: center;
  }
  
  .button {
    font-size: 1em;
    padding: 10px;
    color: #fff;
    border: 2px solid #06D85F;
    border-radius: 20px/50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-out;
  }
  .button:hover {
    background: #06D85F;
  } */
  
  .warning-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    z-index: 1000;
  }
  .warning-overlay:target ,
  .warning-overlay.show-waring {
    visibility: visible;
    opacity: 1;
  }
  
  .warning-popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 30%;
    position: relative;
    transition: all 5s ease-in-out;
  }
  
  .warning-popup .calc-waring-title {
    margin-top: 0;
    color: red;
    /* font-family: Tahoma, Arial, sans-serif; */
  }
  .warning-popup .close-warning {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
  }
  .warning-popup .close-warning:hover {
    color: #06D85F;
  }
  .warning-popup .warning-popup-content {
    max-height: 30%;
    overflow: auto;
    font-size: 18px;
    line-height: 1.5;
  }
  
  @media screen and (max-width: 768px){
    .box{
      width: 70%;
    }
    .warning-popup{
      width: 70%;
    }
  }

  /* warning box styles end */

@media only screen and (max-width: 768px){
    .form-group {
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }
    .measurements-block.grid-block{
        grid-template-columns: auto;
    }
    .thumbnails li .pack-sel label {
        height: auto;
    }
    .thumbnails {
        grid-template-columns: auto;
    }
    .sec-title span {
        margin-left: 0px;
        display: flex;
        font-size: 20px;
    }
    .segment-value{
        grid-template-columns: auto;
        width: 100%;
    }
    .segment-container{
        flex-direction: column;
    }
    .segment-value{
        border: 2px solid var(--color-primary);
        border-radius: 5px 5px 0 0;
    }
    .segment-value::before{
        content: unset;
    }
    .value-item::before{
        
        content: '';
        width: 100%;
        height: 1px;
        position: absolute;
        top: 100%;
        left: 1px;
    }
    .value-item.st-2 {
        width: 100%;
        padding: 50px 0;
        border-radius: 0 0px 5px 5px;
    }
    
}