/* Contact layout from the updated design. Scoped to this template. */
body .contact-main.contact-main--refreshed {
    padding: clamp(200px, 23vw, 328px) 0 clamp(100px, 16vw, 230px);
}

body .contact-main--refreshed .contact-page {
    width: min(1000px, calc(100% - 48px));
}

body .contact-main--refreshed .contact-page h1 {
    width: auto;
    margin: 0 0 80px;
    padding-inline: 40px;
    font-size: clamp(48px, 4.5vw, 64px);
    line-height: 1;
}

body .contact-main--refreshed .contact-page .notion-cf7-form {
    gap: 0;
}

body .contact-main--refreshed .notion-cf7-form p {
    margin: 0;
}

body .contact-main--refreshed .contact-services-head {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 0 40px;
    padding-inline: 40px;
}

body .contact-main--refreshed .contact-services-head span {
    margin: 0;
    font-size: 18px;
}

body .contact-main--refreshed :is(.contact-services-head, .contact-budget-group) h2 {
    font-size: 32px;
    line-height: 1.1;
}

body .contact-main--refreshed .contact-choice-grid--services .wpcf7-form-control {
    max-width: 900px;
    gap: 24px 28px;
}

body .contact-main--refreshed .contact-choice-grid .wpcf7-list-item-label,
body .contact-main--refreshed .contact-fields :is(input, textarea) {
    border-color: rgba(217, 243, 230, 0.18);
    background:
        linear-gradient(145deg, rgba(211, 238, 226, 0.1), rgba(255, 255, 255, 0.025)),
        rgba(43, 51, 47, 0.64);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08), 0 6px 20px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

body .contact-main--refreshed .contact-choice-grid .wpcf7-list-item-label {
    min-height: 64px;
    padding-inline: 32px;
    color: #fff;
    font-size: 24px;
    font-weight: 400;
}

body .contact-main--refreshed .contact-choice-grid input:checked + .wpcf7-list-item-label {
    border-color: #48f597;
    background: #48f597;
    box-shadow: none;
    color: #062018;
}

body .contact-main--refreshed .contact-choice-grid input:focus-visible + .wpcf7-list-item-label {
    outline: 2px solid #48f597;
    outline-offset: 4px;
}

body .contact-main--refreshed .contact-page .contact-budget-group {
    gap: 36px;
    margin-top: 76px;
}

body .contact-main--refreshed .contact-budget-group h2 {
    padding-inline: 40px;
}

body .contact-main--refreshed .contact-choice-grid--budget .wpcf7-form-control {
    gap: 24px;
}

body .contact-main--refreshed .contact-choice-grid--budget .wpcf7-list-item-label {
    min-width: 160px;
    min-height: 60px;
    font-size: 23px;
}

body .contact-main--refreshed .contact-page .contact-fields {
    gap: 28px;
    margin: 28px 0 0;
}

body .contact-main--refreshed .contact-fields > p {
    display: contents;
}

body .contact-main--refreshed .contact-fields br {
    display: none;
}

body .contact-main--refreshed .contact-fields :is(input, textarea) {
    font-size: 24px;
    font-weight: 400;
}

body .contact-main--refreshed .contact-fields input {
    height: 64px;
    padding-inline: 38px;
}

body .contact-main--refreshed .contact-fields textarea {
    height: 212px;
    min-height: 212px;
    padding: 20px 38px;
    border-radius: 30px;
}

body .contact-main--refreshed .contact-fields :is(input, textarea):focus-visible {
    border-color: #4ac29a;
    outline: 2px solid rgba(74, 194, 154, 0.5);
    outline-offset: 2px;
}

body .contact-main--refreshed .contact-page .contact-submit-wrap {
    margin: 56px 0 0;
    padding-inline: 16px;
}

body .contact-main--refreshed .contact-submit-wrap input[type="submit"] {
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 8px 54px 8px 22px;
    border: 1px solid rgba(206, 233, 222, 0.22);
    border-bottom-color: rgba(206, 233, 222, 0.1);
    background:
        url("../images/contact-submit-arrow.svg") right 18px center / 20px 20px no-repeat,
        linear-gradient(180deg, rgba(188, 231, 211, 0.055), rgba(0, 0, 0, 0.18)),
        rgba(5, 15, 12, 0.72);
    box-shadow: inset 0 1px 1px rgba(224, 249, 237, 0.07), 0 0 28px rgba(74, 194, 154, 0.07);
    color: #fff;
    font-size: 26px;
    font-weight: 400;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

body .contact-main--refreshed .contact-submit-wrap input[type="submit"]:is(:hover, :focus-visible) {
    border-color: rgba(126, 217, 181, 0.5);
    box-shadow: 0 0 28px rgba(74, 194, 154, 0.14);
    transform: none;
}

body .contact-main--refreshed .contact-submit-wrap input[type="submit"]:focus-visible {
    outline: 2px solid #4ac29a;
    outline-offset: 4px;
}

body .contact-main--refreshed + .site-footer {
    margin-top: 0;
}

@media (max-width: 767px) {
    body:is(.page-template-page-contact, .page-template-page-contact-php) {
        background-size: auto 100%;
    }

    body .contact-main.contact-main--refreshed {
        padding: 144px 0 96px;
    }

    body .contact-main--refreshed .contact-page h1 {
        width: auto;
        margin-bottom: 48px;
        padding-inline: 0;
        font-size: clamp(40px, 10vw, 54px);
    }

    body .contact-main--refreshed .contact-services-head {
        margin-bottom: 26px;
        padding: 0;
    }

    body .contact-main--refreshed :is(.contact-services-head, .contact-budget-group) h2 {
        padding: 0;
        font-size: 25px;
    }

    body .contact-main--refreshed .contact-services-head span {
        font-size: 16px;
    }

    body .contact-main--refreshed .contact-choice-grid .wpcf7-form-control {
        gap: 12px 10px;
    }

    body .contact-main--refreshed .contact-choice-grid .wpcf7-list-item-label {
        min-height: 46px;
        padding-inline: 18px;
        font-size: 16px;
    }

    body .contact-main--refreshed .contact-page .contact-budget-group {
        gap: 24px;
        margin-top: 44px;
    }

    body .contact-main--refreshed .contact-choice-grid--budget .wpcf7-list-item-label {
        min-width: 0;
        padding-inline: 16px;
    }

    body .contact-main--refreshed .contact-page .contact-fields {
        gap: 18px;
        margin-top: 26px;
    }

    body .contact-main--refreshed .contact-fields input {
        height: 56px;
        padding-inline: 22px;
    }

    body .contact-main--refreshed .contact-fields textarea {
        height: 180px;
        min-height: 180px;
        padding: 18px 22px;
        border-radius: 24px;
    }

    body .contact-main--refreshed .contact-page .contact-submit-wrap {
        margin-top: 32px;
        padding: 0;
    }

    body .contact-main--refreshed .contact-submit-wrap input[type="submit"] {
        min-height: 44px;
    }
}
