/* Núcleo — contact: CSS estrutural mínimo (o tema define o aspeto). */
.nc-form { position: relative; }
.nc-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.nc-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.nc-field--full { grid-column: 1 / -1; }
.nc-input, .nc-select, .nc-textarea { width: 100%; box-sizing: border-box; font: inherit; }
.nc-textarea { resize: vertical; min-height: 8rem; }
.nc-check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.nc-check input { margin-top: .25em; flex: 0 0 auto; }
.nc-field__error:empty { display: none; }
.nc-field__error { margin: 0; font-size: .875em; }
[aria-invalid="true"] { outline-offset: 1px; }
.nc-form__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.nc-form__status { margin: 0; min-height: 1.5em; }
.nc-form__status[data-state="loading"]::before { content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .5em; vertical-align: -.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: nc-spin .8s linear infinite; }
.nc-form[aria-busy="true"] .nc-btn { cursor: progress; }
.nc-btn[disabled] { opacity: .7; }
.nc-form__note { font-size: .85em; opacity: .75; }
/* honeypot: fora do ecrã, invisível para leitores de ecrã e teclado */
.nc-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@keyframes nc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nc-form__status[data-state="loading"]::before { animation: none; } }
@media (max-width: 640px) { .nc-form__grid { grid-template-columns: 1fr; } }

/* página autónoma (confirmação de e-mail / sem JS) */
.nc-notice-page { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #0b0f14; color: #e6edf3; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.nc-notice { max-width: 560px; margin: 1.5rem; padding: 2rem; border: 1px solid #1f2a36; border-radius: 16px; background: #111821; line-height: 1.6; }
.nc-notice__brand { font-family: ui-monospace, Menlo, monospace; color: #7cff6b; margin: 0 0 1rem; }
.nc-notice__title { margin: 0 0 .75rem; font-size: 1.6rem; }
.nc-notice[data-state="error"] .nc-notice__title { color: #ff8a8a; }
.nc-notice a { color: #7cff6b; }
.nc-notice .nc-btn { display: inline-block; padding: .7rem 1.2rem; border-radius: 10px; background: #7cff6b; color: #0b0f14; text-decoration: none; font-weight: 700; }
