:root {
    --color-green: #41AD6B;
    --color-green-dark: #5C935C;
    --color-input-bg: #F1F1F1;
}

.w-max-1640 {
    max-width: 1700px;
    padding-left: 30px;
    padding-right: 30px;
}

.w-max-1220 {
    max-width: 1280px;
    padding-left: 30px;
    padding-right: 30px;
}

/* ---------- shared ---------- */

.c-kicker {
    display: block;
    font-family: 'Poppins SemiBold', sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #837454;
    margin-bottom: 12px;
}

.c-btn-green {
    background: var(--color-green);
    color: #ffffff;
    font-family: 'Poppins Medium', sans-serif;
    font-size: 17px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 15px;
    padding: 12px 24px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.c-apply-form .popup-submit.c-btn-green {
    padding: 15px 24px;
    min-width: 353px;
}
.c-af-note {
    margin: 0 auto;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin-top: 36px;
}
.c-btn-green:hover {
    filter: brightness(0.85);
}

.c-btn-sm {
    padding: 10px 24px;
    font-size: 17px;
}

.c-btn-outline-white {
    background: transparent;
    color: #ffffff;
    font-family: 'Poppins Medium', sans-serif;
    font-size: 17px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #ffffff;
    border-radius: 15px;
    padding: 12px 24px;
    transition: all 0.3s;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-btn-outline-white:hover {
    background: #41AD6B;
    border: 1px solid transparent;
    color: #fff;
}

/* ---------- header ---------- */

.c-header {
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    padding: 28px 0;
    position: relative;
    z-index: 10;
}


header .menu-desktop.c-top-nav .nav-items a.c-btn-green {
    color: #ffffff;
    background: var(--color-green);
}

header .menu-desktop.c-top-nav .nav-items a.c-btn-green:hover {
    filter: brightness(0.85);
}

.c-burger span {
    background: var(--color-dark-grey);
}

/* ---------- hero ---------- */

.c-hero {
    /* TODO: export hero photo from the XD mockup to /img/contractor/hero.jpg */
    background: #1a1a1a url('../img/contractor/Contractor-Banner.jpg') right center / cover no-repeat;
    padding: 16.5% 0 0;
}

.c-owner-link {
    position: absolute;
    top: 12px;
    right: 0;
    background: #000000;
    color: #ffffff;
    font-size: 13px;
    text-decoration: underline;
    padding: 8px 16px;
}

.c-owner-link:hover {
    color: var(--color-gold);
}

.c-hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.c-hero-content h1 {
    font-size: 60px;
    line-height: 72px;
    margin-bottom: 30px;
}

.c-hero-content p {
    font-size: 22px;
    line-height: 30px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.c-hero-buttons {
    padding-bottom: 64px;
}

.c-hero-services {
    list-style: none;
    padding: 26px 30px 50px;
    margin: 0 auto;
}

.c-hero-services li {
    color: var(--color-gold);
    font-family: 'Poppins Medium', sans-serif;
    font-size: 18px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ---------- stats ---------- */

.c-stats {
    padding: 60px 0;
}

.c-stat-value {
    font-family: 'Poppins SemiBold', sans-serif;
    font-size: 50px;
    line-height: 64px;
    color: var(--color-dark-gold);
}

.c-stat-value sup {
    font-size: 24px;
    top: -14px;
}

.c-stat p {
    font-family: 'Poppins SemiBold', sans-serif;
    font-size: 22px;
    line-height: 31px;
    color: var(--color-dark-grey);
    margin: 10px 0 0;
}

/* ---------- why join ---------- */

.c-why {
    padding: 90px 0;
}

.c-why-text {
    flex: 1;
}

.c-why-text h2 {
    font-size: 48px;
    line-height: 58px;
    margin-bottom: 24px;
}

.c-why-text p {
    font-size: 22px;
    line-height: 32px;
    max-width: 613px;
    margin: 0 auto 36px;
}

.c-why-image {
    flex: 1.2;
}

.c-why-image img {
    max-width: 100%;
    height: auto;
}

.c-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 80px;
}

.c-benefit-card {
    background: #ffffff;
    padding: 36px 32px 70px;
    text-align: left;
}
.c-benefit-card .c-kicker {
    font-size: 16px;
    margin-bottom: 48px;
}

.c-benefit-card h3 {
    font-family: 'Poppins SemiBold', sans-serif;
    font-size: 32px;
    line-height: 42px;
    color: var(--color-dark-grey);
    margin-bottom: 18px;
}

.c-benefit-card p {
    font-size: 20px;
    line-height: 30px;
    color: #222222;
    margin: 0;
}

/* ---------- how it works ---------- */

.c-how {
    padding: 90px 0;
}

.c-how h2 {
    font-size: 45px;
    line-height: 52px;
    margin-bottom: 16px;
}

.c-how-sub {
    font-size: 22px;
    margin-bottom: 50px;
    font-weight: 300;
}

.c-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.c-step-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 80px 40px 32px;
}

.c-step-card .c-kicker {
    color: var(--color-gold);
}

.c-step-card h3 {
    font-family: 'Poppins SemiBold', sans-serif;
    font-size: 30px;
    line-height: 30px;
    margin-bottom: 22px;
}

.c-step-card p {
    font-size: 22px;
    line-height: 34px;
    color: #FFFFFF;
    margin-bottom: 50px;
}

.c-step-label {
    margin-top: auto;
    font-family: 'Poppins Medium', sans-serif;
    font-size: 18px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-gold);
}

/* ---------- requirements ---------- */

.c-requirements {
    padding: 90px 0;
}

.c-req-intro {
    flex: 1;
}

.c-req-intro .c-kicker {
    color: var(--color-dark-grey);
}

.c-req-intro h2 {
    font-size: 48px;
    line-height: 58px;
    margin-bottom: 20px;
}

.c-req-intro > p {
    font-size: 22px;
    line-height: 32px;
    max-width: 550px;
    margin: 0 auto 36px;
}

.c-badge {
    margin-bottom: 30px;
}

.c-badge-caption {
    font-size: 15px;
    line-height: 24px;
    max-width: 420px;
    margin: 0 auto;
}

.c-req-list {
    flex: 1;
    background: #ffffff;
    padding: 70px 45px;
}

.c-req-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.c-req-item:last-child {
    margin-bottom: 0;
}

.c-check {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--color-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.c-req-item h3 {
    font-family: 'Poppins SemiBold', sans-serif;
    font-size: 22px;
    line-height: 24px;
    color: var(--color-dark-grey);
    margin-bottom: 6px;
}

.c-req-item p {
    font-size: 22px;
    line-height: 32px;
    color: #555555;
    margin: 0;
}

/* ---------- apply ---------- */

.c-apply {
    padding: 90px 0;
}

.c-apply h2 {
    font-size: 50px;
    margin-bottom: 44px;
}

.c-apply > div p.c-apply-sub {
    font-size: 48px;
    line-height: 58px;
    margin-bottom: 30px;
}

.c-apply > div > p {
    font-size: 22px;
    line-height: 32px;
    max-width: 830px;
    margin: 0 auto;
}

.c-apply-perks {
    margin: 34px 0 50px;
}

.c-apply-perk {
    background: var(--color-input-bg);
    padding: 40px 20px;
    min-width: 210px;
    width: 100%;
}

.c-apply-perk h3 {
    font-family: 'Poppins SemiBold', sans-serif;
    font-size: 28px;
    color: var(--color-dark-grey);
    margin-bottom: 16px;
}

.c-apply-perk p {
    font-size: 18px;
    color: #222222;
    margin: 0;
}

.c-apply-form {
    max-width: 1048px;
    margin: 0 auto;
}

.c-form-note {
    font-family: 'Poppins SemiBold', sans-serif;
    font-size: 16px;
    color: var(--color-dark-grey);
    margin-top: 24px;
}

/* ---------- contractor application form ---------- */

.c-af-label {
    display: block;
    font-family: 'Poppins SemiBold', sans-serif;
    font-size: 14px;
    color: var(--color-dark-grey);
    margin-bottom: 6px;
    padding-left: 24px;
}
.c-apply-form .form-control {
    border:none;
    background: #F7F7F7;
    border-radius: 15px;
    font-size: 17px;
    color: #000000;
    padding: 18px 24px;
}
.c-apply-form .form-control::placeholder {
    color: #000000;
}

.c-apply-form select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23333' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
}
.c-af-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
    padding-left: 4px;
}

@media (max-width: 767px) {
    .c-af-services {
        grid-template-columns: 1fr;
    }
}

.c-af-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: var(--color-dark-grey);
    cursor: pointer;
    user-select: none;
}

.c-af-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.c-af-check-box {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2px solid #C9C9C9;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.c-af-check input:checked + .c-af-check-box {
    background: var(--color-green);
    border-color: var(--color-green);
}

.c-af-check input:checked + .c-af-check-box::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- faq ---------- */

.c-faq {
    padding: 90px 0;
}

.c-faq h2 {
    font-size: 50px;
    margin-bottom: 44px;
}

.c-faq-item {
    background: #ffffff;
    margin-bottom: 12px;
}

.c-faq-question {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    font-family: 'Poppins SemiBold', sans-serif;
    font-size: 22px;
    line-height: 32px;
    color: var(--color-dark-grey);
    padding: 36px 30px 36px 70px;
    position: relative;
    cursor: pointer;
}

.c-faq-question::before {
    content: '';
    position: absolute;
    left: 36px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 3px solid var(--color-dark-grey);
    border-bottom: 3px solid var(--color-dark-grey);
    transform: translateY(-60%) rotate(-45deg);
    transition: transform 0.2s;
}

.c-faq-item.open .c-faq-question::before {
    transform: translateY(-60%) rotate(45deg);
}

.c-faq-answer {
    display: none;
    padding: 0 30px 36px 70px;
}

.c-faq-item.open .c-faq-answer {
    display: block;
}

.c-faq-answer p {
    font-size: 22px;
    line-height: 30px;
    color: #222222;
    margin: 0;
}

/* ---------- final cta ---------- */

.c-cta {
    padding: 0 30px 90px;
}

.c-cta-chip {
    display: inline-block;
    font-family: 'Poppins Medium', sans-serif;
    font-size: 17px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 22px;
    margin-bottom: 54px;
    width: 354px;
}

.c-cta h2 {
    font-size: 48px;
    line-height: 58px;
    margin-bottom: 32px;
}

.c-cta p {
    font-size: 22px;
    line-height: 32px;
    max-width: 830px;
    margin: 0 auto 50px;
}

/* ---------- about ---------- */

.c-about {
    /* TODO: export dark abstract background from the XD mockup to /img/contractor/about-bg.jpg */
    background: #0d0b08 url('../img/contractor/about-bg.png') center / cover no-repeat;
    padding: 110px 0;
}

.c-about h2 {
    font-size: 35px;
    line-height: 35px;
    margin-bottom: 26px;
}

.c-about p {
    font-size: 22px;
    line-height: 32px;
    margin-bottom: 40px;
}

.link-button {
    font-size: 17px;
    line-height: 26px;
    padding: 12px 33px;
    border: 1px solid #fff;
    color: #ffffff;
    font-family: 'Poppins Medium', sans-serif;
    text-decoration: none;
    transition: all 0.3s;
    background: transparent;
    min-width: 260px;
}

.link-button:hover {
    background: #41AD6B;
    border: 1px solid transparent;
    color: #fff;
}

/* ---------- footer ---------- */

.c-footer {
    padding: 40px 0 75px;
}

.c-footer-nav {
    list-style: none;
    padding: 0;
}

.c-footer-nav li a,
.c-footer-nav li button {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    padding: 0;
}

.c-footer-nav li a:hover,
.c-footer-nav li button:hover {
    color: var(--color-gold);
}

.footer-wrapper {
    row-gap: 30px !important;
}
.footer-wrapper nav {
    padding-left: 16px;
}

.footer-wrapper nav ul {
    flex-wrap: wrap;
}

.px-30 {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

/* ---------- responsive ---------- */
@media (min-width: 1024px) {
    .apply-button-wrapper {
        padding-top: 16px;
        text-align: right;
    }
}

@media (min-width: 1280px) {
    .apply-button-wrapper {
        padding-top: 0;
        margin-left: 34px;
    }

    .top-nav {
        display: flex;
        align-items: center;
        justify-content: end;
    }
}


@media (max-width: 1199px) {
    .c-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .c-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .c-hero {
        padding-top: 90px;
    }

    .c-hero-content h1 {
        font-size: 38px;
        line-height: 48px;
    }

    .c-hero-content p, .c-why-text ps {
        font-size: 16px;
        line-height: 25px;
    }
    .c-hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1;
        pointer-events: none;
    }
    .c-hero-content {
        z-index: 3;
        position: relative;
    }
    .c-owner-link {
        z-index: 3;
    }
    .c-hero-services {
        justify-content: center !important;
        gap: 14px 28px;
        z-index: 3;
        position: relative;
    }

    .c-why,
    .c-how,
    .c-requirements,
    .c-apply,
    .c-faq,
    .c-cta {
        padding: 60px 0;
    }

    .c-why-text h2,
    .c-cta h2,
    .c-how h2 {
        font-size: 30px;
        line-height: 40px;
    }

    .c-kicker {
        font-size: 15px;
    }

    .c-stat-value {
        font-size: 30px;
        line-height: 40px;
    }

    .c-stat-value sup {
        font-size: 18px;
    }

    .c-how-sub {
        font-size: 16px;
    }

    .c-benefit-card {
        padding-bottom: 36px;
    }

    .c-benefit-card .c-kicker {
        margin-bottom: 18px;
    }

    .c-benefit-card h3 {
        font-size: 22px;
        line-height: 30px;
    }

    .c-benefit-card p, .c-stat p {
        font-size: 15px;
        line-height: 24px;
    }

    .c-step-card {
        padding-top: 32px;
    }

    .c-step-card h3 {
        font-size: 22px;
    }

    .c-step-card p {
        font-size: 16px;
        line-height: 24px;
    }

    .c-step-label {
        font-size: 13px;
    }

    .c-req-intro h2 {
        font-size: 28px;
        line-height: 38px;
    }

    .c-req-intro > p {
        font-size: 16px;
        line-height: 26px;
    }

    .c-req-item h3 {
        font-size: 18px;
    }

    .c-req-item p {
        font-size: 16px;
        line-height: 26px;
    }

    .c-apply > div p.c-apply-sub {
        font-size: 26px;
        line-height: 36px;
    }

    .c-apply h2,
    .c-faq h2 {
        font-size: 32px;
    }

    .c-apply h2 {
        margin-bottom: 30px;
    }

    .c-apply > div > p {
        font-size: 16px;
        line-height: 26px;
    }

    .c-apply-perk h3 {
        font-size: 20px;
    }

    .c-faq-question {
        font-size: 16px;
        line-height: 26px;
        padding: 24px 24px 24px 52px;
    }

    .c-faq-question::before {
        left: 24px;
    }

    .c-faq-answer {
        padding: 0 24px 24px 52px;
    }

    .c-faq-answer p {
        font-size: 16px;
        line-height: 26px;
    }

    .c-cta p {
        font-size: 16px;
        line-height: 26px;
    }

    .c-about p {
        font-size: 16px;
        line-height: 26px;
    }

    .c-cta-chip {
        width: auto;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .c-hero {
        background: #1a1a1a url('../img/contractor/Contractor-Banner-mob.jpg') center / cover no-repeat;
    }

    .c-benefits {
        grid-template-columns: 1fr;
    }

    .c-steps {
        grid-template-columns: 1fr;
    }

    .c-form-grid {
        grid-template-columns: 1fr;
    }

    .c-services-grid {
        grid-template-columns: 1fr;
    }

    .c-req-list {
        padding: 32px 24px;
    }

    .c-cta {
        padding-left: 30px;
        padding-right: 30px;
    }

    .c-about {
        padding: 70px 0;
    }

    .c-about h2 {
        font-size: 24px;
        line-height: 34px;
    }
    .c-apply-form .form-control, .c-af-check{
        font-size: 16px;
    }
    .c-af-services {
        gap: 14px 24px;
    }
}

@media (min-width: 768px) {
    .c-hero .c-hero-buttons {
        gap: 54px !important;
    }
}