/* css/contact_form.css — Formulare (Werk-Anfrage alexzerr, Widerrufsbutton xxl-art + alexzerr), liegt in xxl-art.
   Gleiche Linie wie die Buttons: eckig, schwarz, Gesso-Hintergrund.
   Farben aus site.css von alexzerr; xxl-art kennt die Variablen nicht, darum steht der Wert dahinter. */

/* Zweiter Button: Rahmen statt Fläche — neben dem schwarzen Warenkorb-Button */
.button-outline {
    background: transparent;
    color: var(--ink, #111214);
    box-shadow: inset 0 0 0 1px var(--ink, #111214);
}

.button-outline:hover {
    background: var(--ink, #111214);
    color: var(--button-fg, #ffffff);
}

/* Aufklapper */
.artwork-inquiry {
    margin: 0 0 32px;
}

.artwork-inquiry > summary {
    list-style: none;
    user-select: none;
}

.artwork-inquiry > summary::-webkit-details-marker {
    display: none;
}

.artwork-inquiry[open] > summary.button-outline {
    background: var(--ink, #111214);
    color: var(--button-fg, #ffffff);
}

.artwork-inquiry-box {
    padding: 24px 0 0;
}

.artwork-inquiry[open] .artwork-inquiry-box {
    animation: contact-form-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes contact-form-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Formular */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 440px;
}

.contact-form-subject {
    margin: 0 0 20px;
    padding: 12px 0;
    border-top: 1px solid var(--rule, #d6d6d1);
    border-bottom: 1px solid var(--rule, #d6d6d1);
    font-size: 15px;
}

.contact-form-subject-label {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    color: var(--graphite, #6b7077);
}

.contact-form-label {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--graphite, #6b7077);
}

.contact-form-input {
    width: 100%;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--rule, #d6d6d1);
    border-radius: 0;
    background: var(--white, #ffffff);
    color: var(--paynes-grey, #23282e);
    font-family: var(--font, inherit);
    font-size: 16px;   /* 16px: iOS zoomt sonst beim Antippen */
}

.contact-form-input:focus {
    border-color: var(--ink, #111214);
    outline: none;
}

.contact-form-input:focus-visible {
    outline: 2px solid var(--ultramarine, #2b3fd6);
    outline-offset: 2px;
}

.contact-form-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Honeypot: aus dem Bild geschoben (nicht display:none — manche Bots überspringen das) */
.contact-form-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form-submit {
    gap: 12px;
    width: 100%;
}

.contact-form-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: contact-form-spin 0.8s linear infinite;
}

.contact-form.is-loading .contact-form-spinner {
    display: inline-block;
}

.contact-form.is-loading .contact-form-submit:disabled {
    opacity: 1;
    cursor: progress;
}

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

.contact-form-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 3px solid var(--ink, #111214);
    background: var(--mat, #e6e6e1);
    font-size: 14px;
}

.contact-form-success {
    margin: 0;
    padding: 20px 0;
    border-top: 1px solid var(--rule, #d6d6d1);
    border-bottom: 1px solid var(--rule, #d6d6d1);
    font-size: 17px;
}

.contact-form-success:focus {
    outline: none;
}

.contact-form-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--graphite, #6b7077);
}

@media (prefers-reduced-motion: reduce) {
    .artwork-inquiry[open] .artwork-inquiry-box {
        animation: none;
    }
}
