.ttv-contact-form {
    display: grid;
    gap: 1.25rem;
    max-width: 46rem;
    margin-block: 1.5rem 3rem;
}

.ttv-contact-form__intro,
.ttv-contact-form__help {
    margin: 0;
    color: color-mix(in srgb, currentColor 72%, transparent);
    font-size: 0.9rem;
}

.ttv-contact-form__field {
    display: grid;
    gap: 0.45rem;
}

.ttv-contact-form label {
    font-weight: 650;
}

.ttv-contact-form input[type="text"],
.ttv-contact-form input[type="email"],
.ttv-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
    border-radius: 0.35rem;
    padding: 0.75rem 0.85rem;
    background: var(--wp--preset--color--base, #fff);
    color: inherit;
    font: inherit;
}

.ttv-contact-form input:focus-visible,
.ttv-contact-form textarea:focus-visible {
    outline: 3px solid color-mix(in srgb, currentColor 35%, transparent);
    outline-offset: 2px;
}

.ttv-contact-form__consent {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: start;
}

.ttv-contact-form__consent input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.25rem;
}

.ttv-contact-form__consent label {
    font-weight: 400;
}

.ttv-contact-form button {
    justify-self: start;
    border: 0;
    cursor: pointer;
}

.ttv-contact-form__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.ttv-contact-form__notice {
    max-width: 46rem;
    margin-block: 1rem 1.5rem;
    padding: 0.9rem 1rem;
    border: 2px solid currentColor;
    border-radius: 0.35rem;
}

.ttv-contact-form__notice p,
.ttv-contact-form__notice ul {
    margin-block: 0;
}

.ttv-contact-form__notice--success {
    color: #17643a;
    background: #edf9f1;
}

.ttv-contact-form__notice--test {
    color: #795600;
    background: #fff8df;
}

.ttv-contact-form__notice--error {
    color: #8a1c1c;
    background: #fff1f1;
}

@media (prefers-color-scheme: dark) {
    .ttv-contact-form__notice--success,
    .ttv-contact-form__notice--test,
    .ttv-contact-form__notice--error {
        background: transparent;
    }
}

