/*
 * Plugin Name: Nexform Builder Styles
 * Description: Styles for the Nexform Builder custom contact forms.
 * Version: 1.1
 * Author: Mridul Kanti
 */

.nexform-builder-contact-form { /* Updated class name */
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif; /* Using Inter font, ensure it's loaded in your theme or globally */
}

.nexform-builder-contact-form h3 { /* Updated class name */
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 600;
}

.nexform-builder-contact-form form p { /* Updated class name */
    margin-bottom: 15px;
}

.nexform-builder-contact-form label { /* Updated class name */
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.95em;
}

.nexform-builder-contact-form input[type="text"], /* Updated class name */
.nexform-builder-contact-form input[type="email"], /* Updated class name */
.nexform-builder-contact-form input[type="number"], /* Updated class name */
.nexform-builder-contact-form input[type="tel"], /* Updated class name */
.nexform-builder-contact-form input[type="url"], /* Updated class name */
.nexform-builder-contact-form input[type="date"], /* Updated class name */
.nexform-builder-contact-form textarea { /* Updated class name */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1em;
    color: #495057;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.nexform-builder-contact-form input[type="text"]:focus, /* Updated class name */
.nexform-builder-contact-form input[type="email"]:focus, /* Updated class name */
.nexform-builder-contact_form input[type="number"]:focus, /* Updated class name */
.nexform-builder-contact-form input[type="tel"]:focus, /* Updated class name */
.nexform-builder-contact-form input[type="url"]:focus, /* Updated class name */
.nexform-builder-contact-form input[type="date"]:focus, /* Updated class name */
.nexform-builder-contact-form textarea:focus { /* Updated class name */
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.nexform-builder-contact-form textarea { /* Updated class name */
    min-height: 120px;
    resize: vertical;
}

.nexform-builder-contact-form button[type="submit"] { /* Updated class name */
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    margin-top: 20px;
}

.nexform-builder-contact-form button[type="submit"]:hover { /* Updated class name */
    background-color: #0056b3;
    transform: translateY(-1px);
}

.nexform-builder-contact-form button[type="submit"]:active { /* Updated class name */
    background-color: #004085;
    transform: translateY(0);
}

.nexform-builder-contact-form small { /* Updated class name */
    display: block;
    text-align: right;
    margin-top: 10px;
    color: #6c757d;
    font-size: 0.85em;
}

.nexform-builder-success-message { /* Updated class name */
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.nexform-builder-error-message { /* Updated class name */
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nexform-builder-contact-form { /* Updated class name */
        margin: 20px 15px;
        padding: 20px;
    }
}