/* Contact form honeypot */
.contact-form__trap {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    pointer-events: none;
}

/* Main */

.contact-form {
    width: 100%;
    min-width: 0;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    margin-bottom: 1rem;
}

.contact-form__field input,
.contact-form__field textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font: inherit;
}

.contact-form__field textarea {
    resize: vertical;
}

.contact-form__field input,
.contact-form__field textarea,
.contact-form__submit {
    border-radius: 6px;
}

/* Error messages */
.contact-form__phone-error {
    color: #db2724;
    margin-block: 0.35rem 0;
}

/* Word and character counters ------------------------------------------------ */

.contact-form__counter {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.contact-form__counter.is-limit {
    font-weight: 600;
}

/* Media Queries ------------------------------------------------------------------ */

/* Tablets (48rem = 768px) */

@media (min-width: 48rem) {
    .contact-page {
        max-width: 40rem;
        margin-inline: auto;
    }
}