#roi-calculator {}
  :root {
  	--primary: #132531;
  	--primary-rgb: 0,123,255;
  	--secondary: #132531;
  	--dark: #243642;
  	--gray: #f2f2f2;
  	--gray-dark: #252525;
  	--muted: #707070;
  	--body-text: #212529;
  	--text-dark: #343a40;
  	--border-color: #cccccc;
  	--box-shadow: 0 5px 10px rgba(0, 0, 0, 0.19), 0 2px 4px rgba(0, 0, 0, 0.23);
  }
main { overflow: hidden; }
#secondary-banner { display: none; }

/* Add margin-top to Calc Hero if #Header is covering the banner - should be height of #header */
.calc-hero { margin-top: 0px; }

#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; }


/* Hero */
.calc-hero { padding-top: 144px!important; background-color: #111; color: #fff!important; padding: 0 5vw; background-repeat: no-repeat; background-position: center right; }
.calc-hero__prompt { font-size: 40px; padding: 80px 0; width: 1350px; max-width: 100%; margin: auto; color: #fff!important; }
.calc-hero__heading { font-size: 1em; text-transform: uppercase; margin: 0; width: 485px; display: inline-block; max-width: 100%; line-height: 1; letter-spacing: .05em; font-weight: 400; font-family: var(--secondary-font); color: #fff!important; }
.calc-hero__sub { font-size: .5em; font-style: italic; font-family: var(--secondary-font); margin: 10px 0 0; color: #fff!important; }
@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; }
  .calc-hero__heading {padding-top: 70px;}
}

/* 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: 22px; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); margin: 0 0 20px; font-family: var(--primary-font); 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: 85px;  }
.calc-instructions .custom-switch .custom-control-label::before { width: 72px; height: 22px; top: 0; border-radius: 11px; border: 0; box-shadow: inset 0px 2px 16px 0px rgba(0, 0, 0, 0.2)!important; }
.calc-instructions .custom-switch .custom-control-label::after { top: 2px; left: calc(-2.25rem + 2px); width: 18px; height: 18px; border-radius: 50%; background: #c7c7c7; background: -moz-linear-gradient(top, #c7c7c7 0%, #919191 100%); background: -webkit-linear-gradient(top, #c7c7c7 0%,#919191 100%); background: linear-gradient(to bottom, #c7c7c7 0%,#919191 100%); }
.calc-instructions .custom-control-input:checked~.custom-control-label::before { color: #fff; background-color: var(--primary); }
.calc-instructions .custom-switch .custom-control-input:checked~.custom-control-label::after { background-color: #fff; background: -moz-linear-gradient(top, #fff 0%, #919191 100%);  background: -webkit-linear-gradient(top, #fff 0%,#919191 100%);  background: linear-gradient(to bottom, #fff 0%,#919191 100%); -webkit-transform: translateX(50px); transform: translateX(50px); }

/* 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 .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: 19px; display: block; }
.calc-form .form-group input { border: 0; border-radius: 0; background: #f3f3f3; height: 54px; box-shadow: none; }
.calc-form .input-group-text { color: #737373; font-size: 20px; border: 0; border-radius: 0; background-color: #e0e0e0; min-width: 40px; text-align: center; }
.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 { background: #111!important; 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: #111; background: #fff!important; text-decoration: none; transition: .5s; border-color: #111!important;}

/* Carousel Transitions */
.item.next:not(.item.left), .item.active.right { transform: translateX(100%) scale(0)!important; }
.item.prev:not(.item.right), .item.active.left { transform: translateX(-100%) scale(0)!important; }

@media (min-width: 992px) {
  .calc-form__carousel .item { padding: 50px; }
}



/* 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%; }
.calc-results__table tbody th { font-weight: 500; text-transform: uppercase; text-align: left; vertical-align: middle; padding: 15px; }
.calc-results__table td { font-size: 16px; font-weight: 400; height: 50px; padding: 0 15px; white-space: nowrap; }

/* 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;  }
	.calc-results__table td:first-child { background: var(--primary); color: #fff; font-size: 18px; font-weight: bold; border: 0!important; }
	.calc-results__table td:nth-of-type(even) { background: var(--gray); border-top: 0!important; border-bottom: 0!important; }
	.calc-results__table th::before { content: 'Year '; }
  .calc-results__table tbody th { text-align: center; background: #b3b3b3; }
  .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; }
.calc-results__table h4 span { font-weight: normal; }

@media (max-width: 992px){
  .calc-results .col-sm-12 { width: 100%; }
}
@media (max-width: 600px){
  .calc-results__heading { margin-bottom: 15px; }
  .calc-results .analysis h4, .calc-results__table h4 { margin: 15px 0!important; }
}

/* BS3 Fix */
.d-none { display: none!important; }
#roi-calculator .row { display: flex; flex-wrap: wrap; }
#roi-calculator .input-group { position: relative; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-align: stretch; align-items: stretch; width: 100%; }
#roi-calculator .justify-content-center { justify-content: center; }
.input-group-prepend { margin-right: -1px; }
.input-group-append, .input-group-prepend { display: -ms-flexbox; display: flex; }
.input-group-text { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; justify-content: center; padding: 0.375rem 0.75rem; margin-bottom: 0; font-weight: 400; line-height: 1.5; white-space: nowrap; }
.input-group>.custom-file, .input-group>.custom-select, .input-group>.form-control, .input-group>.form-control-plaintext { flex: 1 1 auto; width: 1%; }
.ml-auto { margin-left: auto; }
.form-check-inline { display: -ms-inline-flexbox; display: inline-flex; -ms-flex-align: center; align-items: center; padding-left: 0; margin-right: 0.75rem; }
.form-check-inline .form-check-input { position: static; margin-top: 0; margin-right: 0.3125rem; margin-left: 0; }
.form-check-label { margin-bottom: 0; }
.custom-control { position: relative; display: block; min-height: 1.5rem; padding-left: 1.5rem; }
.custom-control-inline { display: inline-flex; margin-right: 1rem; }
.custom-control-input { position: relative; z-index: -1; opacity: 0; }
.custom-control-input:checked ~ .custom-control-label::before { color: #fff; border-color: #007bff; background-color: #007bff; }
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); }
.custom-control-input:focus:not(:checked) ~ .custom-control-label::before { border-color: #80bdff; }
.custom-control-input:not(:disabled):active ~ .custom-control-label::before { color: #fff; background-color: #b3d7ff; border-color: #b3d7ff; }
.custom-control-input:disabled ~ .custom-control-label { color: #6c757d; }
.custom-control-input:disabled ~ .custom-control-label::before { background-color: #e9ecef; }
.custom-control-label { position: relative; margin-bottom: 0; vertical-align: top; }
.custom-control-label::before { position: absolute; top: 0.25rem; left: -1.5rem; display: block; width: 1rem; height: 1rem; pointer-events: none; content: ""; background-color: #fff; border: #adb5bd solid 1px; }
.custom-control-label::after { position: absolute; top: 0.25rem; left: -1.5rem; display: block; width: 1rem; height: 1rem; content: ""; background: no-repeat 50% / 50% 50%; }
.custom-switch { padding-left: 2.25rem; }
.custom-switch .custom-control-label::before { left: -2.25rem; width: 1.75rem; pointer-events: all; border-radius: 0.5rem; }
.custom-switch .custom-control-label::after { top: calc(0.25rem + 2px); left: calc(-2.25rem + 2px); width: calc(1rem - 4px); height: calc(1rem - 4px); background-color: #adb5bd; border-radius: 0.5rem; transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
@media (prefers-reduced-motion: reduce) {
  .custom-switch .custom-control-label::after { transition: none; }
}
.custom-switch .custom-control-input:checked ~ .custom-control-label::after { background-color: #fff; transform: translateX(0.75rem); }
.custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before { background-color: rgba(0, 123, 255, 0.5); }
/* End BS3 Fix */

#calc-terms { padding-top: 85px; }
