/* UNSA Newsletter — formulaire d'inscription */
.unsa-nl-card {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    max-width: 520px;
    width: 100%;
    margin: 24px auto;
    color: #0f172a;
    box-sizing: border-box;
}

.unsa-nl-card *, .unsa-nl-card *::before, .unsa-nl-card *::after { box-sizing: border-box; }

.unsa-nl-card__head { text-align: center; margin-bottom: 22px; }

.unsa-nl-badge {
    display: inline-block;
    background: rgba(0, 158, 224, 0.12);
    color: #009ee0;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.unsa-nl-title {
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 8px;
    font-weight: 700;
    color: #0f172a;
}

.unsa-nl-subtitle {
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    color: #475569;
}

.unsa-nl-form {
    position: relative;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.unsa-nl-field { display: flex; flex-direction: column; gap: 6px; }

.unsa-nl-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.unsa-nl-req { color: #ef4444; font-weight: 700; }

.unsa-nl-field input[type="text"],
.unsa-nl-field input[type="email"] {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 16px;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.unsa-nl-field input:focus {
    outline: none;
    border-color: #009ee0;
    box-shadow: 0 0 0 4px rgba(0, 158, 224, 0.12);
}

.unsa-nl-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #475569;
    cursor: pointer;
    padding: 4px 0;
}

.unsa-nl-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #009ee0;
}

.unsa-nl-submit {
    background: #009ee0;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.unsa-nl-submit:hover { background: #0085bf; }
.unsa-nl-submit:active { transform: translateY(1px); }
.unsa-nl-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.unsa-nl-submit__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: unsa-nl-spin 0.8s linear infinite;
}

.unsa-nl-submit.is-loading .unsa-nl-submit__spinner { display: inline-block; }
.unsa-nl-submit.is-loading .unsa-nl-submit__label { opacity: 0.7; }

@keyframes unsa-nl-spin { to { transform: rotate(360deg); } }

.unsa-nl-message {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 4px;
    padding: 0;
    border-radius: 10px;
    transition: padding 0.15s;
}

.unsa-nl-message.is-success {
    background: #ecfdf5;
    color: #065f46;
    padding: 12px 14px;
}

.unsa-nl-message.is-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 14px;
}

.unsa-nl-rgpd-foot {
    margin-top: 18px;
    font-size: 11.5px;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}

.unsa-nl-rgpd-foot a { color: #009ee0; text-decoration: none; }
.unsa-nl-rgpd-foot a:hover { text-decoration: underline; }

/* Page de confirmation (standalone) */
.unsa-nl-confirm-wrap {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8fafc;
}

.unsa-nl-confirm-card {
    background: #fff;
    border-radius: 18px;
    padding: 48px 36px;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
}

.unsa-nl-confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(0, 158, 224, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #009ee0;
}

.unsa-nl-confirm-card h1 {
    font-size: 24px;
    margin: 0 0 12px;
    color: #0f172a;
    font-weight: 700;
}

.unsa-nl-confirm-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 8px;
}

@media (max-width: 540px) {
    .unsa-nl-card { padding: 24px 20px; border-radius: 14px; }
    .unsa-nl-title { font-size: 19px; }
}
