/* Reset e Base */
* {
    box-sizing: border-box;
}

.calculadora {
    padding: 40px 120px;
    align-items: center;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fbff 100%);
    min-height: 100vh;
}

/* Cabeçalho */
.titulo-principal {
    text-transform: uppercase;
    font-size: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.texto-negrito {
    font-weight: 800;
    margin-left: 10px;
    background: linear-gradient(135deg, #018EC7 0%, #0261a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.decreto {
    display: flex;
    justify-content: center;
    margin-top: 0;
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-bottom: 40px;
}

.hidden {
    display: none;
}

/* Seção de Informações */
.primeirasInfo,
.segundasInfo {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

/* Card Container Moderno */
.primeirosSelects,
.viagemInfo {
    width: 60%;
    margin-top: 0;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(1, 142, 199, 0.08);
    border: 1px solid rgba(1, 142, 199, 0.1);
    transition: all 0.3s ease;
}

.primeirosSelects:hover,
.viagemInfo:hover {
    box-shadow: 0 8px 32px rgba(1, 142, 199, 0.12);
}

/* Inputs e Selects */
.inputContainer {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.select {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.selectDuplo {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.inputContainer label,
.select label {
    display: flex;
    justify-content: flex-start;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.inputPadrao,
.selectPadrao {
    height: 48px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 12px 20px;
    background: #fafbfc;
    transition: all 0.3s ease;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.inputPadrao:focus,
.selectPadrao:focus {
    outline: none;
    border-color: #018EC7;
    background: white;
    box-shadow: 0 0 0 4px rgba(1, 142, 199, 0.08);
    transform: translateY(-1px);
}

.inputPadrao::placeholder {
    color: #95a5a6;
}

.selectPadrao {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23018EC7' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    appearance: none;
}

.disabled-localidade {
    background-color: #ecf0f1;
    border: 2px solid #d4d9dd;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Cards de Informação */
.infoCategorias,
.resultadoInfo {
    width: 40%;
}

.tituloCategorias,
.tituloInfo {
    font-size: 14px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 16px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    color: #2c3e50;
    letter-spacing: 1px;
}

.conteudoGrupo {
    justify-content: center;
    display: flex;
}

.infoGrupo {
    border: 2px solid #e1e8ed;
    border-radius: 16px;
    height: 82%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(1, 142, 199, 0.08);
    padding: 24px;
}

.infoGrupo:hover {
    box-shadow: 0 8px 32px rgba(1, 142, 199, 0.15);
    border-color: #018EC7;
}

.tituloGrupo {
    font-size: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    margin-top: 0;
    color: #018EC7;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-align: center;
}

.conteudoGrupo {
    font-size: 15px;
    display: flex;
    text-align: center;
    color: #5a6c7d;
    font-weight: 600;
    margin-top: 8px;
    line-height: 1.6;
}

/* Resultado */
.resultadoInfo {
    margin-top: 0;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(1, 142, 199, 0.08);
    border: 1px solid rgba(1, 142, 199, 0.1);
}

.infoGrupo.resultado {
    height: 100%;
    padding: 24px;
}

.info {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f3f5;
}

.info:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-nome {
    text-align: -webkit-center;
}

.tituloResultado {
    font-size: 12px;
    font-weight: 700;
    color: #5a6c7d;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    letter-spacing: 1px;
}

.conteudoResultado {
    font-size: 24px;
    font-weight: 800;
    color: #018EC7;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    justify-content: center;
    letter-spacing: 0.5px;
}

.juntos {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1rem;
}

.conteudo1 {
    border-right: 2px solid #e1e8ed;
    padding-right: 1rem;
}

/* Itinerário da Viagem */
.inputsViagem {
    margin-bottom: 32px;
}

.tituloIda {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 700;
    color: #018EC7;
    margin-top: 24px;
    letter-spacing: 0.3px;
}

.inputsViagem .linha {
    border-bottom: 2px solid #e1e8ed;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 16px;
}

.selectDuplo.viagem {
    margin-top: 16px;
}

/* Botão Calcular */
.divCalcular {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.btnCalcular {
    background: linear-gradient(135deg, #018EC7 0%, #0261a8 100%);
    padding: 14px 80px;
    color: #ffffff;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(1, 142, 199, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 15px;
}

.btnCalcular:hover {
    box-shadow: 0 10px 32px rgba(1, 142, 199, 0.4);
}

.btnCalcular:active {
    transform: translateY(-1px);
}

/* Botão Imprimir */
.imprimir {
    color: #ffffff;
    width: 180px;
    margin: 0 auto;
    padding: 12px 0;
    background: linear-gradient(135deg, #018EC7 0%, #0261a8 100%);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(1, 142, 199, 0.25);
    cursor: pointer;
}

.imprimir:hover {
    box-shadow: 0 6px 24px rgba(1, 142, 199, 0.35);
}

.imprimir a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imprimir a:hover {
    text-decoration: none;
    color: #ffffff;
}

.imprimir img {
    margin-right: 8px;
    filter: brightness(0) invert(1);
}

/* Artigo Informativo */
.infoArtigo {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.textoArtigo {
    width: 100%;
    max-width: 900px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(33, 150, 243, 0.15);
    line-height: 1.8;
    color: #1565c0;
    font-weight: 500;
    border-left: 5px solid #018EC7;
}

/* Documentos Legais */
.documentos-legais {
    margin-top: 60px;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(1, 142, 199, 0.08);
}

.titulo-documentos-legais {
    font-size: 22px;
    color: #2c3e50;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.titulo-documentos-legais:hover {
    color: #018EC7;
}

.titulo {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.5;
}

.documento {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 12px;
    background: #fafbfc;
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
    align-items: center;
}

.documento:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(1, 142, 199, 0.1);
    border-color: #018EC7;
}

.titulo-documento {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    color: #2c3e50;
    gap: 16px;
}

.titulo-documento svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.botoes {
    display: flex;
    gap: 12px;
}

.btn-visualizar,
.btn-donwload {
    text-align: center;
    height: 44px;
    min-width: 44px;
    position: relative;
    border-radius: 10px;
    font-size: 13px;
    color: #ffffff;
    font-weight: 700;
    line-height: 44px;
    background: linear-gradient(135deg, #018EC7 0%, #0261a8 100%);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(1, 142, 199, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    letter-spacing: 0.5px;
}

.btn-visualizar {
    min-width: 44px;
    padding: 0 12px;
}

.btn-donwload {
    min-width: 120px;
    gap: 8px;
}

.btn-visualizar:hover,
.btn-donwload:hover {
    box-shadow: 0 4px 16px rgba(1, 142, 199, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.btn-donwload svg {
    width: 20px;
    height: 20px;
}

.linha-documento {
    border-bottom: 1px solid #e1e8ed;
    width: 100%;
    margin-bottom: 24px;
}

/* Accordion */
.uk-accordion-title {
  display: inline-flex;           /* facilita alinhar ícone + texto */
  align-items: center;
  gap: .5rem;                     /* espaço entre ícone e texto */
}

.uk-accordion-title::before {
  content: "";                    /* essencial para renderizar o ::before */
  width: 15px;
  height: 15px;
  display: inline-block;
  background: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 13 13'%3E%3Cpath fill='%23018EC7' d='M4 1l6 5-6 5V1z'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .3s ease;
}

.uk-open > .uk-accordion-title::before {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 13 13'%3E%3Cpath fill='%23018EC7' d='M1 4l5 6 5-6H1z'/%3E%3C/svg%3E");
}

/* Responsividade */
@media (max-width: 725px) {
    .calculadora {
        padding: 24px 16px;
    }

    .titulo-principal {
        font-size: 24px;
        margin-bottom: 8px;
        flex-direction: column;
        text-align: center;
    }

    .texto-negrito {
        margin-left: 0;
        margin-top: 4px;
    }

    .decreto {
        font-size: 11px;
        text-align: center;
        margin-bottom: 24px;
    }

    .selectDuplo,
    .segundasInfo,
    .primeirasInfo {
        display: block;
    }

    .selectDuplo .select {
        margin-bottom: 20px;
    }

    .tituloCategorias,
    .tituloInfo {
        font-size: 13px;
    }

    .infoCategorias,
    .viagemInfo,
    .resultadoInfo,
    .primeirosSelects {
        width: 100%;
        margin-bottom: 24px;
    }

    .primeirosSelects,
    .viagemInfo,
    .resultadoInfo {
        padding: 24px;
    }

    .documento {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
        align-items: center;
        flex-direction: column;
        padding: 20px;
    }

    .titulo-documento {
        text-transform: uppercase;
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        flex-direction: column;
        margin-bottom: 16px;
        text-align: center;
        gap: 12px;
    }

    .botoes {
        width: 100%;
        justify-content: center;
    }

    .btn-donwload {
        min-width: 140px;
    }

    .titulo {
        text-align: center;
    }

    .uk-accordion-title::before {
        margin-right: 0;
    }

    .documentos-legais {
        padding: 24px 16px;
    }

    .textoArtigo {
        padding: 20px;
        font-size: 14px;
    }

    .btnCalcular {
        padding: 12px 60px;
        font-size: 14px;
    }
}
