﻿/* Home hero banner styles */
.hero-banner-home {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.45) 100%), url("https://cdn.affinitydev.com/webmedia/dealers/banners/dealer-external-home-hero-banner.jpg") lightgray 50% / cover no-repeat;
    /*background-image: ;*/
    background-size: cover;
    background-position: center;
}

.hero-home-panel {
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.50);
    background: rgba(0, 0, 0, 0.50);
    color: white;
    backdrop-filter: blur(7.5px);
    padding: 24px;
}

.hero-banner-home .container {
    gap: 24px;
}

.hero-home-panel h1 {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 300;
    text-align: center;
    text-wrap: balance;
}

.hero-home-panel p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
}

.hero-home-panel h2 {
    font-weight: 700;
}

.hero-home-panel .form-control {
    border: 1px solid #FFF;
    background: rgba(255, 255, 255, 0.10);
    color: white;
    padding: 12px 16px;
}

.hero-home-panel .form-control::placeholder {
    color: #D7D7D7;
}

.hero-home-panel .form-control:focus::placeholder {
    color: dimgray;
}

.hero-home-panel .form-control:focus {
    background-color: white;
    border-color: darkgray;
    color: var(--bs-dark);
}

.hero-home-panel button:hover,
.hero-home-panel button:focus {
    box-shadow: none;
}

.hero-home-panel .btn-login {
    width: 100%;
    margin-bottom: 8px;
    color: white;
    font-weight: 500;
    padding: 12px;
}

.hero-home-panel .btn-back-to-login {
    background-color: black;
    border-color: white;
}

.hero-home-panel .btn-back-to-login:hover,
.hero-home-panel .btn-back-to-login:active,
.hero-home-panel .btn-back-to-login:focus {
    background-color: white;
    color: black;
}

/*
.hero-home-panel .btn-login:hover,
.hero-home-panel .btn-login:focus {
    background-color: #0F0F0F;
}*/

.hero-home-panel .btn-login-help {
    float: right;
    font-size: 12px;
    background-color: white;
    font-style: italic;
    padding: 4px 8px;
}

@media screen and (min-width: 768px) {
    .hero-banner-home .container {
        gap: 24px;
    }

    .hero-home-panel {
        flex-basis: 55%;
    }

    .hero-home-panel h1 {
        text-align: left;
        font-size: 28px;
        line-height: 36px;
    }

    .login-section {
        flex-basis: 45%;
    }
    
    .hero-home-panel .form-control {
        padding: 8px 12px;
    }

    .hero-home-panel .btn-login {
        margin-bottom: 8px;
        padding: 8px;
    }
}

@media screen and (min-width: 992px) {
    .hero-banner-home {
        padding: 220px 0;
    }

    .hero-banner-home.expand-height {
        min-height: calc(100vh - 201px);
    }

    .hero-banner-home .container {
        gap: 40px;
    }

    .hero-home-panel {
        flex-basis: 66%;
        padding: 56px 40px;
    }

    .hero-home-panel h1 {
        text-align: left;
        font-size: 32px;
        line-height: 48px;
    }

    .hero-home-panel p {
        font-size: 20px;
        line-height: 28px;
    }

    .login-section {
        flex-basis: 33%;
        max-width: 410px;
    }

    .hero-home-panel .btn-login {
        margin-bottom: 16px;
    }
}

@media screen and (min-width: 1200px) {
    .hero-banner-home .container {
        gap: 80px;
    }
    
    .hero-home-panel h1 {
        font-size: 48px;
        line-height: 60px;
    }
}

/* Sections */
.process-section {
    background-color: var(--dealer-lightgray);
    padding: 48px 24px;
}

.process-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.process-facts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.process-fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.fact-percent {
    color: #826400;
    font-size: 52px;
    line-height: 64px;
    font-weight: 700;
    margin: 0;
}

.fact-description {
    font-size: 20px;
    /*font-weight: 300;*/
    margin: 0;
    text-align: center;
    text-wrap: balance;
}

@media screen and (min-width: 768px) {
    .process-facts {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: start;
    }

    .fact-percent {
        font-size: 48px;
        line-height: 56px;
    }

    .process-fact {
        max-width: 33%;
        flex-basis: 33%;
        gap: 16px;
    }

    .process-section h2 {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .fact-description {
        font-size: 18px;
    }
}

@media screen and (min-width: 992px) {
    .process-section {
        padding: 100px;
    }

    .fact-percent {
        font-size: 64px;
    }

    .process-fact {
        max-width: 330px;
        gap: 24px;
    }

    .process-section h2 {
        font-size: 40px;
        margin-bottom: 40px;
    }
}

@media screen and (min-width: 992px) {
    .fact-description {
        font-size: 20px;
    }
}

@media screen and (min-width: 1800px) {
    .process-facts {
        gap: 40px;
    }
}

.program-features-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 60px 20px;
}

.program-feature {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    color: var(--dealer-darkblue);
    text-align: center;
}

.program-feature p {
    margin: 0;
}

.feature-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--dealer-darkblue);
    margin-bottom: 4px;
}

.feature-headline {
    font-size: 20px;
    font-weight: 500;
}

.feature-description {
    font-size: 18px;
}

@media screen and (min-width: 768px) {
    .program-features-section {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }

    .program-feature {
        flex-basis: calc(50% - 20px);
        max-width: 40%;
    }

    .feature-icon {
        width: 150px;
        height: 150px;
    }

    .feature-headline {
        font-size: 18px;
    }

    .feature-description {
        font-size: 16px;
        /*font-weight: 300;*/
    }
}

@media screen and (min-width: 992px) {
    .program-features-section {
        padding: 60px 40px;
        gap: 24px;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .program-feature {
        max-width: 300px;
    }
}

@media screen and (min-width: 1400px) {
    .feature-headline {
        font-size: 20px;
    }

    .feature-description {
        font-size: 18px;
    }
}

@media screen and (min-width: 1800px) {
    .program-features-section {
        padding: 100px 60px;
        gap: 80px;
    }

    .feature-icon {
        width: 200px;
        height: 200px;
    }
}

/* Validation for hero panel fields */
.hero-home-panel .form-error, .hero-home-panel .aspnetValidator {
    color: #ffa83d;
    font-weight: 500;
    font-size: 16px;
}
