
main { overflow: hidden; }

#roi-calculator { font-family: var(--primary-font); padding-bottom: 85px; }
.printed-header { display: none; text-align: center; }
.printed-header address, .printed-header address span { display: inline-block; }

#secondary-banner { justify-content: center; background-repeat: no-repeat; background-size: cover; padding-top: 0; }
#secondary-banner::after { display: none; }
#secondary-banner::before { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 100%; background: -webkit-gradient(linear,right top, left top,from(var(--light)), to(var(--secondary))); background: -o-linear-gradient(right,var(--light), var(--secondary)); background: linear-gradient(to left,var(--light), var(--secondary)); opacity: .8; }
#secondary-banner h1 { font-weight: 600; color: var(--gray); font-family: var(--primary-font); }

/* Hero */
.calc-hero {  background-color: var(--dark, #0e5fa6); color: #fff; padding: 0 5vw; padding-top: var(--header-height); background-repeat: no-repeat; background-position: center right; }
.calc-hero__prompt { font-size: 40px; padding: 80px 0; width: 1350px; max-width: 100%; margin: auto; }
.calc-hero__heading { font-size: 1em; text-transform: uppercase; margin: 0; width: 485px; display: inline-block; color: inherit; max-width: 100%; line-height: 1; letter-spacing: .05em; font-weight: 400; font-family: var(--secondary-font,'depot-new-web', sans-serif);}
.calc-hero__sub { font-size: .5em; font-style: italic; font-family: var(--secondary-font,'depot-new-web', sans-serif); margin: 10px 0 0; color: inherit; }

@media (min-width: 992px) {
  .calc-hero { height: 555px; display: flex; justify-content: center; align-items: center; background-image: url('https://resources.nesthub.com/images/rentsellcalc-banner.png'); }
  .calc-hero__prompt { font-size: 60px; }
}
@media (max-width: 991px) {
  .calc-hero { text-align: center; }
}
/* Instructions */
.calc-instructions { text-align: center; padding: 70px 5vw 30px; width: 1350px; max-width: 100%; margin: auto; letter-spacing: .05em; }
.calc-instructions__heading { font-size: 60px; margin: 0 0 25px; }
.calc-instructions__sub { font-size: 22px; letter-spacing: .05em; text-transform: uppercase; color: var(--primary,#0e5fa6); margin: 0 0 20px; font-family: var(--primary-font, 'darkmode-off', sans-serif); font-weight: 500; }
.calc-instructions__toggle { margin: 0 0 35px; padding: 0; display: flex; justify-content: center; align-items: center; }
.calc-instructions__steps { font-size: 16px; line-height: 1.875; text-align: left; }
.calc-instructions .custom-switch__label { }
.calc-instructions .custom-switch__label--left { padding-right: 45px; }
.calc-instructions .custom-switch__label--right { padding-left: 45px;  }
.calc-instructions .form-switch .form-check-input { width: 72px; height: 22px; top: 2px; border-radius: 11px; border: 0; margin: auto 0; box-shadow: inset 0px 2px 16px 0px rgba(0, 0, 0, 0.2)!important; --bs-form-switch-bg: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23919191'/%3e%3c/svg%3e); }
.calc-instructions .form-switch .form-check-input:checked { background-color: var(--primary); }
@media (max-width:500px) {
  .calc-instructions__heading { font-size: 40px; }
}

/* Form */
.calc-form { text-align: center; padding: 0 5vw; width: 1350px; max-width: 100%; margin: 0 auto; letter-spacing: .05em;  }
.calc-form__carousel .carousel-inner { overflow: visible; }
.calc-form__carousel .carousel-item { padding: 50px 15px; background: #fff; border-radius: 20px; box-shadow: 0px 6px 43px 0px rgba(0, 0, 0, 0.17); }

.calc-form__heading { font-size: 22px; letter-spacing: .05em; text-transform: uppercase; color: var(--body-text); margin: 0 0 10px; font-family: var(--primary-font); font-weight: 500; }
.calc-form__sub { font-size: 18px; letter-spacing: .05em; text-transform: uppercase; color: var(--body-text); margin: 0 0 55px; font-family: var(--primary-font); font-weight: 400; }

.calc-form__container { display: flex; flex-wrap: wrap; text-align: left; margin: -10px -10px 25px; }
.calc-form .form-group { padding: 10px; flex: 1 1 300px; margin-bottom: 10px; }
.calc-form .form-group label { font-size: 20px; display: block; }
.calc-form .form-group input:not(.form-check-input), .calc-form .form-group select, .calc-form .form-group textarea { border: 0; border-radius: 0; background: #f3f3f3; height: 54px; }
.calc-form .input-group-text { color: #737373; font-size: 20px; border: 0; border-radius: 0; background-color: #e0e0e0; min-width: 40px; text-align: center; height: 100%; }
.calc-form .form-group-comments, .calc-form .form-group-services { flex: 1 1 100%; }
.calc-form .form-text { line-height: 1.1; display: block; margin-top: 10px!important; }
.calc-form .form-check { margin-top: 1em; }

.input-group--readonly input, .input-group--readonly .input-group-text { background: #fff!important; }

.calc-form__advanced-toggle { display: block; margin: 30px 0 60px; font-size: 18px; text-transform: uppercase; color: var(--body-text); transition: .4s; }
.calc-form__advanced-toggle:hover { text-decoration: none; color: var(--primary); transition: .4s; }

.calc-form__controls { display: flex; justify-content: space-between; }
.calc-form__btn { display: block; text-transform: uppercase; font-weight: 500; font-size: 18px; height: 47px; line-height: 47px; padding: 0 20px!important; border-radius: 10px; background: var(--body-text); color: #fff; border: 0; min-width: 115px; transition: .5s; }
.calc-form__btn:hover { color: #fff; background: var(--primary); text-decoration: none; transition: .5s; }

/* Carousel Transitions */
.carousel-item-next:not(.carousel-item-start), .active.carousel-item-end { transform: translateX(100%) scale(0); }
.carousel-item-prev:not(.carousel-item-end), .active.carousel-item-start { transform: translateX(-100%) scale(0); }

@media (min-width: 992px) {
  .calc-form__carousel .carousel-item { padding: 50px; }
}

.analysis .row::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 400px;
    background-color: #fff!important;
    position: absolute;
    z-index: -1;
}
/* Results */
.calc-results { padding: 85px 15px; text-align: center; position: absolute; transform: scale(0); opacity: 0; }
.calc-results__heading { font-size: 60px; font-weight: 500; text-transform: uppercase; margin: 0 0 50px; }
.calc-results__value { font-size: 22px; margin: 0 0 60px; font-weight: 400; line-height: 2; }
.calc-results__option { font-weight: 500; }
.calc-results__amount { font-size: 32px; font-weight: 500; color: var(--primary);}

.calc-form:has(.ion-form-success) + .calc-results, .calc-results.show { position: relative; transform: scale(1); opacity: 1; }

.calc-results__plot { position: relative; width: 1350px; max-width: 100%; margin: 0 auto; padding: 0 0 85px; }
.calc-results__plot .legend { font-size: 24px; text-transform: uppercase; font-weight: 500; line-height: 1; display: inline-flex; align-items: center; padding: 10px; }
.calc-results__plot .legend::before { content: ''; height: 17px; width: 17px; border-radius: 50%; display: block; margin-right: 15px; background-color: currentColor; }
.calc-results__plot .legend--rent { color: #1367a7; }
.calc-results__plot .legend--sell { color: #2eaeea; }
.calc-results__plot .jqplot-yaxis-label { position: absolute; transform: rotate(-90deg); transform-origin: center; top: 50%; left: 0; }
.calc-results__plot .jqplot-xaxis-label, .calc-results__plot .jqplot-yaxis-label { font-size: 22px; color: #a1a1a1; text-transform: uppercase; font-weight: 500; }
.jqplot-event-canvas, .jqplot-series-canvas { border-radius: 20px!important; }
@media (min-width: 992px) {
  .calc-results__plot { padding: 0 140px 85px 50px; }
  .calc-results__plot #legend { position: absolute; right: 0; top: 15px; display: flex; flex-direction: column; }
}
@media (max-width: 991px) {
  .calc-results__plot #legend { padding-bottom: 35px; }
}
@media (max-width: 500px) {
  .calc-results__heading { font-size: 35px; }
}

#calculate { color: #fff!important; }

.calc-results__table { width: 1718px; max-width: 100%; margin: 0 auto; overflow: hidden; text-align: left; }
.calc-results__table table { border-radius: 20px; overflow: hidden; text-align: left; width: 620px; max-width: 100%; margin: 0 auto; }
.calc-results__table tr { background: #f3f3f3; }
.calc-results__table tbody tr:nth-child(odd) { background: #e3e3e3; }
.calc-results__table thead th { padding: 25px 15px; font-size: 18px; width: 25%; color: #000!important; }
.calc-results__table tbody th { font-weight: 500; text-transform: uppercase; text-align: left; vertical-align: middle; padding: 15px; color: #000!important;}
.calc-results__table td { font-size: 16px; font-weight: 400; height: 50px; padding: 0 15px; white-space: nowrap; color: #000!important; }

/* Mobile Table */
@media (max-width: 1100px){
  .calc-results__table table { width: 100%; }
	.calc-results__table, .calc-results__table table, .calc-results__table thead, .calc-results__table tbody, .calc-results__table th, .calc-results__table td, .calc-results__table tr { display: block; border: 0!important; }
	.calc-results__table thead { display: none; }
	.calc-results__table td { display: flex; justify-content: space-between; height: auto; min-height: 50px; padding: 8px; align-items: center; background: #fff; text-align: right; border: 1px solid var(--border-color)!important; color: #000!important;  }
	.calc-results__table td:first-child { background: var(--primary); color: #fff; font-size: 18px; font-weight: bold; border: 0!important; color: #000!important; }
	.calc-results__table td:nth-of-type(even) { background: var(--gray); border-top: 0!important; border-bottom: 0!important; color: #000!important; }
	.calc-results__table th::before { content: 'Year '; }
  .calc-results__table tbody th { text-align: center; background: #b3b3b3; color: #000!important;}
  .calc-results__table .debt-retirement td:nth-child(2)::before { content: 'Equity'; }
  .calc-results__table .debt-retirement td:nth-child(3)::before { content: 'Total'; }
  .calc-results__table .debt-retirement td:nth-child(4)::before { content: 'ROI'; }
  .calc-results__table .appreciation td:nth-child(2)::before { content: 'Increase'; }
  .calc-results__table .appreciation td:nth-child(3)::before { content: 'Value'; }
  .calc-results__table .appreciation td:nth-child(4)::before { content: 'ROI'; }
  .calc-results__table .results td::before { margin-right: auto; }
  .calc-results__table .results td:nth-child(2)::before { content: 'Capital ROI'; }
  .calc-results__table .results td:nth-child(3)::before { content: 'Equity'; }
  .calc-results__table .results td:nth-child(4)::before { content: 'ROI'; }
  .calc-results__table .results td:nth-child(5)::before { content: 'Total'; }
}

.calc-results__buttons { display: flex; margin: -15px; justify-content: center; padding-top: 80px; }
.calc-results__buttons a { margin: 15px; }


.calc-results__table .results { width: 790px; max-width: 100%; margin: 0 auto; }
.calc-results__table .analysis { margin-top: 80px; text-align: center; }
.calc-results__table h4 { text-align: center; margin: 45px auto; font-size: 20px; letter-spacing: .05em; text-transform: uppercase; color: #000!important;}
.calc-results__table h4 span { font-weight: normal; }
