/**
 * Componente Form
 * Stili per il form di contatto
 */

.form-block {
    padding: 4rem 0;
    background-color: #fff;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin: 0 0 2rem 0;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-weight: 600;
    color: #000000;
    font-size: 1.5rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1.5rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #000000;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background-color: #000000;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.form-submit:hover {
    transform: none;
}

.form-submit:active {
    transform: translateY(0);
}

/* Messaggio di successo/errore */
.contact-form .form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.contact-form .form-message.success {
    background-color: #f5f5f5;
    color: #000000;
    border: 1px solid #000000;
}

.contact-form .form-message.error {
    background-color: #f5f5f5;
    color: #000000;
    border: 1px solid #000000;
}

/* Tablet */
@media (max-width: 768px) {
    .form-block {
        padding: 3rem 0;
    }
    
    .form-container {
        padding: 0 1.5rem;
    }
    
    .form-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-form {
        gap: 1.25rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .form-block {
        padding: 2rem 0;
    }
    
    .form-container {
        padding: 0 1rem;
    }
    
    .form-title {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .form-submit {
        width: 100%;
    }
}

