/* Shared UI that lives outside the per-page <style> blocks: cookie banner and
   contact-form states. Uses the same :root tokens the pages already define. */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: var(--color-white, #FFFFFF);
    border-top: 1px solid var(--color-linen, #ECEAE5);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    padding: 20px 0;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.cookie-banner-text {
    margin: 0;
    font-size: 14px;
    max-width: 640px;
    color: #424843;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-banner-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
}

.cookie-banner-link {
    font-size: 14px;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        padding: 0 24px;
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-banner-actions {
        width: 100%;
    }
    .cookie-banner-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* Contact form: consent checkbox + submit status ---------------------------- */

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: var(--spacing-md, 24px);
    color: #424843;
}

.form-consent input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--color-deep-forest-green, #0B2618);
}

/* Honeypot: never shown to a human, never focusable. Bots that fill every
   field in the DOM get their submission rejected by FormSubmit. */
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin: var(--spacing-sm, 12px) 0 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

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

.form-status.is-ok {
    color: var(--color-deep-forest-green, #0B2618);
}

.form-status.is-error {
    color: #B3261E;
}

.form-status.is-pending {
    color: #424843;
}

button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
