﻿:root {
    --dealer-lightgray: #EBEBEB;
    --dealer-red: #C20000;
    --dealer-darkblue: #00385D;
    --dealer-footerbg: #11161D;
}

/* Navbar styles */
.navbar {
    padding: 0;
}

.navbar-nav {
    background-color: var(--dealer-lightgray);
}

.navbar-light .navbar-nav .nav-link {
    color: black;
    font-size: 20px;
    line-height: 28px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: black;
    text-decoration: underline;
}

.nav-link.active {
    font-weight: bold;
}

.nav-item {
    align-self: stretch;
    text-align: center;
}

.nav-item:not(:first-child) {
    border-top: 1px solid black;
}

.nav-item .nav-link.nav-link-partner-with-us {
    background-color: var(--dealer-red);
    color: white;
    border-radius: 20px;
    padding: 8px 28px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.nav-item .nav-link.nav-link-partner-with-us:hover,
.nav-item .nav-link.nav-link-partner-with-us:focus {
    background-color: color-mix(in srgb, var(--dealer-red), black 20%);
    color: white;
    text-decoration: none;
}

@media screen and (min-width: 992px) {
    .navbar-nav {
        gap: 40px;
        background-color: white;
    }

    .nav-item {
        align-self: initial;
    }

    .nav-item:not(:first-child) {
        border-top: 0;
    }
}

/* hero banner styles */
.hero-banner {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media screen and (min-width: 992px) {
    .hero-banner { 
        min-height: 768px;
    }
}

/* goals - image and description pairs */
.goals-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 24px;
    background-color: var(--dealer-lightgray);
}

.goal-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.goal-image {
    border-radius: 4px;
    box-shadow: 0 0 10px -1px rgba(0, 0, 0, 0.30);
    contain: paint;
}

.goal-image img {
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1 / 0.9;
}

.goal-image .focus-left {
    object-position: left;
}

.goal-description {
    padding: 32px 28px 40px;
    border-radius: 4px;
    box-shadow: 0 0 10px -1px rgba(0, 0, 0, 0.30);
    background-color: white;
}

.goal-description p {
    font-weight: 400;
    font-size: 18px;
    margin: 0;
    text-wrap: wrap;
    text-wrap: pretty;
}

.goal-description .goal-description-heading {
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 16px;
}

@media screen and (min-width: 768px) {
    .goal-group {
        flex-direction: row;
        gap: 16px;
    }

    .goal-image {
        flex-basis: 51%;
    }
    
    .goal-image img {
        aspect-ratio: auto;
        object-fit: initial;
        object-position: initial;
    }

    .goal-description {
        flex-basis: 49%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 24px 32px;
    }

    .goal-description p {
        font-size: 12px;
    }

    .goal-description .goal-description-heading {
        font-size: 14px;
        margin-bottom: 8px;
    }
}

@media screen and (min-width: 992px) {
    .goals-section {
        padding: 100px 64px;
        gap: 80px;
        align-items: center;
    }

    .goal-group {
        gap: 24px;
    }
    
    .goal-description {
        padding: 40px;
    }

    .goal-description p {
        font-size: 16px;
    }

    .goal-description .goal-description-heading {
        font-size: 18px;
        margin-bottom: 12px;
    }
}

@media screen and (min-width: 1400px) {
    .goals-section {
        padding: 100px 80px;
    }

    .goal-description {
        padding: 44px 60px 44px 44px;
    }

    .goal-description p {
        font-size: 20px;
    }

    .goal-description .goal-description-heading {
        font-size: 24px;
        margin-bottom: 16px;
    }
}

/* join network section styles */
.join-section {
    background-color: var(--dealer-darkblue);
    padding: 32px 32px;
}

.join-section h2 {
    margin-bottom: 24px;
    text-align: center;
    color: white;
}

.join-form {
    background-color: #ECECEC;
    padding: 24px 24px;
    border-radius: 8px;
}

.join-form .row > [class*="col-"]:not(:last-child) {
    margin-bottom: 12px;
}

.join-form .row > div:last-child {
    margin-top: 4px;
}

.join-form label {
    font-weight: 700;
}

.join-form input, .join-form select {
    border: 1px solid #505050;
    margin: 0;
}

.join-form .btn {
    width: 100%;
    font-weight: 500;
}

.join-form-errors span {
   margin-bottom: 8px;
}

@media screen and (min-width: 768px) {
    .join-form .row > [class*="col-"]:last-child {
        margin-bottom: 12px;
    }
}

@media screen and (min-width: 992px) {
    .join-section {
        padding: 80px 40px;
    }

    .join-section h2 {
        margin-bottom: 64px;
    }

    .join-form {
        padding: 40px 32px;
    }
}

@media screen and (min-width: 1400px) {
    .join-form {
        max-width: 1200px;
    }

    .join-form .row > [class*="col-"]:not(:last-child),
    .join-form .row > [class*="col-"]:last-child {
        margin-bottom: 16px;
    }
}

/* Footer styles */
.footer {
    background-color: var(--dealer-footerbg);
    color: white;
    text-align: center;
    padding: 40px 32px;
    text-wrap: balance;
}

.footer .copyright {
    margin: 0;
    font-size: 14px;
    text-wrap: wrap;
}

/* Validation */
.join-form-errors .aspnetValidator, .join-form-errors span {
    color: var(--dealer-red);
    font-weight: 500;
}

input.dealer-input-error, select.dealer-input-error {
    border-color: var(--dealer-red);
}

label.dealer-label-error {
    color: var(--dealer-red);
}

/* Utility */
.text-pretty {
    text-wrap: pretty;
}

.text-balance {
    text-wrap: balance;
}