/* Tax Calculator */
@import url("elements/tax-calculator.css");

/* TYPOGRAPHY */
.tax-credit h2,
.tax-credit .h2 {
    margin: 0 0 1.5rem;
}

@media screen and (min-width: 1024px) {
    .tax-credit h2,
    .tax-credit .h2 {
        font-size: 2.25rem;
    }
}

section .btn, 
section .button {
    font-size: .875rem;
    padding: 14px 24px;
}

/* BANNER */
#banner {
    margin-bottom: 0 !important;
}

/* Banner title  */
#banner .banner-with-background.banner-tax .banner-title {
    max-width: 500px;
    padding: 0 15px;
}

#banner .banner-with-background.banner-tax .banner-title,
#banner .banner-with-background.banner-tax .banner-title span {
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

#banner .banner-with-background.banner-tax.banner-tax-mwf .banner-title {
	font-weight: 400;
	max-width: 510px;
	text-align: center;
}

#banner .banner-with-background.banner-tax .banner-title .bold {
    font-weight: 800;
}

#banner .banner-with-background.banner-tax.banner-tax-mwf .banner-title .bold {
	font-weight: 700;
}

#banner .banner-with-background.banner-tax .banner-content-container {
    align-items: flex-end;
    display: flex;
    grid: none;
    gap: 0;
    margin: 0 auto;
    min-height: 450px;
    padding-bottom: 140px;
}

#banner .banner-with-background .banner-form-container {
    width: 320px;
}

@media screen and (min-width: 768px) {
    #banner .banner-background::after {
        background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0) 70%);
    }
    #banner .banner-with-background.banner-tax .banner-content-container {
        padding-bottom: 60px;
        padding-right: 30px;
    }
    #banner .banner-with-background.banner-tax .banner-title {
        max-width: none;
        padding: 0;
    }
    #banner .banner-with-background.banner-tax .banner-title,
    #banner .banner-with-background.banner-tax .banner-title span {
        font-size: 1.75rem;
        text-align: left;
    }
    #banner .banner-background:has( + .banner-tax-holiday) img {
        object-position: 52% 0%;
    }
    #banner .banner-background:has( + .banner-tax) .image-credit {
        max-width: calc(100% - 435px);
    }
}

@media screen and (min-width: 1024px) {
    #banner .banner-with-background.banner-tax .banner-content-container {
        grid-template-columns: auto;
    }
    #banner .banner-with-background.banner-tax .banner-title,
    #banner .banner-with-background.banner-tax .banner-title span {
        font-size: 3.125rem;
        line-height: 1.25;
    }
    html[lang|="fr"] #banner .banner-with-background.banner-tax .banner-title,
    html[lang|="fr"] #banner .banner-with-background.banner-tax .banner-title span {
        font-size: 2.8125rem;
    }
}

@media screen and (max-width: 767px) {
    #banner .banner-background::after {
    	background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0) 80%);
    }
    #banner .banner-background:has( + .banner-tax) {
    	background: inherit;
    	height: 450px;
    	padding: 0;
    }
    #banner .banner-background:has( + .banner-tax) .image-credit {
        bottom: 100px;
    }
    #banner .banner-with-background.banner-tax-mwf .banner-title,
	#banner .banner-with-background.banner-tax-mwf .banner-title span {
		font-size: 2rem;
		line-height: 1.15;
	}
    #banner .banner-with-background.banner-tax .banner-content-container + .banner-form-container {
    	margin-bottom: 0;
        margin-top: -100px;
    }
}

/* COUNTDOWN TIMER IN BANNER */
.countdown-container {
    display: inline-block;
    text-align: center;
}

.countdown-container,
.countdown-container > span,
.countdown-container > span > span > .number {
    display: block;
}

.countdown-container .countdown {
    background-color: #ee000033;
    border: 1px solid var(--primary-red);
    border-radius: 2px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 25px;
    margin: 0 auto 20px auto;
    max-width: 300px;
    padding: 1rem 1rem 30px;
    position: relative;
    text-align: center;
}

#banner .banner-with-background.banner-tax .banner-title .countdown-container span {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.25;
}

#banner .banner-with-background.banner-tax .banner-title .countdown-container .countdown > span {
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
}

#banner .banner-with-background.banner-tax .banner-title .countdown-container .countdown > span.fineprint {
	bottom: 5px;
	font-size: .5625rem;
    font-weight: 400;
    letter-spacing: .2px;
	position: absolute;
}

#banner .banner-with-background.banner-tax .banner-title .countdown-container .countdown span > .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

@media screen and (min-width: 380px) {
    .countdown-container .countdown {
        max-width: 320px;
    }

    #banner .banner-with-background.banner-tax .banner-title .countdown-container .countdown span > .number {
        font-size: 2.25rem;
    }

    #banner .banner-with-background.banner-tax .banner-title .countdown-container .countdown > span {
        font-size: 1.125rem;
    }
    #banner .banner-with-background.banner-tax .banner-title .countdown-container .countdown > span.fineprint {
	    font-size: .5625rem;
    }
}

@media screen and (min-width: 450px) {
    .countdown-container .countdown {
        max-width: 390px;
        gap: 30px;
    }
    #banner .banner-with-background.banner-tax .banner-title .countdown-container .countdown span > .number {
        font-size: 3rem;
    }
    #banner .banner-with-background.banner-tax .banner-title .countdown-container .countdown > span {
        font-size: 1.4375rem;
    }
}

@media screen and (min-width: 768px) {
    .countdown-container .countdown {
        flex-wrap: wrap;
        gap: 40px;
        max-width: 250px;
    }
    #banner .banner-with-background.banner-tax .banner-title .countdown-container span {
        text-align: center;
    }
    /* Countdown Banner title */
    #banner .banner-with-background.banner-tax .banner-title .countdown-container span {
        font-size: 1.5rem;
    }
    #banner .banner-with-background.banner-tax .banner-title .countdown-container .countdown span > .number {
        font-size: 3.125rem;
    }
    #banner .banner-with-background.banner-tax .banner-title .countdown-container .countdown > span {
        font-size: 1.125rem;
    }
}

@media screen and (min-width:768px) and (max-width:1023px) {
	#banner .banner-with-background.banner-tax.banner-tax-mwf .banner-title, 
	#banner .banner-with-background.banner-tax.banner-tax-mwf .banner-title span {
		font-size: 2.5rem;
		line-height: 1.25;
		text-align: center;
	}
	html[lang|="fr"] #banner .banner-with-background.banner-tax.banner-tax-mwf .banner-title {
		font-size: 1.625rem;
		line-height: 1;
	} 
	html[lang|="fr"] .banner-with-background.banner-tax.banner-tax-mwf .banner-title span {
		display: inline-block;
		font-size: 2rem;
		margin-bottom: 10px;
	}
    .banner-background img {
        object-position: 52% 0%;
	}
}

@media(min-width: 951px) {
    .countdown-container .countdown {
        flex-wrap: nowrap;
        max-width: 500px;
    }
    /* Countdown Banner title */
    #banner .banner-with-background.banner-tax .banner-title .countdown-container span {
        font-size: 2.25rem;
    }
    #banner .banner-with-background.banner-tax .banner-title .countdown-container .countdown span > .number {
        font-size: 4.0625rem;
        line-height: 0.8;
    }
    #banner .banner-with-background.banner-tax .banner-title .countdown-container .countdown > span {
        font-size: 1.6875rem;
    }
}

@media screen and (min-width:1024px){
    /* Countdown Banner title */
    #banner .banner-with-background.banner-tax .banner-title .countdown-container span {
        font-size: 2.75rem;
    }
    html[lang|="fr"] #banner .banner-with-background.banner-tax .banner-title .countdown-container span:not(.countdown span) {
        font-size: 2.25rem;
    }
}

@media screen and (min-width:1245px) {
    html[lang|="fr"] #banner .banner-with-background.banner-tax .banner-title .countdown-container span:not(.countdown span) {
        font-size: 2.5rem;
    }
}

/* Control */
@media screen and (min-width:768px) {
	#banner .banner-with-background.banner-tax .banner-title .control {
        font-size: 2.5rem;
		line-height: 1.1;
    }
    html[lang|="fr"] #banner .banner-with-background.banner-tax .banner-title .control {
        font-size: 1.5rem;
    }
    html[lang|="en"] #banner .banner-with-background.banner-tax .banner-title .control span {
		display: block;
	}
}

@media screen and (min-width:912px) {
	#banner .banner-with-background.banner-tax .banner-title .control {
		font-size: 3.125rem;
	}
    html[lang|="fr"] #banner .banner-with-background.banner-tax .banner-title .control,
    html[lang|="fr"] #banner .banner-with-background.banner-tax .banner-title .control span {
        font-size: 2.125rem;
    }
}

@media screen and (min-width:951px) {
    #banner .banner-with-background.banner-tax .banner-title .control,
    #banner .banner-with-background.banner-tax .banner-title .control span {
        font-size: 2.125rem;
    }
    html[lang|="fr"] #banner .banner-with-background.banner-tax .banner-title .control,
    html[lang|="fr"] #banner .banner-with-background.banner-tax .banner-title .control span {
        font-size: 2.25rem;
    }
    html[lang|="fr"] #banner .banner-with-background.banner-tax .banner-title .control span {
		display: block;
	}
}

@media screen and (min-width:1024px) {
    html[lang|="fr"] #banner .banner-with-background.banner-tax .banner-title .control,
    html[lang|="fr"] #banner .banner-with-background.banner-tax .banner-title .control span {
        font-size: 2.5rem;
    }
}

@media screen and (max-width:767px) {
    #banner .banner-with-background.banner-tax .banner-title .control {
        line-height: 1.25;
    }
}

.tax-credit .banner-title .test {
    display: inline;
    /* ^ Javascript will change this value */
}

.tax-credit .banner-title:has(.control) .test {
    display: none;
    /* ^ Javascript will change this value */
}

/* INTRO */
.intro-tax .banner-title,
.intro-tax h2,
.intro-tax .h2 {
	font-weight: 400;
}

#intro .content-item-description p:last-of-type {
    margin-bottom: 2rem;
}

@media screen and (min-width: 768px) {
    #intro h2,
	#intro p {
		text-align: left;
	}
    #intro .content-item-description {
        display: flex;
        justify-content: space-between;
    }
    #intro .content-item-description .intro-copy-container:has( + .tax-calc) {
        text-align: left;
        min-width: calc(100% - 360px);
        width: 50%;
    }
    .content-item-description .intro-copy-container + .tax-calc {
		margin-left: 30px;
		min-width: 320px;
		width: 320px;
	}
}

@media screen and (min-width:1024px) {
    #intro .content-item-description .intro-copy-container:has( + .tax-calc) {
        min-width: inherit;
        width: calc(100% - 540px);
    }
    .content-item-description .intro-copy-container + .tax-calc {
        min-width: 540px;
        width: 540px;
    }
}

@media screen and (min-width:1245px) {
    #intro .content-item-description .intro-copy-container:has( + .tax-calc) {
        width: calc(100% - 540px);
    }
    .content-item-description .intro-copy-container + .tax-calc {
        min-width: 540px;
        width: 540px;
    }
}

/* Tax calculator css ~ campaigns/elements/tax-calculator.css */

/* VIDEO */
#media.video-tax-holiday {
    margin-bottom: 0;
}

@media screen and (max-width:767px) {
    #media.video-tax {
        padding: 30px 40px 0;
    }
    #media.video-tax .video-wrapper {
        margin-left: -40px;
        width: calc(100% + 80px);
    }
}

.video p {
    margin: 0 auto 1rem;
    max-width: 800px;
}

.arrow-down-container {
    margin-top: 30px;
}

.arrow-down {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary-red);
    height: 0;
    width: 0;
}

.arrow-down:hover,
.arrow-down:focus {
    border-top: 8px solid var(--secondary-red);
}

.arrow-down-container p {
    font-size: 1.25rem;
}



/* FINAL CTA */
.final-cta-tax .title-and-description {
	margin: 0 auto;
	max-width: 600px;
}

.final-cta-tax.blue-bg .title-and-description {
	max-width: 700px;
}

.final-cta-tax .image-container {
	margin: 0 auto 30px;
	max-width: 130px;
}

.final-cta.final-cta-tax.blue-bg {
    background: linear-gradient(180deg, #E5F2F6 42.4%, rgba(255, 255, 255, 0.00) 76.87%);
    margin-top: -310px;
    padding-top: 250px;
}

.final-cta.final-cta-tax.blue-bg .container {
    padding: 100px 40px;
}

.final-cta.final-cta-tax.blue-bg .h2 {
    margin-bottom: 2rem;
}

.final-cta.final-cta-tax.blue-bg .h2 .bold {
    display: block;
}

.final-cta.final-cta-tax.blue-bg .h2 + p {
    margin-bottom: 2rem;
}

@media screen and (min-width:1024px){
    .final-cta.final-cta-tax.blue-bg .container {
        padding: 160px 40px;
    }
}

@media screen and (max-width:767px) {
     .final-cta.final-cta-tax.blue-bg {
        margin-top: 0;
        padding-top: 0;
    }
    .final-cta.final-cta-tax.blue-bg .container {
       padding: 60px 30px 100px;
    }
    .final-cta.final-cta-tax.blue-bg .h2 {
    	font-size: 1.5625rem;
    }
    .final-cta.final-cta-tax.blue-bg .h2 .bold {
    	font-size: 1.5rem;
    }
}

/* NEWSLETTER  */
.signup {
    margin-top: 0;
}
