/* estilos_agregar_cliente.css */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 60px auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="date"],
select {
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: border 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
select:focus {
    border-color: #66afe9;
    outline: none;
    box-shadow: 0 0 6px rgba(102, 175, 233, 0.3);
}

button {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: #3367d6;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.form-group {
    flex: 1 1 45%; /* Dos columnas, cada una ocupa aprox. la mitad */
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .form-group {
        flex: 1 1 100%; /* En pantallas pequeñas, una sola columna */
    }
}
textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    resize: vertical;
    min-height: 80px;
    transition: border 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

textarea:focus {
    border-color: #66afe9;
    outline: none;
    box-shadow: 0 0 6px rgba(102, 175, 233, 0.3);
}

input[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease-in-out, transform 0.1s;
}

input[type="submit"]:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

textarea {
    grid-column: span 2; /* Que el textarea ocupe todo el ancho */
}

input[type="submit"] {
    grid-column: span 2;
    justify-self: center;
    width: 50%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease-in-out, transform 0.1s;
}

input[type="submit"]:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    form {
        grid-template-columns: 1fr;
    }

    input[type="submit"] {
        width: 100%;
    }
}
