@import url('https://fonts.cdnfonts.com/css/graphik-trial');

.calculator {
    margin: 0 auto;
    /*background-color: white;*/
    /*padding: 20px;*/
    /*border-radius: 8px;*/
    /*box-shadow: 0 0 10px rgba(0,0,0,0.1);*/
    font-family: 'Graphik Trial', sans-serif;
    margin-bottom: 50px;
}
.calculator-text-link{
	color: white!important;
}
.sdhhc-form-shortcode-wrapper{
    margin-top: 50px;
}

.sdhhc-result--side-container{
    position: sticky;
    top: 100px;
}
.sdhhc-form-shortcode-wrapper .contact-from-popup-wrapper{
    max-width: 500px;
}

.result-container {
    background-color: #222222;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

#result {
    font-size: 3em;
    font-weight: bold;
}

.result-range {
    font-size: 0.9em;
    margin-top: 10px;
}

.sdhhc-inputs{
    display: flex;
    flex-flow: column;
    gap: 2rem;
}
.sdhhc-input-group {

}

.sdhhc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.sdhhc-input-group label{
    display: block;
    margin-bottom: 0;
    font-weight: bold;
    color: #555;
    font-size: 18px;
}
.sdhc-field-subtitle{
    color: #786e64;
    font-size: 14px;
}
.sdhhc-input-wrapper .unit-toggler{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

}

.sdhhc-input-wrapper input::-webkit-inner-spin-button,
.sdhhc-input-wrapper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.sdhhc-input-wrapper input {
    -moz-appearance: textfield;
}
.sdhhc-input-wrapper input {
    -ms-appearance: none;
}

/*.unit {*/
/*    position: absolute;*/
/*    right: 10px;*/
/*    color: #777;*/
/*    font-weight: bold;*/
/*}*/

.toggle-unit {
    cursor: pointer;
}

.unit-toggler{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f2f0;
    border-radius: 12px;
    transition: all ease-in-out 300ms;
}
.unit-toggler:hover{
    background-color: #dfdbd8;
}

.unit-toggler:hover .unit{
    opacity: 1;
}

.unit-toggler .unit{
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    z-index: 1;
    transition: all ease-in-out 300ms;
    opacity: 0.5;
}

.unit-toggler .unit.active{
    color: white;
    opacity: 1;
}

.unit-toggler:after{
    content: ' ';
    width: 38px;
    height: 38px;
    background: #333;
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 12px;
    transition: all ease-in-out 300ms;
}

.unit-toggler:has(.unit:nth-child(2).active):after {
    transform: translateX(calc(-100%));
}

.unit-toggler .value-holder{
    display: flex;
    position: absolute;
    left: 0;
    text-align: right;
    transform: translateX(calc(-100% - 8px));
    opacity: .5;
}

.unit-toggler .value-holder.percent-val {
    flex-flow: row-reverse;
}
.unit-toggler .value-holder .currency,
.unit-toggler .value-holder .box-val{
    margin-right: 2px;
}

.info-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 5px;
}

.info-icon:hover {
    background-color: #0056b3;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
}

.sdhhc-input-wrapper{
    border: 1px solid #ddd;
    font-size: 16px;
    padding: 10px 180px 10px 20px;
    border-radius: 20px;
}
.sdhhc-dynamic-input{
    position: relative;
}

.sdhhc-input-wrapper input,
.sdhhc-input-wrapper input:focus,
.sdhhc-dynamic-input input,
.sdhhc-dynamic-input input:focus{
    border: none;
    padding: 0;
    width: fit-content;
    min-width: 18px;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    background: none;
    font-size: 16px;
    height: 40px;
}

.sdhhc-dynamic-input.dollar{
    padding-left: 13px;
}

.sdhhc-dynamic-input.dollar:before{
    content: "$";
    align-items: center;
    justify-content: center;
    display: flex;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.sdhhc-dynamic-input.percent{
    /*padding-right: 13px;*/
}

.sdhhc-dynamic-input.percent:after{
    content: "%";
    align-items: center;
    justify-content: center;
    display: flex;
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
}

.final-results-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
}
.final-results-wrapper .final-results-box:nth-child(2){
	padding-left: 16px
}

.final-results-box{
    display: flex;
    flex-flow: column wrap;
    align-items: flex-start;
    margin: 10px 20px;
    position: relative;
  	min-width: 135px;
}
.final-results-box:after{
    content: " ";
    width: 1px;
    height:  100%;
    position: absolute;
    right: -20px;
    background: white;
}
.final-results-wrapper .final-results-box:last-child:after{
    display: none;
}
.final-results-title{
    font-size: 11px;
    margin-bottom: -9px;
}
.home-sale-price-box-val,
.total-costs-box-val{
    font-size: 25px;
}
.result-container-title{
    font-size: 14px;
    text-align: center;
  text-shadow: 0 0 8px #EBD170;
}
.fixed-mobile{
    z-index: 2;
}
.final-results-after-wrapper{
	display: flex;
  flex-flow: column wrap;
}
.final-results-after-wrapper span{
	font-size: 20px
}

.result-box-bottom-text-wrapper{
    border-top: 1px solid white;
    max-width: 90%;
    margin: 0 auto;
    padding-top: 25px;
    margin-top: 20px;
  	font-size: 20px;
}

@media all and (min-width: 1025px) {
    .result-container{
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .result-container-title {
        font-size: 20px;
    }
    .final-results-title {
        font-size: 14px;
        margin-bottom: -5px;
    }
}
@media all and (max-width: 1024px) {
    .result-box-bottom-text-wrapper{
        display: none;
    }
    .final-results-title {
        font-size: 10px;
        margin-bottom: -4px;
    }
    .mobile-reverse{
        flex-flow: column-reverse;
    }
    .result-container{
        margin-top: 40px;
    }

    .fixed-mobile{
        position: sticky;
        bottom: 65px;
    }

    .result-container {
        padding: 15px;
    }
    .sdhhc-form-shortcode-wrapper{
        display: none;
    }
}
@media all and (max-width: 1024px) {
  .result-container{
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: center;
  }
  .final-results-wrapper{
  	width: 60%;
    padding: 0 14px;
  }
  .final-results-box {
  	min-width: 50%;
    margin: 10px 14px;
  }
  .final-results-box:after {
      height: 90%;
    right: -15.5px;
  }
  .final-results-after-wrapper:before {
    content: " ";
    width: 1px;
    height: 105%;
    position: absolute;
    left: -12px;
    background: white;
  }
  .final-results-after-wrapper{
    font-size: 10px !important;
    position: relative;
    right: -10px;
    text-align: left;
    margin: 10px 5px;
  }
  .final-results-after-wrapper span {
        font-size: 20px;
        line-height: 20px;
  }
  .fixed-mobile {
    position: sticky;
    bottom: 55px;
  }
  .final-results-wrapper .final-results-box:nth-child(2){
      padding-left: 0
  }
  .final-results-wrapper .final-results-box:nth-child(1){
  	padding-left: 20px;
  }
  .final-results-wrapper .final-results-box:nth-child(1):after{
        right: -3px;
  }
  .final-results-wrapper {
    width: 70%;
    padding: 0 0;
    justify-content: space-between;
    position: relative;
    left: -12px;
  }
  .result-container {
    padding-bottom: 0px;
  }
}
@media (max-width: 410px) {
    .final-results-wrapper .final-results-box:nth-child(1) {
        padding-left: 5px;
    }
}
