/* ============================================================
   Simple Contact Form – Front-end styles
   ============================================================ */

.scf-wrap {
    max-width: 640px;
    margin: 0 auto;
    font-family: inherit;
}

/* Notice banner */
.scf-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.scf-notice.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.scf-notice.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Fields */
.scf-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.scf-field label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #374151;
}

.scf-required {
    color: #dc2626;
    margin-left: 2px;
}

.scf-field input,
.scf-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
}

.scf-field input:focus,
.scf-field textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.scf-field input.scf-invalid,
.scf-field textarea.scf-invalid {
    border-color: #dc2626;
}

.scf-field-error {
    color: #dc2626;
    font-size: 0.82rem;
    margin-top: 4px;
    min-height: 1em;
}

/* Honeypot – completely hidden */
.scf-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.scf-submit-wrap {
    margin-top: 8px;
    text-align: center;
}

.scf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.scf-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.scf-btn:hover {
    background: #4f46e5;
}

.scf-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* RGPD notice */
.scf-rgpd {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #6366f1;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
}

.scf-rgpd svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    margin-top: 2px;
    color: #6366f1;
}

.scf-rgpd abbr {
    text-decoration: underline dotted;
    cursor: help;
}
.scf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: scf-spin 0.7s linear infinite;
}
@keyframes scf-spin {
    to { transform: rotate(360deg); }
}
