body {
    font-family: 'Inter', sans-serif;
    background-color: #00257A;
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem !important;
    transition: all 0.15s ease-in-out;
}

select::-ms-expand {
    display: none;
}

select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

input:not([type='file']),
select {
    transition: all 0.15s ease-in-out;
    line-height: 1.5;
    font-size: 0.9375rem;
    color: #1f2937;
}

.file-input+label {
    cursor: pointer;
}

.policy-btn.active {
    background: linear-gradient(to right, #00257A, #25448D);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

.policy-btn.inactive {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

.form-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.form-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.form-scroll-area::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.form-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.floating-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 10;
    pointer-events: none;
}

.floating-buttons>* {
    pointer-events: auto;
}

.form-scroll-area {
    padding: 1.5rem 1.5rem 6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    position: relative;
    height: 100%;
}

#form-steps-container .form-scroll-area {
    padding-bottom: 20rem;
}

.next-btn {
    background: linear-gradient(to right, #00257A, #25448D);
}

.next-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.next-btn:disabled {
    background: #C7D0E4;
    cursor: not-allowed;
    opacity: 1;
}

.select2-container--default .select2-selection--single {
    height: auto !important;
    min-height: 48px !important;
    padding: 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    background-color: white !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.5 !important;
    color: #374151 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 0.75rem !important;
    top: 0 !important;
}

.select2-dropdown {
    max-height: 300px !important;
    overflow-y: auto !important;
}

.select2-results {
    max-height: 250px !important;
    overflow-y: auto !important;
}

.select2-container--default .select2-results__option {
    padding: 0.75rem !important;
}

.select2-container--default .select2-results__option--highlighted {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
}

.select2-container--default .select2-results__option--selected {
    background-color: #e5e7eb !important;
}

.select2-search--dropdown .select2-search__field {
    padding: 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #d1d5db !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    outline: 2px solid transparent !important;
    outline-offset: 2px !important;
    border-color: #3b82f6 !important;
}

.select2-container {
    width: 100% !important;
}

body.select2-container--open {
    overflow: hidden !important;
}


/* =============================================
   SELECT2 - FORZAR DROPDOWN HACIA ABAJO
   ============================================= */

.select2-container--open .select2-dropdown {
    top: 100% !important;
    bottom: auto !important;
    z-index: 9999 !important;
}

.select2-container--open .select2-dropdown--above {
    top: 100% !important;
    bottom: auto !important;
    transform: none !important;
}

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single {
    border-radius: 0.5rem !important;
}

.select2-dropdown {
    border-radius: 0.5rem !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    margin-top: 4px !important;
}



/* =============================================
   ESTILOS PARA BANCARD IFRAME - PASO DE PAGO
   ============================================= */

/* Contenedor del iframe de Bancard */
#bancard-iframe-container {
    width: 100%;
    background: transparent;
    border: none;
}

#bancard-iframe-container iframe {
    width: 100%;
    height: 620px !important;
    border: none;
}

/* Clase para quitar scroll en el paso de pago */
.form-scroll-area.no-scroll-payment {
    overflow: hidden !important;
    padding-bottom: 2rem !important;
}

.form-scroll-area.no-scroll-payment::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

/* Ocultar scrollbar en Firefox */
.form-scroll-area.no-scroll-payment {
    scrollbar-width: none !important;
}

/* Info de seguridad de Bancard */
#payment-security-info {
    background-color: transparent;
    margin-top: 0;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

/* Asegurar que el contenedor del iframe y la info estén juntos */
#substep-5:not(.hidden) {
    display: flex;
    flex-direction: column;
}

#substep-5 #bancard-iframe-container:not(.hidden)+#payment-security-info {
    margin-top: -0.5rem;
}

/* Ajustes responsive para el iframe */
@media (max-height: 650px) {
    #bancard-iframe-container iframe {
        height: 550px !important;
    }
}

@media (min-height: 651px) and (max-height: 750px) {
    #bancard-iframe-container iframe {
        height: 600px !important;
    }
}

@media (min-height: 751px) and (max-height: 850px) {
    #bancard-iframe-container iframe {
        height: 650px !important;
    }
}

@media (min-height: 851px) {
    #bancard-iframe-container iframe {
        height: 700px !important;
    }
}

/* =============================================
   SELECT2 - MENSAJE SIN RESULTADOS
   ============================================= */
.select2-no-results-message {
    display: block;
    text-align: center;
    padding: 10px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.select2-soporte-link {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    background: linear-gradient(to right, #00257A, #25448D);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.select2-soporte-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.select2-soporte-link:active {
    transform: scale(0.98);
}

#progress-bar>div.bg-gray-300 {
    background-color: #94A3B8 !important;
    /* slate-400 - más visible */
}