/**
 * SimpleFormSec Plugin Styles
 * 
 * CSS styles for the form-to-post 
 * These styles control the appearance and behavior of the form elements,
 * including layout, colors, animations, and responsive design
 */

/* Container styles - Sets maximum width and positioning */
.form-to-post-container {
    max-width: 600px;
    position: relative;
    top: -26px;
}

/* Heading styles */
.form-to-post-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

/* Form group styles - Each input field's wrapper with opacity animation setup */
.form-to-post-container .form-group {
    margin-bottom: 15px;
    opacity: 0;
}

/* Label styles */
.form-to-post-container .form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}
 
/* Input and textarea styles */
.form-to-post-container .form-group input[type="text"],
.form-to-post-container .form-group input[type="email"],
.form-to-post-container .form-group textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

/* Invalid input styles - Left empty, can be filled with validation styling */
.form-to-post-container .form-group input:invalid,
.form-to-post-container .form-group textarea:invalid {
    /* Add validation styles here if needed */
}

/* Honeypot field for spam prevention - Hidden from view */
.form-to-post-container .honeypot-field {
    display: none;
    position: absolute;
    left: -9999px;
}

/* Focus states for input elements */
.form-to-post-container .form-group input[type="text"]:focus,
.form-to-post-container .form-group input[type="email"]:focus,
.form-to-post-container .form-group textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Submit button styles */
.form-to-post-container .submit-btn {
    display: inline-block;
   
}

/* Submit button hover state */
.form-to-post-container .submit-btn:hover {
}

/* Form message container - Hidden by default */
.form-to-post-container .form-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none;
}

/* Success message styling */
.form-to-post-container .form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
    border-radius: var(--border-radius-md);
}

/* Error message styling */
.form-to-post-container .form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
    border-radius: var(--border-radius-md);
}

/* Cloudflare Turnstile container */
.form-to-post-container .turnstile-container {
    margin: 15px 0;
}

/* Error tooltip for field validation */
.form-to-post-container .error-tooltip {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}