/* CSS para formularios */

form {
    max-width: 600px;
    margin: 0 auto;
}

form table {
    width: 100%;
    border-collapse: collapse;
}

form th {
    text-align: right;
    padding: 10px;
    vertical-align: top;
    width: 30%;
    color: #8B4513;
    font-weight: bold;
}

form td {
    padding: 10px;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

form textarea {
    height: 150px;
    resize: vertical;
}

form input[type="submit"] {
    background: #8B4513;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
    background: #A0522D;
}

form label {
    color: #8B4513;
    font-weight: bold;
}

/* Validación */
.campo-error {
    border-color: #d32f2f !important;
    background-color: #ffebee;
}

.mensaje-error {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
}

.mensaje-exito {
    color: #388e3c;
    background: #e8f5e8;
    padding: 10px;
    border-radius: 3px;
    margin: 15px 0;
    text-align: center;
}