/* Forms of the exhibitor inquiry (/xx/aussteller#inquiry-form) and the contact page, one look for
   both (E2E P2a, E19/W-12; moved here from exhibitors.css). Field errors: form-errors.js. */
.inquiry-form {
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 18px;
    padding: clamp(20px, 4vw, 34px);
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
    align-content: start;
    display: grid;
    gap: 7px;
    min-width: 0;
}

.form-field label,
.form-checkbox {
    color: var(--color-ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field select,
.form-field textarea {
    background: #fff;
    border: 1px solid var(--color-field);
    border-radius: var(--radius-sm);
    color: var(--color-ink);
    font: inherit;
    min-height: 46px;
    padding: 0.76rem 0.85rem;
    width: 100%;
}

.form-field input:not([type="checkbox"]):not([type="radio"]):focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--color-ink);
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.form-field textarea {
    min-height: 130px;
    resize: vertical;
}

.form-checkbox {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    line-height: 1.45;
}

.form-checkbox input {
    flex: 0 0 auto;
    height: 18px;
    margin: 2px 0 0;
    width: 18px;
}

.form-checkbox span {
    font-weight: 700;
    min-width: 0;
}

/* Invalid field: red border and the message right below it (aria-describedby). */
.form-field [aria-invalid="true"]:not([type="checkbox"]) {
    border-color: #9d1241;
    box-shadow: 0 0 0 1px #9d1241;
}

.form-checkbox input[aria-invalid="true"] {
    outline: 2px solid #9d1241;
    outline-offset: 2px;
}

.form-field__error {
    color: #9d1241;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0;
}

.form-field__error[hidden] {
    display: none;
}

.form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.form-actions a {
    color: var(--color-muted);
    font-size: 0.92rem;
}

.form-status {
    border-radius: var(--radius-sm);
    font-weight: 700;
    margin: 0;
    padding: 12px 14px;
}

/* The contact form keeps its (empty) live region in the layout; it takes no space until used. */
.form-status:empty {
    padding: 0;
}

.form-status--success,
.form-status[data-state="success"] {
    background: rgba(39, 130, 75, 0.12);
    color: #1d6b3c;
}

.form-status--error,
.form-status[data-state="error"] {
    background: rgba(217, 43, 107, 0.12);
    color: var(--color-magenta);
}

.form-status[data-state="loading"] {
    background: var(--color-soft);
    color: var(--color-ink-2);
}

@media (max-width: 620px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions,
    .form-actions .btn {
        width: 100%;
    }
}
