html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Color principal personalizado */
.bg-primary-custom {
    background-color: #141b4d !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}

.btn-primary {
    background-color: #141b4d !important;
    border-color: #141b4d !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 0.6rem 1.1rem;
    box-shadow: 0 6px 18px rgba(20,27,77,0.12);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0f153a !important;
    border-color: #0f153a !important;
    color: #fff !important;
}

input[type="range" i],
.form-range::-webkit-slider-thumb,
.form-range::-moz-range-thumb,
.form-range::-ms-thumb {
    background-color: #141b4d !important;
    border-color: #141b4d !important;
}

input[type="radio" i]:checked {
    background-color: #141b4d !important;
    border-color: #141b4d !important;
}

input[type="radio" i] {
    accent-color: #141b4d;
}

.form-control:focus,
textarea:focus,
select:focus {
    border-color: #141b4d;
    box-shadow: 0 0 0 0.2rem rgba(20,27,77,.25);
}

.form-range::-webkit-slider-thumb {
    background: #141b4d;
}

.form-range::-moz-range-thumb {
    background: #141b4d;
}

.form-range::-ms-thumb {
    background: #141b4d;
}

.form-range {
    accent-color: #141b4d;
}

/* Estilo general del formulario */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color: #102334;
}

/* Tarjeta/Contenedor del formulario */
form#cancelacionForm {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(20,27,77,0.07);
    box-shadow: 0 8px 20px rgba(13,25,45,0.06);
    max-width: 100%;
}

/* Titulo */
h2 {
    font-weight: 600;
    color: #102334;
}

.form-label {
    font-weight: 600;
    color: #122235;
}

/* Estilo de los textarea */
.form-control,
textarea.form-control {
    border-radius: 8px;
    border: 1px solid rgba(16,35,52,0.12);
    padding: 0.75rem 0.9rem;
    box-shadow: none;
    background-clip: padding-box;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Estilo de los Radio */
.form-check {
    width: 100%;
}

.form-check .form-check-input {
    margin-top: 0.35rem;
}

.form-check.mt-2 {
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(16,35,52,0.06);
    border-radius: 8px;
    background: #fff;
    margin-bottom: 0.6rem;
}

.form-check .form-check-input:focus {
    box-shadow: 0 0 0 0.12rem rgba(20,27,77,0.08);
}

/* Asegurar que los Radio se mantengan dentro de los bordes de los contenedores */
.form-check.mt-2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

/* Hover */
.form-check.mt-2:hover,
.form-check-label:hover {
    border-color: #141B4D;
    cursor: pointer;
}
.form-check.mt-2:hover {
    box-shadow: 0px 0px 5px rgba(120,120,120,1) !important;
}

/* Alinear los Radio */
.form-check.mt-2 .form-check-input {
    flex: 0 0 auto;
    margin: 0; /* remover cualquier margen que lo podria empujar */
    width: 1.05rem;
    height: 1.05rem;
}

.form-check.mt-2 .form-check-label {
    margin: 0;
    flex: 1 1 auto;
}

/* Centrar los input */
.form-check.align-items-start.d-flex,
.form-check.d-flex.align-items-start {
    align-items: center;
}

.form-check.align-items-start.d-flex textarea.form-control,
.form-check.d-flex.align-items-start textarea.form-control,
.form-check.align-items-start.d-flex input.form-control,
.form-check.d-flex.align-items-start input.form-control {
    margin-left: 0.5rem;
    flex: 1 1 auto;
    min-width: 200px;
}

.form-text,
.text-muted {
    color: #6b7a86;
}

#cancelacionForm .text-muted {
    font-size: 0.9rem;
}

/* Divisor de preguntas */
.question-divider {
    border: none;
    height: 1px;
    background-color: rgba(16,35,52,0.06);
    margin: 1.25rem 0;
}

.question-separator {
    height: 1px;
    border: none;
    background-color: rgba(16,35,52,0.06);
    margin: 1.25rem 0;
}

@media (min-width: 768px) {
    .question-separator {
        background-color: rgba(16,35,52,0.08);
        margin: 1.5rem 0;
    }
}

/* Estilo de input-group */
.input-group,
.input-group > .form-control,
.input-group .input-group-text {
    background-color: #ffffff !important;
    border-color: rgba(16,35,52,0.12) !important;
    box-shadow: none !important;
}

.input-group .input-group-text {
    padding: 0.75rem 0.9rem;
}

/* Sombra alrededor de todo el grupo */
.input-group:focus-within {
    box-shadow: 0px 0px 5px rgba(120,120,120,1) !important;
    border-radius: 5px;
    border: 1px solid rgba(20,27,77,0.7) !important;
    background-color: #ffffff !important;
}

/* Evitar sombra duplicada */
.input-group:focus-within > .form-control,
.input-group:focus-within .input-group-text {
    border-color: transparent !important;
    box-shadow: none !important;
}

.input-group:focus-within > .form-control:focus,
.input-group:focus-within .input-group-text:focus {
    outline: none;
}
