/* Estilo para los mensajes de error */
.error-message {
    color: red;
    display: none;
}
 
/* Ajuste del logo */
.logo {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Contenedor del formulario principal */
/*.container-form {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    justify-content: center;*/
    
/*    padding: 20px;*/
/*    box-sizing: border-box;*/
/*}*/

/* Formulario */
form {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Cada sección (article) del form */
form article {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

/* Estilo para los campos de datos */
.client-data {
    width: 100%;
    height: 55px;
    margin-top: 15px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Botón de enviar */
button[type="submit"], 
input[type="submit"] {
    background-color: var(--color-primary, #333);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover, 
input[type="submit"]:hover {
    background-color: #e14d23;
}

/* ============================= */
/* === Briefing como tabla ==== */
/* ============================= */
.table-container-request {
    display: grid;
    grid-template-columns: 1fr 60px 60px; /* Producto | Sí | No */
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Fila de cabecera */
.table-header-request {
    display: contents;
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Fila de producto */
.table-row {
    display: contents;
}

/* Columnas */
.request-product-title,
.request-product-name,
.request-option {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.request-product-title,
.request-product-name {
    font-weight: bold;
}

/* Última fila sin borde */
.table-row:last-child .request-product-name,
.table-row:last-child .request-option {
    border-bottom: none;
}

/* Centrar las opciones Sí / No */
.request-option {
    text-align: center;
}

/* Categorías y productos */
.category {
    margin-bottom: 20px;
}

.products {
    margin-top: 10px;
    padding-left: 20px;
}

.product-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.line {
    margin-bottom: 5px;
}

.number {
    text-align: right;
}

/* Responsive: pantallas pequeñas */
@media (max-width: 767px) {
    .container-form {
        padding: 10px;
    }

    .logo {
        max-width: 80%;
    }

    .client-data {
        height: 45px;
        font-size: 14px;
    }

    button[type="submit"], 
    input[type="submit"] {
        font-size: 16px;
        padding: 10px;
    }
}

/* Responsive: pantallas grandes */
@media (min-width: 768px) {
    form {
        width: 40vw; /* El formulario ocupará el 40% del ancho */
    }

    .client-data {
        font-size: 18px;
        height: 55px;
    }
}
