/* ── Synerise Forms — Frontend ───────────────────────── */

.snf-wrapper { max-width: 480px; font-family: inherit; }

.snf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.snf-field label { font-size: .875rem; font-weight: 600; color: #1a1a1a; }

.snf-required { color: #e53e3e; margin-left: 2px; }

.snf-field input[type="text"],
.snf-field input[type="email"],
.snf-field input[type="tel"],
.snf-field textarea {
    width: 100%; padding: 11px 14px; font-size: 1rem; font-family: inherit;
    border: 1.5px solid #d1d5db; border-radius: 6px; background: #fff; color: #1a1a1a;
    transition: border-color .18s, box-shadow .18s; box-sizing: border-box; -webkit-appearance: none;
}
.snf-field textarea { resize: vertical; min-height: 80px; }

.snf-field input:focus, .snf-field textarea:focus {
    outline: none; border-color: #111; box-shadow: 0 0 0 3px rgba(17,17,17,.08);
}
.snf-field input::placeholder, .snf-field textarea::placeholder { color: #9ca3af; }

.snf-field--error input, .snf-field--error textarea {
    border-color: #e53e3e; box-shadow: 0 0 0 3px rgba(229,62,62,.1);
}
.snf-field-error { font-size: .8rem; color: #e53e3e; min-height: 1em; display: block; }

.snf-checkbox-field label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.snf-checkbox-field input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; accent-color: #111; cursor: pointer; }
.snf-checkbox-label { font-size: .82rem; color: #4b5563; line-height: 1.5; }
.snf-checkbox-label a { color: #111; text-decoration: underline; }

.snf-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px 24px; margin-top: 4px; font-size: .95rem; font-weight: 700;
    font-family: inherit; letter-spacing: .03em; color: #fff; background: #111;
    border: none; border-radius: 6px; cursor: pointer; transition: background .18s, transform .1s;
    -webkit-appearance: none;
}
.snf-submit:hover:not(:disabled) { background: #333; }
.snf-submit:active:not(:disabled) { transform: scale(.98); }
.snf-submit:disabled { opacity: .6; cursor: not-allowed; }

.snf-submit-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: snf-spin .6s linear infinite; flex-shrink: 0; }
.snf-loading .snf-submit-spinner { display: block; }
.snf-loading .snf-submit-label { opacity: .7; }
@keyframes snf-spin { to { transform: rotate(360deg); } }

.snf-message { display: none; padding: 12px 16px; border-radius: 6px; font-size: .9rem; margin-top: 12px; line-height: 1.5; }
.snf-message--success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.snf-message--error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

@media (max-width: 480px) {
    .snf-wrapper { max-width: 100%; }
    .snf-field input, .snf-field textarea { font-size: 16px; }
}
