/* quote.css */

.container {
    max-width: 800px; /* Un poco más ancho para el formulario de cotización */
    margin-top: 40px; /* Espacio extra desde el encabezado */
}

.quote-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.quote-intro h2 {
    color: #FF4500; /* Color naranja de tu marca */
    font-size: 28px;
    margin-bottom: 15px;
}

.quote-intro p {
    color: #555;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.form-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-section h3 {
    color: #FF4500;
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 30px; /* Espacio entre columnas y filas */
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box; /* Incluye padding y border en el ancho total */
}

.form-group input[type="number"].dimensions {
    width: calc(33.33% - 10px); /* Para los campos de dimensiones */
    display: inline-block;
    margin-right: 5px;
}

.dimensions span {
    margin: 0 5px;
    font-weight: bold;
    color: #555;
}

.form-checkbox {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2); /* Hace el checkbox un poco más grande */
}

/* Estilo para el botón "Describa su embarque" y "Obtenga una cotización" */
#describeShipmentBtn, .submit-quote-button, .add-item-button, .back-to-home button {
    display: block;
    width: auto;
    margin: 25px auto 0 auto; /* Centrar el botón */
    padding: 15px 30px;
    font-size: 18px;
    background-color: #FF4500;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#describeShipmentBtn:hover, .submit-quote-button:hover, .add-item-button:hover, .back-to-home button:hover {
    background-color: #e63900;
    transform: translateY(-2px);
}

/* Ocultar la sección inicialmente */
.hidden {
    display: none;
}

/* Estilos para los detalles del artículo (Envío) */
.item-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Columnas flexibles */
    gap: 20px;
    margin-bottom: 30px;
}

.package-types {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
}

.package-types p {
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.package-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Permite que las opciones se envuelvan en pantallas pequeñas */
}

.package-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 150px; /* Ancho fijo para las opciones de paquete */
    text-align: center;
}

.package-option:hover {
    border-color: #FF4500;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.1);
}

.package-option img {
    width: 80px; /* Tamaño de las imágenes de paquete */
    height: auto;
    margin-bottom: 10px;
}

.package-option span {
    font-size: 14px;
    color: #555;
}

.package-option span:first-of-type {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.additional-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Envuelve en pantallas pequeñas */
}

.total-weight {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background-color: #f0f0f0;
    padding: 10px 15px;
    border-radius: 5px;
}

.add-item-button {
    background-color: #4CAF50; /* Un color diferente para "Añadir artículo" */
}

.add-item-button:hover {
    background-color: #45a049;
}

.shipment-warnings {
    margin-top: 15px;
    display: flex;
    align-items: center;
}

.shipment-warnings input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

/* Estilos para el botón de volver al inicio */
.back-to-home {
    text-align: center;
    margin-top: 20px;
}

.back-to-home button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #6c757d; /* Un color gris para que no compita con el naranja */
}

.back-to-home button:hover {
    background-color: #5a6268;
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }
    .quote-intro h2 {
        font-size: 24px;
    }
    .form-section {
        padding: 20px;
    }
    .package-options {
        flex-direction: column;
        align-items: center;
    }
    .package-option {
        width: 80%; /* Más ancho en móviles */
    }
    .additional-options {
        flex-direction: column;
        gap: 15px;
    }
    .add-item-button, .total-weight {
        width: 100%;
        text-align: center;
    }
}