body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}
.container {
    width: 100%;
    margin: auto;
    border: 2px solid black;
    padding: 10px;
}
.header {
    text-align: center;
    font-weight: bold;
}
.header h2 {
    font-size: 20px;
}
.section {
    border: 2px solid black;
    padding: 5px;
    margin: 5px 0;
    flex: 1;

}
.section h3 {
    font-size: 18px;
}
.rotated-text {
    writing-mode: vertical-rl;
    transform: rotate(-180deg);
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}
.row {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se ajusten en pantallas pequeñas */
    align-items: stretch; /* Hace que los elementos hijos ocupen la misma altura */
    gap: 0px; /* Espaciado entre columnas */
    width: 100%;
    max-width: 1400px; /* Mantiene un límite de ancho para no extenderse demasiado */
    margin: auto;
}
.col {
    flex: 1.5;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}
.origen-destination {
    width: 100%;
    max-width: 100%; /* Asegura que no se desborde */
    border: 2px solid black;
    padding: 15px;
    text-align: center;
    box-sizing: border-box; /* Evita que el padding expanda el tamaño */
}
.vehicle {
    display: flex;
    flex-direction: column;
    border-top: 1px solid black;
    padding: 5px;
}
.vehicle-details {
    display: flex;
    align-items: center;
    width: 100%;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-group span {
    text-align: left;
    font-size: 16px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 5px;
}

.checkbox-group label {
    text-align: right;
    font-size: 16px;
}

.origin-signature-pad {
    width: 100%;
    max-width: 100%; /* Hace que el canvas sea totalmente responsive */
    height: 100%;
    min-height: 200px; /* Asegura que tenga un tamaño mínimo */
    border: 2px solid black;
    border-radius: 5px;
}
.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}
.upload-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid black;
}
/* Estiliza el input file */
input[type="file"] {
    width: 100%;
    max-width: 90%; /* Ajuste para mejorar en móviles */
    padding: 8px;
    border: 1px solid #ccc;
    background: #fff;
}
.canvas {
    border: 1px solid #000;
    width: 500px;
    height: 200px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Ensures both logos align at the top */
    width: 100%;
    padding: 5px 10px; /* Sets equal spacing on both sides */
}

.left-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.right-content {
    display: flex;
    align-items: flex-start; /* Align right logo to top */
    justify-content: flex-end;
    padding-right: 20px; /* Ensures right padding is exactly the same as the left */
}

.logo {
    max-width: 100%; /* Adjust size as needed */
    height: auto;
    display: block;
}

.header-text {
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 5px; /* Ensures space but prevents extra white space */
}

.header-text a {
    color: #0073aa; /* WordPress blue */
    text-decoration: none;
    font-weight: bold;
}

.header-text a:hover {
    text-decoration: underline;
}

.auto-damage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800%;
}

.auto-damage-canvas-container {
    width: 100%;
    max-width: 800px; /* Adjust this to match your page layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.auto-damage-canvas.full-with {
    width: 100% !important;
    max-width: 100px;
    height: auto !important;
    border: 2px solid #000;
    display: block;
}

.clear-auto-damage-canvas {
    width: 100%; /* Makes the button span the full width */
    max-width: 800px;
    padding: 10px;
    background-color: red;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-top: 5px;
    text-transform: uppercase;
}

.clear-auto-damage-canvas:hover {
    background-color: darkred;
}

.damage-description-container {
    width: 100%;
    max-width: 800px;
    margin-top: 10px;
    box-sizing: border-box;
}

.damage-description-container label {
    display: block;
    margin-bottom: 5px;
}

.damage-description-container textarea.damage-desc-limited {
    width: 100%;
    padding: 5px;
    border: 1px solid #000;
    font-size: 14px;
    resize: none;       /* Disables manual resize handles */
    overflow: hidden;   /* Hides scrollbars if more text is typed */
    box-sizing: border-box;
}

/* so that the label appears below and only the line below */
.input-container {
    position: relative;
    margin: 10px 0;
}

.input-container input[type="text"] {
    width: 100%;
    border: none;
    border-bottom: 2px solid #000;
    outline: none;
    font-size: 16px;
    padding: 5px 0;
    background: transparent;
    border-radius: 0;
}

.input-container label {
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 14px;
    color: #000;
    pointer-events: none;
    transition: 0.2s ease all;
}

.input-container input[type="text"]:focus + label,
.input-container input[type="text"]:not(:placeholder-shown) + label {
    top: 100%;
    font-size: 12px;
    color: #666;
}

/* so they can be seen on the same line*/
.form-row {
    display: flex;
    align-items: left;
    margin: 0px 0px 10px 0px;
}

.form-row label {
    margin-right: 5px;
    margin-top: 0;
}

.form-row input {
    flex: 1;
    padding: 3px 5px;
    font-size: 1em;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
}

.form-row input:focus {
    border-bottom-color: #000;
}

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

.form-group label {
    margin-bottom: 5px;
}

.form-group input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 16px;
}
#add-vehicle-button {
    background-color: #4CAF50; /* Fondo verde */
    color: white; /* Texto blanco */
    padding: 10px 20px; /* Espaciado interno */
    font-size: 16px; /* Tamaño de la fuente */
    border: none; /* Sin bordes */
    border-radius: 5px; /* Bordes redondeados */
    cursor: pointer; /* Cambia el cursor cuando pasa por encima */
    display: flex; /* Usa flexbox para alinear ícono y texto */
    align-items: center; /* Alineación vertical del ícono */
    justify-content: center; /* Alineación horizontal */
    gap: 10px; /* Espacio entre el ícono y el texto */
    transition: background-color 0.3s ease; /* Efecto de transición */
}

#add-vehicle-button:hover {
    background-color: #45a049; /* Cambia el color del fondo cuando se pasa el ratón */
}

#add-vehicle-button i {
    font-size: 18px; /* Tamaño del ícono */
}

/* Media Queries for small screens */
@media (max-width: 600px) {
    .row {
        flex-direction: column;
        align-items: center;
        gap: 10px; /* Reduce el espacio entre elementos */
    }

    .col {
        width: 100%;
        max-width: 100%;
    }
    .section {
        max-width: 95%;
        padding: 10px;
    }

    .rotated-text {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        margin: 0 0;
    }

    .form-container {
        flex-direction: column;
        align-items: center;
    }

    .form-section {
        width: 100%;
        max-width: 400px;
    }

    .form-row {
        flex-direction: column;
        gap: 0px; /* Space between elements when stacked */

    }

    .input-container-vehiculo {
        flex-direction: column;
        align-items: flex-start;
    }

    .input-container-vehiculo label {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .input-container-vehiculo input {
        width: 100%;
    }
}


.image-preview-thumbnail {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.2s;
}

.image-preview-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
    margin: 10px 0;
}

.loading-indicator i {
    color: #3498db;
}

/* Improve file input styling */
input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
}

/* Style for file input label */
.file-input-label {
    display: inline-block;
    cursor: pointer;
}