/**
 * PB Contact Form styles
 */

/* Block container */
.wp-block-pb-contact-form {
    border: 1px soild transparent;
    margin: var(--spacing-md) 0;
}
.wp-block-pb-contact-form.is-selected {
    border: 2px solid #007CBA;
    border-radius: 4px;
}

/* Form fieldsets - simplified without labels */
.wp-block-pb-contact-form .wp-block-pb-contact-form--fieldset {
    margin-bottom: 1.5rem;
    width: 100%;
}

/* Hide labels (we're using placeholders) */
.wp-block-pb-contact-form--label,
.wp-block-pb-contact-form label {
    display: none;
}

/* Common input/textarea styling */
.wp-block-pb-contact-form--input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-pb-contact-form--input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
    outline: none;
}

.wp-block-pb-contact-form textarea.wp-block-pb-contact-form--input {
    min-height: 120px;
    resize: vertical;
}

/* Optional: Style required fields with subtle indicator */
.wp-block-pb-contact-form--input[required] {
    border-left: 3px solid #dc3545;
}

.wp-block-pb-contact-form--input[required]:focus {
    border-left-color: #0073aa;
}

/* Form messages */
.form-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    font-weight: 500;
}

.form-message--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message ul {
    margin: 0;
    padding-left: 1.5rem;
}

.form-message li {
    margin-bottom: 0.25rem;
}

/* Loading state for submit button */
.wp-block-pb-contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}