/**
 * Plugin: IO Contact Forms
 * Version: 1.0.0
 */

/* Container principale */
.io-contact-form-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
}

.io-contact-form-container h3 {
    color: #324864;
    font-size: 1.6em;
    margin-bottom: 15px;
    text-align: center;
}

.io-form-intro {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.05em;
}

/* Form */
.io-contact-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Form groups */
.io-form-group {
    margin-bottom: 20px;
}

.io-form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.io-form-group input[type="text"],
.io-form-group input[type="email"],
.io-form-group input[type="tel"],
.io-form-group input[type="url"],
.io-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.io-form-group input:focus,
.io-form-group textarea:focus {
    outline: none;
    border-color: #324864;
    box-shadow: 0 0 0 3px rgba(50, 72, 100, 0.1);
}

.io-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.io-field-help {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* CAPTCHA */
.io-captcha-group {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.io-captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.io-captcha-container span {
    font-size: 1.3em;
    font-weight: 600;
    color: #324864;
    min-width: 80px;
    display: inline-block;
}

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

/* Messaggi */
.io-form-messages {
    margin: 20px 0;
}

.io-message {
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 1em;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.io-message.io-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.io-message.io-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bottone submit */
.io-submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: #324864;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.io-submit-btn:hover:not(:disabled) {
    background: #243548;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 72, 100, 0.3);
}

.io-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .io-contact-form {
        padding: 20px;
    }
    
    .io-contact-form-container h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .io-contact-form {
        padding: 15px;
    }
    
    .io-captcha-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .io-captcha-container input {
        width: 100% !important;
    }
}
