/* IPS Eventi - Frontend styles */

.ipsev-form-wrapper {
    max-width: 600px;
    margin: 30px 0;
    padding: 25px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
}

.ipsev-form .ipsev-field {
    margin-bottom: 16px;
}

.ipsev-form .ipsev-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.ipsev-form .ipsev-field input[type="text"],
.ipsev-form .ipsev-field input[type="email"],
.ipsev-form .ipsev-field input[type="tel"],
.ipsev-form .ipsev-field input[type="date"],
.ipsev-form .ipsev-field input[type="number"],
.ipsev-form .ipsev-field select,
.ipsev-form .ipsev-field textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.15s ease;
}

.ipsev-form .ipsev-field input:focus,
.ipsev-form .ipsev-field select:focus,
.ipsev-form .ipsev-field textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.ipsev-form .ipsev-options {
    padding: 4px 0;
}

.ipsev-form .ipsev-radio,
.ipsev-form .ipsev-checkbox {
    display: block;
    margin-bottom: 6px;
    font-weight: normal;
    color: #333;
    cursor: pointer;
}

.ipsev-form .ipsev-radio input,
.ipsev-form .ipsev-checkbox input {
    margin-right: 6px;
}

.ipsev-form .ipsev-req {
    color: #c00;
    font-weight: bold;
}

.ipsev-form .ipsev-actions {
    margin-top: 20px;
}

.ipsev-form .ipsev-submit {
    background: #2271b1;
    color: #fff;
    padding: 10px 22px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.ipsev-form .ipsev-submit:hover {
    background: #135e96;
}

.ipsev-form .ipsev-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.ipsev-message {
    margin-top: 18px;
    padding: 12px 15px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
}

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

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

.ipsev-closed {
    padding: 15px 20px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
    margin: 20px 0;
    max-width: 600px;
}

.ipsev-error {
    padding: 15px 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin: 20px 0;
    max-width: 600px;
}

/* Honeypot: nascosto agli umani, visibile ai bot */
.ipsev-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
