.contact-form .container {
    width: 40rem;
}
.contact-form form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 1.5rem;
}
.contact-form .form-field {
    width: 100%;
}
.contact-form .form-field-half {
    width: 48%;
}
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: inherit;
    background-color: transparent;
    border: 2px solid #ccc;
    border-radius: 0;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    border-color: #000;
}
.contact-form fieldset {
    width: 100%;
    margin: 0;
    border: 2px solid #ccc;
}
.contact-form label, .contact-form legend {
    font-weight: 700;
}
.contact-form label {
    cursor: pointer;
}
.contact-form .input-group .wpcf7-form-control {
    display: flex;
    flex-direction: column;
    row-gap: 0.5rem;
}
.contact-form .wpcf7-list-item {
    margin: 0;
    display: block;
}
.contact-form .wpcf7-list-item label {
    font-weight: 400;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.contact-form .wpcf7-list-item label input {
    margin-top: 0.25rem;
}
.contact-form .wpcf7-list-item label span {
    width: calc(100% - 1.5rem);
}
.contact-form input[type="checkbox"], .contact-form input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    padding: 0;
    margin: 0;
    position: relative;
}
.contact-form input[type="radio"], .contact-form .radio-input input {
    border-radius: 100%;
}
.contact-form input[type="checkbox"]:checked, .contact-form input[type="radio"]:checked {
    background-color: #ccc;
    border-color: #000;
}
.contact-form input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0.18rem;
    top: 0;
    width: 0.25rem;
    height: 0.5rem;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotateZ(45deg);
}
.contact-form input[type="radio"]:checked::after, .contact-form .radio-input input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 0.125rem;
    top: 0.125rem;
    width: 0.5rem;
    height: 0.5rem;
    border: none;
    border-radius: 100%;
    background-color: #000;
}
.contact-form input[type="submit"] {
    width: auto;
    color: #fff;
    background-color: #000;
    border-color: #000;
    font-weight: 700;
    transition: all 0.2s;
    cursor: pointer;
}
.contact-form input[type="submit"]:hover, .contact-form input[type="submit"]:focus {
    color: #000;
    background-color: transparent;
}
.contact-form .submit-field {
    display: flex;
    align-items: center;
}
@media (max-width: 48em) {
    .contact-form .form-field-half {
        width: 100%;
    }
}