.contact-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    --threshold: 30rem;
    margin-top: 40px;
}

.contact-cards>* {
    flex-grow: 1;
    flex-basis: calc(var(--threshold) - 100%) * 9999;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 3px solid var(--brand);
    border-radius: 1rem;
    position: relative;
}

.contact-card__badge {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    margin: 0 auto;
}

.contact-card__text {
    flex-basis: 90%;
}

.contact-card__text>* {
    margin: 0;
}

.contact-card__text a {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand);
}

.contact-card__text a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

@media (any-hover: hover) {
    .contact-card._tel:hover {
        background: rgba(166, 211, 154, 0.4);
    }

    .contact-card._email:hover {
        background: rgba(246, 192, 206, 0.4);
    }
}

/* Form layout */
.form {
    margin-top: 40px;
}

.form__inner {
    max-width: 100%;
    width: 830px;
    padding: 20px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);
    margin: 40px auto 0;
}

.form__inner .section__head {
    margin: 0 0 40px;
    text-align: center;
}

.form__inner .section__head .section__title {
    font-size: 28px;
    margin-bottom: 12px;
}

.form__inner .section__head .section__subtitle {
    font-size: 16px;
    line-height: 1.8;
}

.required-text {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.6;
}

.required-badge {
    color: #e7000b;
}

/* Static HTML form fallback (contact.html) */
.form__item {
    margin-bottom: 20px;
}

.form__label {
    font-weight: 700;
    margin-bottom: 8px;
}

.form__label label {
    vertical-align: middle;
}

.form__inner .form__input input[type="text"],
.form__inner .form__input input[type="email"],
.form__inner .form__input input[type="tel"],
.form__inner .form__input textarea {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid #d1d5dc;
    background: #f4f8ff;
}

.form__link {
    color: #e7000b;
    text-decoration: underline;
}

.form__btn {
    width: 100%;
    margin-top: 32px;
}

.form__bottom {
    margin: 40px auto 0;
    width: max-content;
    max-width: 100%;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
}

/* Thanks page */
.thanks {
    text-align: center;
}

.thanks__body {
    display: grid;
    gap: 20px;
}

.thanks__body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
}

.thanks__actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.thanks__btn {
    min-width: 280px;
    width: 100%;
    max-width: 100%;
    padding: 14px 24px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .contact-cards {
        margin-top: 80px;
    }

    .form {
        margin-top: 80px;
    }

    .form__inner {
        padding: 40px 48px 48px;
    }

    .form__inner .section__head {
        margin-bottom: 48px;
    }

    .form__inner .section__head .section__title {
        font-size: 32px;
    }

    .form__bottom {
        margin: 80px auto 0;
    }

    .thanks__body p {
        text-align: center;
    }

    .thanks__btn {
        width: auto;
        min-width: 320px;
    }
}

@media (max-width: 767px) {
    .form__inner {
        padding: 24px 20px 32px;
    }

    .form__inner .section__head .section__title {
        font-size: 24px;
    }

    .form__bottom {
        width: 100%;
        padding-inline: 8px;
        font-size: 15px;
    }
}

input[type="checkbox"]{
    width:20px;
    height:20px;
    accent-color:#111;
}