* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    color: #747474;
    margin: 0;
    padding: 0;
}

input[type="date"] {
    font-family: 'Roboto', Arial, sans-serif;
    color: #747474;
    display: none;
}

.titles {
    display: flex;
    flex-direction: column;
    gap: .5em;
    padding: 2em 0;
    width: 100%;
}

header {
    background-color: #00187b;
    /* background-size: cover; */
    /* height: 100px; */
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1em 0;
    gap: .8em;
}

header img {
    max-height: 43px;
}

.embedLogo {
    max-height: 60px;
    width: auto;
    background-color: #00187b;
    padding: 1.5em 2em;
}

.embedLogoAiKit {
    background-image: url('https://cdn.prod.website-files.com/672b4b0a5cd7c3f57cb07f90/672cd3865fc991aed5e63759_logo.svg');
    background-size: contain;
    margin: 1em auto;
    background-repeat: no-repeat;
    background-position: center;
    max-height: 4em;
    height: 3em;
    width: 100%;
}

.embedLogoLenovo {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/b/bd/Branding_lenovo-logo_lenovologoposred_low_res.png');
    background-size: contain;
    margin: 1em auto;
    background-repeat: no-repeat;
    background-position: center;
    max-height: 8em;
    height: 5em;
    width: 100%;
}

#selectorEquiposContainer {
    display: none;
}

.embedLogoContainer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2em;
}

h1,
h2 {
    margin: 0;
    text-align: center;
    color: #00187b;
    padding: 0 .3em;
}

h1 {
    font-size: 40px;
}

.nowrap {
    white-space: nowrap;
}

form {
    max-width: 600px;
    margin: 0 auto 3em;
    padding: 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.kitDigitalForm {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

label {
    color: #747474;
    display: block;
}

.nif, .provincia {
    display: flex;
    gap: 1em;
    flex-wrap: nowrap;
}

.divTelefonos {
    display: flex;
    flex-direction: row;
    gap: 1em;
    width: 100%;
}

.divBono {
    display: flex;
    flex-direction: row;
    gap: 1em;
    width: 100%;
}

#codigoBono {
    /* width: 75%; */
    width: 100%;
}

#fechaBono {
    width: auto;
}

.pregunta {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .25em;
}

.preguntaBold {
    font-weight: bold;
    width: fit-content;
}

#serviciosNecesariosContainer {
    display: none;
}

input,
select {
    width: 100%;
    padding: 1em;
    border: 1px solid #d2d2d2;
    border-radius: 4px;
    box-sizing: border-box;
}

select {
    box-sizing: border-box;
    width: 100%;
    appearance: none; /* Ensures consistent styling for the chevron across browsers */
    background: url('../img/chevron-icon.svg') no-repeat right 10px center;
    background-color: white;
    background-size: 12px; /* Adjust chevron size */
}

.separator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1em;
}

hr {
    border: none;
    border-top: 1px solid #f7c500 !important;
    width: 9em;
    margin: auto;
}

.yellow {
    color: #f7c500;
}

#divTipoDocumento,
#divCp {
    width: 30%;
}

#divTipoDocumento label, .divTelefonos label {
    /* Prevent line break */
    white-space: nowrap;
}

#divDocumento,
#divProvincia {
    width: 70%;
}

.optional {
    display: none;
}

#aceptar {
    align-items: center;
    width: 100%;
    margin-top: 2em;
}

#enviar {
    padding: 10px;
    background-color: #00187b;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
}

.texts {
    font-size: large;
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 100%;
    padding: 0 3em;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
}

#enviar:disabled {
    background-color: #cccccc;
}

footer {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-top {
    background-color: #f2f2f2;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.footer-bottom {
    font-size: small;
    color: #d2d2d2;
    background-color: #00187b;
    padding: 4em 0;
    text-align: center;
    width: 100%;
}

.footer-bottom a {
    color: #d2d2d2;
}

.footer-bottom a:hover {
    color: #f7c500;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #00187b;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.toggle {
    display: flex;
    align-items: center;
    gap: .5em;
}

.radioOptions {
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 100%;
    gap: .5em;
}

#primeraSolucionContainer {
    display: none;
}

.radioOption {
    flex-wrap: nowrap;
    display: flex;
    align-items: center;
    width: 100%;
    gap: .5em;
}

.radioOption input {
    width: 20px;
    height: 20px;
}

a {
    color: #f7c500;
    text-decoration: none;
}

a:hover {
    color: #00187b; 
}

.toggle[disabled] label {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.toggle[disabled] label .slider {
    cursor: not-allowed;
}

/* Style for the overlay */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it appears above other elements */
    visibility: hidden; /* Initially hidden */
    opacity: 0; /* Initially transparent */
    transition: opacity 0.3s ease; /* Smooth fade-in and fade-out */
}

/* Spinner animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff; /* White color for the top of the spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Keyframes for the spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Show the overlay */
#loading.active {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 667px) {

    h1 {
        font-size: 35px;
    }

    #divTipoDocumento, #divCp {
        width:fit-content;
    }

    .embedLogo {
        height: 100%;
    }

}

@media (max-width: 410px) {

    h1 {
        font-size: 30px;
    }
    
    .nif, .provincia, .divTelefonos, .divBono {
        flex-direction: column;
    }

    #divDocumento, #divProvincia, #codigoBono, #fechaBono {
        width: 100%;
    }

    #divTipoDocumento, #divCp {
        width: 100%;
    }

}


