/* Modern Glassmorphism/Premium Styling for Universal Form Plugin */

.scfp-form-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08); /* Soft drop shadow */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid #eaeaea;
}

.scfp-frontend-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.scfp-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scfp-label {
    font-weight: 600;
    color: #333333;
    font-size: 0.95rem;
}

.scfp-req {
    color: #e53e3e; /* Red for required */
    margin-left: 3px;
}

.scfp-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #1f2937;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.scfp-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.scfp-textarea {
    resize: vertical;
    min-height: 120px;
}

.scfp-file {
    padding: 0.5rem;
    background: #ffffff;
}

/* Custom File Input Styling Optional Enhancement */
.scfp-file::file-selector-button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #e5e7eb;
    border: 1px solid #d1d5db;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 1rem;
}

.scfp-file::file-selector-button:hover {
    background: #d1d5db;
}

.scfp-btn-submit {
    background-color: #3b82f6; /* Modern Blue */
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    align-self: flex-start;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
}

.scfp-btn-submit:hover {
    background-color: #2563eb;
}

.scfp-btn-submit:active {
    transform: translateY(1px);
}

.scfp-alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.scfp-alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.scfp-error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-bottom: 1.5rem;
}

.scfp-alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.scfp-radio-group label, .scfp-checkbox-group label {
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: color 0.2s;
}

.scfp-radio-group label:hover, .scfp-checkbox-group label:hover {
    color: #1e293b;
}

.scfp-captcha-wrap span {
    display: inline-block;
    background: #f8fafc;
    border: 2px dashed #94a3b8;
    color: #334155;
    padding: 8px 16px;
    font-size: 20px;
    letter-spacing: 10px;
    border-radius: 6px;
    user-select: none;
    font-family: 'Courier New', Courier, monospace;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .scfp-form-wrapper {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    .scfp-btn-submit {
        width: 100%;
    }
}

/* --- Math CAPTCHA --- */
.scfp-captcha-box {
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    padding: 14px 16px;
}

.scfp-captcha-question {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.scfp-math-q {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #1e40af;
    letter-spacing: 2px;
    white-space: nowrap;
}

.scfp-captcha-input {
    width: 80px !important;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Error alert */
.scfp-alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}
