.contact-form {
    width: min(100%, 52rem);
}

.contact-form__field {
    margin-bottom: 1rem;
}

.contact-form__field label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    padding: 1rem 1.15rem;
    border: 2px solid transparent;
    border-radius: 0.65rem;
    color: #fff;
    background: var(--acts-orange-light, #ff9f58);
    font: inherit;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.contact-form textarea {
    min-height: 9rem;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgb(255 255 255 / 88%);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid var(--acts-navy, #0f2d4e);
    outline-offset: 2px;
}

.contact-form__field--invalid input,
.contact-form__field--invalid textarea {
    border-color: #8b1a1a;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgb(255 255 255 / 30%);
}

.contact-form__error {
    display: block;
    min-height: 1.35rem;
    margin: 0.25rem 0 -0.35rem 0.25rem;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.contact-form__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.contact-form__status {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: 6rem;
    padding: 0.75rem 1.5rem;
    border: 0;
    border-radius: 0.65rem;
    color: #fff;
    background: var(--acts-orange-light, #ff9f58);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.contact-form__submit:hover:not(:disabled) {
    color: var(--acts-orange, #ed8434);
    background: #fff;
    transform: translateY(-1px);
}

.contact-form__submit:disabled {
    cursor: wait;
    opacity: 0.78;
}

.contact-form__spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgb(255 255 255 / 45%);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: contact-form-spin 700ms linear infinite;
}

.contact-form__form--submitting .contact-form__spinner {
    display: inline-block;
}

.contact-form__honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__success {
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 0.75rem;
    background: rgb(255 255 255 / 12%);
    text-align: center;
    box-shadow: 0 1rem 3rem rgb(139 64 10 / 16%);
}

.contact-form__success-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    color: var(--acts-orange, #ed8434);
    background: #fff;
    font-size: 1.8rem;
    font-weight: 800;
}

.contact-form__success h3 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-form__success p {
    margin: 0;
}

@keyframes contact-form-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-form input,
    .contact-form textarea,
    .contact-form__submit {
        transition: none;
    }

    .contact-form__spinner {
        animation-duration: 1.5s;
    }
}
