/* Additions for the static licence form (hbz.css stays as delivered) */
:root {
    --error: #c0392b;
    --error-bg: #fdf0ee;
    --error-border: #f2c6c0;
    --success: #1f5a30;
    --success-bg: #eef7f0;
    --success-border: #c9e6d1;
}

.notice-wrap { text-align: center; }

.field-hint { margin: 6px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.field-error { margin: 6px 0 0; font-size: .82rem; font-weight: 500; color: var(--error); line-height: 1.45; }
.field-error::before { content: "! "; font-weight: 700; }

.form-control[aria-invalid="true"] { border-color: var(--error); }
.form-control[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(192, 57, 43, .14); }
.custom-control-input[aria-invalid="true"] ~ .custom-control-label::before { border-color: var(--error); }
.custom-control-label a { color: var(--blue); text-decoration: underline; }

.form-alert {
    margin-bottom: 16px; padding: 14px 16px; border-radius: 12px;
    background: var(--error-bg); border: 1px solid var(--error-border);
    color: var(--error); font-size: .9rem; line-height: 1.5;
}
.form-alert a { color: inherit; text-decoration: underline; }
.form-alert .ref { display: block; margin-top: 6px; font-size: .78rem; opacity: .8; }

/* Honeypot, invisible to people and screen readers */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.card--form .btn { position: relative; gap: 10px; }
.spinner {
    display: none; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
    animation: spin .8s linear infinite;
}
.btn[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
    padding: 22px; border-radius: 14px; outline: none;
    background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success);
}
.form-success svg { width: 32px; height: 32px; margin-bottom: 8px; }
.form-success h4 { margin: 0 0 6px; font-size: 1.1rem; color: var(--success); }
.form-success p { margin: 0; line-height: 1.6; }

[hidden] { display: none !important; }

/* Legal pages */
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1em; }
.legal h2 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.legal h3 { font-size: 1rem; margin: 1.4em 0 .4em; color: var(--text); }
.legal p { line-height: 1.7; color: var(--text); }
