/**
 * Custom Contact Form Styles
 * Stile coerente con il modulo newsletter
 */

.custom-contactform-block {
    background-color: #e5e5e5;
    padding: 50px 20px;
    width: 100%;
}

.custom-contactform-container {
    max-width: 1200px;
    margin: 0 auto;
}

.custom-contactform-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.custom-contactform-subtitle {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
}

.custom-contactform-form {
    max-width: 100%;
}

.custom-contactform-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .custom-contactform-row {
        flex-direction: column;
        gap: 20px;
    }
}

.custom-contactform-field {
    flex: 1;
    position: relative;
}

.custom-contactform-field-full {
    flex: 0 0 100%;
    width: 100%;
}

@media (max-width: 768px) {
    .custom-contactform-field-full {
        flex: 1;
    }
}

.custom-contactform-field label {
    display: block;
    font-size: 12px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 400;
}

.custom-contactform-field input,
.custom-contactform-field textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #999;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.custom-contactform-field textarea {
    padding: 12px;
    border: 1px solid #999;
    resize: vertical;
    min-height: 120px;
}

.custom-contactform-field input:focus,
.custom-contactform-field textarea:focus {
    border-color: #333;
}

.custom-contactform-field input::placeholder,
.custom-contactform-field textarea::placeholder {
    color: #999;
}

.custom-contactform-checkboxes {
    margin-top: 20px;
    margin-bottom: 30px;
}

.custom-contactform-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.custom-contactform-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #333;
}

.custom-contactform-checkbox label {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    cursor: pointer;
}

.custom-contactform-checkbox label a {
    color: #333;
    text-decoration: underline;
}

.custom-contactform-checkbox label a:hover {
    color: #000;
}

.custom-contactform-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-contactform-submit {
    background-color: #3d3d3d;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    letter-spacing: 1px;
}

.btn-contactform-submit:hover {
    background-color: #222;
}

/* Alert Messages */
.custom-contactform-alert {
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    font-size: 14px;
}

.custom-contactform-alert.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.custom-contactform-alert.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .custom-contactform-block {
        padding: 30px 15px;
    }

    .custom-contactform-title {
        font-size: 22px;
    }

    .custom-contactform-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
    }

    .custom-contactform-submit {
        justify-content: center;
    }

    .btn-contactform-submit {
        width: 100%;
        text-align: center;
    }
}
