.wpcf7-form {
    height: calc(100vh - 140px);
}

.wpcf7-form br {
    display: none;
    margin-bottom: 27px;
}

.wpcf7-form :where(p, label) {
    font-size: 1em;
}

.invalid .wpcf7-response-output {
    display: none;
}

.form-label {
    display: flex;
    align-items: baseline;
    gap: 20px;
    line-height: 1;
}

.wpcf7-not-valid-tip {
    font-size: 18px;
    line-height: 1.5;
    padding: 3px 0;
}

.contact-text {
    flex: 0 0 auto;
    display: inline-block;
    font-size: 1em;
    line-height: 1.3;
    text-wrap: nowrap;
}

.wpcf7-form-control-wrap {
    flex: 0 0 40%;
}

.last-row {
    display: flex;
    align-items: baseline;
    gap: 36px;
}

.wpcf7-form-control {
    display: inline-block;
    max-width: 436px;
    width: 100%;
    padding: 0 0.3ch;
    font-size: 32px;
    line-height: 1;
    border-bottom: 1px solid #000;
    /* lift the fill line from the descender line up to the label baseline */
    position: relative;
    top: -0.28em;
}

.wpcf7-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    margin: 0;
}

.form-submit {
    display: inline-block;
    position: relative;
    /* sit the pill's bottom edge on the label baseline (cancels the submit's bottom padding) */
    top: -20px;
}

.wpcf7 form .wpcf7-response-output {
    border: none;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 24px;
}

input[type="submit"] {
    font-size: 0.3em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 19px 28px;
    border-radius: 50%;
    border: 1px solid #000;
    cursor: pointer;
    transition: all 0.15s ease-out;
}

@media (hover: hover) {
    input[type="submit"]:hover {
        background-color: #000;
        color: #fff;
    }
}

input[type="submit"]:active {
    background-color: #000;
    color: #fff;
}

@media (max-width: 767px) {
    .last-row,
    .form-label {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        margin-bottom: 32px;
    }

    .wpcf7-form-control {
        font-size: 1em;
        max-width: 100%;
    }

    .wpcf7-form-control-wrap {
        flex: 0 0 auto;
        font-size: 0.5em;
    }

    .form-submit {
        top: 0;
        padding: 0;
        margin-left: auto;
    }
}


