.pixelle-contact {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 36rem;
    margin: 0;
    color: var(--text-white, #fff);
}

.pixelle-contact__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pixelle-contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.85rem 1.75rem;
    width: 100%;
}

.pixelle-contact__field {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pixelle-contact__field.is-wide {
    grid-column: 1 / -1;
}

.pixelle-contact__pair {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0fr);
    column-gap: 0;
    align-items: start;
    min-width: 0;
    transition:
        grid-template-columns 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        column-gap 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pixelle-contact__pair.is-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1.75rem;
}

.pixelle-contact__field--reveal {
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    transform: translate3d(0.85rem, 0, 0);
    pointer-events: none;
    transition:
        opacity 0.4s ease 0.08s,
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.pixelle-contact__pair.is-split .pixelle-contact__field--reveal {
    overflow: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.pixelle-contact__field label {
    margin: 0 0 0.45em;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: inherit;
}

.pixelle-contact__labelrow {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: 0 0 0.45em;
}

.pixelle-contact__labelrow label {
    margin: 0;
}

.pixelle-contact__vies {
    display: inline-flex;
    flex: 0 0 auto;
    width: 0.95em;
    height: 0.95em;
    color: var(--light-green, #8ec581);
    opacity: 0;
    transform: scale(0.7) translate3d(0.2em, 0, 0);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.pixelle-contact__field.is-vies-ok .pixelle-contact__vies {
    opacity: 1;
    transform: none;
}

.pixelle-contact__vies svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pixelle-contact__vies-mark {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 18;
    stroke-dashoffset: 18;
}

.pixelle-contact__field.is-vies-ok .pixelle-contact__vies-mark {
    animation: pixelle-vies-draw 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.06s forwards;
}

.pixelle-contact__vies-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

@keyframes pixelle-vies-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.pixelle-contact__field input,
.pixelle-contact__field textarea,
.pixelle-contact__field select {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.2em 0 0.55em;
    border: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--text-white, #fff) 82%, transparent);
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: none !important;
    outline: none !important;
    resize: none;
    transition: border-color 0.25s ease;
}

.pixelle-contact__field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 1.4em;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 0.55em) 1em, calc(100% - 0.2em) 1em;
    background-size: 0.35em 0.35em, 0.35em 0.35em;
    background-repeat: no-repeat;
}

.pixelle-contact__field input:focus,
.pixelle-contact__field input:focus-visible,
.pixelle-contact__field textarea:focus,
.pixelle-contact__field textarea:focus-visible,
.pixelle-contact__field select:focus,
.pixelle-contact__field select:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.pixelle-contact__field input:-webkit-autofill,
.pixelle-contact__field input:-webkit-autofill:hover,
.pixelle-contact__field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-white, #fff);
    caret-color: var(--text-white, #fff);
    transition: background-color 9999s ease-out;
}

.pixelle-contact__field input:hover,
.pixelle-contact__field textarea:hover,
.pixelle-contact__field select:hover {
    border-bottom-color: var(--text-white, #fff);
}

.pixelle-contact__field input:focus,
.pixelle-contact__field textarea:focus,
.pixelle-contact__field select:focus {
    border-bottom-color: var(--light-green, #8ec581);
}

.pixelle-contact__field.is-invalid input,
.pixelle-contact__field.is-invalid textarea,
.pixelle-contact__field.is-invalid select {
    border-bottom-color: var(--gold, hsl(38 39% 55%));
}

.pixelle-contact__hint {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0.38em 0 0;
    font-size: 0.78rem;
    line-height: 1.3;
    color: var(--gold, hsl(38 39% 55%));
    opacity: 0;
    transform: translate3d(0, -0.25em, 0);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.pixelle-contact__field.is-invalid .pixelle-contact__hint {
    opacity: 1;
    transform: none;
}

.pixelle-contact__turnstile {
    margin: 1.5rem 0 0;
}

.pixelle-contact__error {
    min-height: 1.35em;
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--gold, hsl(38 39% 55%));
    opacity: 0;
    transform: translate3d(0, -0.2em, 0);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.pixelle-contact__error.is-on {
    opacity: 1;
    transform: none;
}

.pixelle-contact__submit {
    display: inline-grid;
    justify-items: center;
    align-items: center;
    align-self: stretch;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 2.1rem 0 0;
    padding: 0.72em 1.55em;
    border: 1px solid var(--text-white, #fff);
    border-radius: 999px;
    background: transparent;
    color: var(--text-white, #fff);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.45s ease, color 0.45s ease, background-color 0.45s ease,
        min-width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pixelle-contact__submit-idle,
.pixelle-contact__submit-ok {
    grid-area: 1 / 1;
    white-space: nowrap;
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pixelle-contact__submit-ok {
    opacity: 0;
    transform: translate3d(0, 0.45em, 0);
    pointer-events: none;
}

.pixelle-contact__submit:hover,
.pixelle-contact__submit:focus-visible {
    color: var(--light-green, #8ec581);
    border-color: var(--light-green, #8ec581);
}

.pixelle-contact__submit:focus-visible {
    outline: 2px solid var(--light-green, #8ec581);
    outline-offset: 3px;
}

.pixelle-contact__submit.is-busy {
    cursor: wait;
    opacity: 0.72;
}

.pixelle-contact__submit.is-sent {
    color: var(--light-green, #8ec581);
    border-color: var(--light-green, #8ec581);
    cursor: default;
}

.pixelle-contact__submit.is-sent .pixelle-contact__submit-idle {
    opacity: 0;
    transform: translate3d(0, -0.45em, 0);
}

.pixelle-contact__submit.is-sent .pixelle-contact__submit-ok {
    opacity: 1;
    transform: none;
}

.pixelle-contact.is-sent .pixelle-contact__field input,
.pixelle-contact.is-sent .pixelle-contact__field textarea,
.pixelle-contact.is-sent .pixelle-contact__field select {
    pointer-events: none;
}

.pixelle-contact__legal {
    margin: 0.95rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: color-mix(in srgb, var(--text-white, #fff) 72%, transparent);
}

.pixelle-contact__legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.pixelle-contact__legal a:hover,
.pixelle-contact__legal a:focus-visible {
    color: var(--light-green, #8ec581);
}

@media (max-width: 781px) {
    .pixelle-contact {
        max-width: none;
        width: 100%;
    }

    .pixelle-contact__grid {
        grid-template-columns: 1fr;
        gap: 1.45rem;
        width: 100%;
    }

    .pixelle-contact__pair {
        grid-template-columns: 1fr;
        grid-template-rows: auto 0fr;
        row-gap: 0;
        transition:
            grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1),
            row-gap 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .pixelle-contact__pair.is-split {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        row-gap: 1.45rem;
    }

    .pixelle-contact__field--reveal {
        min-height: 0;
        transform: translate3d(0, -0.45rem, 0);
    }

    .pixelle-contact__submit-ok {
        white-space: normal;
        text-align: center;
    }

    .pixelle-contact__legal {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pixelle-contact__pair,
    .pixelle-contact__field--reveal,
    .pixelle-contact__vies,
    .pixelle-contact__field input,
    .pixelle-contact__field textarea,
    .pixelle-contact__hint,
    .pixelle-contact__error,
    .pixelle-contact__submit,
    .pixelle-contact__submit-idle,
    .pixelle-contact__submit-ok {
        transition: none;
    }

    .pixelle-contact__field--reveal,
    .pixelle-contact__vies {
        transform: none;
    }

    .pixelle-contact__field.is-vies-ok .pixelle-contact__vies-mark {
        animation: none;
        stroke-dashoffset: 0;
    }
}
