﻿body {
    overflow-x: hidden;
}
/*CAMBIOS BEGIN*/
.form-wizard-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(4, 116, 160, 0.3);
    color: #000;
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: auto !important;
}

.main-content {
    flex-grow: 1;
    height: auto !important;
}
/*END*/

.sidebar-steps {
    border-right: 2px solid #0474A0;
}

.list-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.btn-nav {
    min-width: 140px;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 18px;
    transition: all 0.2s ease;
}

    .btn-nav:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.btn-dark {
    background-color: #0474A0;
    color: #fff;
    border: none;
}

    .btn-dark:hover {
        background-color: #389DC4;
    }

.btn-outline-dark {
    background-color: #0474A0;
    color: #fff;
    border: none;
}

    .btn-outline-dark:hover {
        background-color: #389DC4;
    }

.btn-outline-secondary {
    background-color: #0474A0;
    border-color: #6c757d;
    transition: all 0.3s ease;
    color: white;
}

    .btn-outline-secondary:hover {
        color: #fff;
        background-color: #389DC4;
        border-color: #004aad;
    }

.form-control, select {
    border-radius: 5px;
    border: 1.5px solid #ccc;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:hover, select:hover {
        border-color: #0474A0;
        cursor: text !important;
    }

    .form-control:focus, select:focus {
        outline: none !important;
        border-color: #0474A0;
        box-shadow: 0 0 0 0.25rem rgba(4, 116, 160, 0.5);
        cursor: text;
    }

.form-label {
    font-weight: 600;
    color: #0F2D69;
}
/* Sidebar desktop */

.sidebar-steps .list-steps li {
    background-color: #b5b5b579;
    color: black;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .sidebar-steps .list-steps li.active {
        background-color: #0F2D69 !important;
        font-weight: 700;
        color: white;
        box-shadow: 0 4px 15px rgba(15,45,105,0.4);
    }
/* ====== //PARTE VISTA MOBILEL ====== */

.mobile-step-header {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

#mobile-active-step-clone {
    background: linear-gradient(135deg, #0F2D69 0%, #0474A0 100%) !important;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 16px 24px !important;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 45, 105, 0.4);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
/*======== ESTILOS PARA EL CALENDARIO PERSONALIZADO========*/

.form-select {
    max-height: 38px;
    overflow: hidden;
}

    .form-select option {
        padding: 5px;
    }

    .form-select:focus {
        position: relative;
    }

        .form-select:focus option {
            background: white;
        }

    .form-select[size]:not([size="1"]) {
        position: absolute;
        z-index: 9999;
        background: white;
        max-height: 200px !important;
        overflow-y: auto !important;
        width: 100%;
    }

    .form-select[size]:not([size="1"]) {
        width: 250px !important;
    }

#modalPostulante .modal-content {
    overflow: visible !important;
}

#modalPostulante .modal-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

#modalAgregarIdioma .modal-content, #modalAgregarFormacion .modal-content, #modalAgregarExperiencia .modal-content, #modalAgregarConocimiento .modal-content {
    overflow: visible !important;
}

.modal-content .btn.rounded-circle {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    position: absolute !important;
    top: -30px !important;
    right: 22px !important;
    transform: translate(50%, -50%) !important;
    z-index: 1070 !important;
    border: 3px solid #fff !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    transition: all 0.25s ease !important;
}

    .modal-content .btn.rounded-circle:hover {
        background: #f8f9fa !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25) !important;
        transform: translate(50%, -50%) scale(1.1) !important;
    }

    .modal-content .btn.rounded-circle:active {
        transform: translate(50%, -50%) scale(1.05) !important;
    }

@media (max-width: 992px) {
    .sidebar-steps {
        border-right: none !important;
    }
}

@media (min-width: 1200px) {
    #modalPostulante .modal-dialog.modal-xl {
        max-width: 1340px;
    }
}
/* CAMBIOS PARA MOVIL*/
@media (min-width: 700px) {

    .form-wizard-container {
        display: block;
        height: 700px !important; 
        overflow: hidden !important; 
    }

        .form-wizard-container > .row {
            height: 100% !important;
        }

    .sidebar-steps {
        height: 100%;
        overflow-y: auto; 
    }

    .main-content {
        height: 100% !important; 
        overflow-y: auto !important; 
        display: flex; 
        flex-direction: column;

        scrollbar-width: thin;
        scrollbar-color: #0474A0 #f0f0f0;
    }

}
/* Ajuste para que la flechita de Bootstrap aparezca en Select2 */
.select2-container--bootstrap-5.is-valid .select2-selection {
    border-color: #198754 !important;
    padding-right: 2.25rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}