/* General styles */

body {
    background-color: #f5f8fa;
    font-family: 'Arial', sans-serif;
}
input.error, select.error {
    border-color: red;
}

.upload-section {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    max-width: 1100px;
    margin: auto;
    margin-top: 50px;
}

.formulario-column {
    background-color: #fafafa;
    padding: 20px;
    border-radius: 8px;
}

h5 {
    font-size: 1.2rem;
    font-weight: bold;
}

.col-md-4 {
    margin-bottom: 20px;
}

.upload-container, .preview-section {
    background-color: #fafafa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #ddd;
    height: 71%;
}

.upload-container {
    display: flex;
    flex-direction: inherit;
    align-items: center;
    justify-content: space-between;
    height: 400px;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-icon {
    width: 40%;
    animation: cargaSuave 1.5s ease-in-out infinite;
}

@keyframes cargaSuave {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.btn-buscar-archivo {
    margin-top: 10px;
    background-color: rgba(153, 1, 0, 0.5);
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-buscar-archivo:hover {
    background-color: rgba(153, 1, 0, 0.7);
}

.file-list {
    width: 100%;
    margin-top: 20px;
}

.file-item {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.file-item img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.file-info {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-info span {
    display: inline-block;
    max-width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.delete-btn {
    margin-left: 10px;
}

.delete-btn img {
    width: 18px;
    height: 24px;
    cursor: pointer;
}

.preview-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.submit-section {
    text-align: center;
    margin-top: 20px;
}

.btn-enviar {
    padding: 12px 50px;
    background-color: #990100;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 98%;
}

.btn-enviar:hover {
    background-color: #770000;
    color: white;
}

.modal-confirmation {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 400px;
}

.modal-confirmation.active {
    display: block;
}

.modal-confirmation img {
    width: 60px;
    margin-bottom: 15px;
}

.modal-confirmation h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.modal-confirmation p {
    font-size: 14px;
}

.modal-confirmation .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
}

.overlay {
    display: none;  /* El overlay está oculto por defecto */
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);  /* Fondo gris semitransparente */
}

.overlay.active {
    display: block;  /* Mostrar el overlay cuando se activa */
}


.btn-enviar {
    padding: 12px 50px;
    background-color: #990100 !important;  /* Forzar el color de fondo */
    color: white !important;  /* Forzar el color de texto */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 98%;
}

.btn-enviar:hover {
    background-color: #770000 !important;
    color: white !important;
}


/* Ocultar la tercera columna en pantallas menores a 768px */
@media (max-width: 768px) {
    .col-md-4:nth-child(3) {
        display: none;
    }

    .row {
        flex-direction: column;
    }

    .upload-icon {
        width: 60%;
    }
}
