/* 🔹 RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(120deg, #f0f2f5, #d1e8f0); /* Cores mais claras e suaves */
    color: #333; /* Cor do texto mais escura para melhor contraste */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 0; /* Remove qualquer espaço extra no topo */
    margin-top: 0;
    overflow-x: hidden; /* Evita rolagem lateral */
    overflow-y: auto; /* Permite rolagem apenas vertical */
    padding-top: 30px;
    font-family: 'Montserrat', sans-serif; /* Fonte moderna e legível */
}

/* 🔹 CONTAINER CENTRALIZADO */
.container {
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-top: 40px;
    position: relative;
}

/* 🔹 LOGO */
.logo-container {
    display: flex;
    flex-direction: column; /* Alinha a imagem e o texto verticalmente */
    align-items: center; /* Centraliza horizontalmente */
    width: 100%;
    margin-bottom: 20px;
	 margin-top: 30px
}

.logo {
    width: 80%; /* Ajusta a largura da logo */
    max-width: 300px; /* Limita o tamanho máximo */
    height: auto;
    object-fit: contain;
}

.logo-text {
    width: 80%; /* Mesma largura da imagem */
    max-width: 300px; /* Mesmo limite máximo da imagem */
    color: gray; /* Cor do texto */
    font-size: 12px; /* Tamanho da fonte */
    text-align: center; /* Centraliza o texto */
    margin-top: 10px; /* Espaço entre a imagem e o texto */
    font-weight: bold; /* Texto em negrito */
}

/* 🔹 TÍTULO */
h2 {
    font-size: 22px;
    margin-bottom: 20px;
}
/* 🔹 Resumo final do cadastro */
.resumo-container {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: left;
    font-size: 16px;
    color: black;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 🔹 ESTILO DOS INPUTS E LABELS */
/* 🔹 Garante que os inputs fiquem abaixo das labels */
.form-group {
    text-align: left; /* Alinha a label à esquerda */
    width: 100%;
    margin-bottom: 20px; /* Espaço entre os campos */
    display: flex;
    flex-direction: column; /* Faz os inputs ficarem abaixo das labels */
}

.form-group label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px; /* Dá espaço entre a label e o input */
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: black;
    outline: none;
    transition: 0.3s;
}


.form-group input:focus, 
.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.5);
}

/* 🔹 FORMULÁRIO EM ETAPAS */
.form-step {
    display: none;
    text-align: center;
    padding: 25px 0;
	color: black;
}

/* A etapa ativa fica visível */
.form-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* 🔹 ANIMAÇÃO SUAVE */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 🔹 BOTÕES DE NAVEGAÇÃO (SETAS ALINHADAS) */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
    padding: 0 20px; /* Espaço lateral nas setas */
    margin-bottom: 30px; /* Mais espaço abaixo do container */
}

/* 🔹 SETAS (⬅ e ➡) */
.prev-btn, .next-btn {
    font-size: 28px;
    border: none;
    background: orange;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
    width: 40px; /* Mantém tamanho pequeno e proporcional */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

/* 🔹 POSICIONAMENTO DAS SETAS */
.prev-btn {
    left: 20px; /* Mantém afastado da borda */
}

.next-btn {
    right: 20px; /* Mantém afastado da borda */
}

/* 🔹 EFEITO AO PASSAR O MOUSE - SOMENTE NA SETA */
.prev-btn:hover {
    color: red;
}

.next-btn:hover {
    color: green;
}

/* 🔹 BOTÃO DE CADASTRO */
button {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    background-color: #ff8c00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
}

button:hover {
    background-color: #ff6a00;
    transform: scale(1.05);
}

/* 🔹 MENSAGENS DE ERRO */
.erro-msg {
    color: red;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

/* 🔄 Estilos para o Loading Spinner */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fundo escuro semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none; /* Ocultar por padrão */
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* 🔹 MAPA */
#map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    margin-top: 10px;
}



.option-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.option-group input {
    display: none;
}

.option-group label {
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #ddd;
    cursor: pointer;
    font-size: 16px;
}

.option-group input:checked + label {
    background-color: #28a745;
    color: white;
}
.hidden {
    display: none;
}
/* 🔹 Estilização do container de veículos */
#veiculos-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 🔹 Cada veículo tem um bloco separado */
.veiculo {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.veiculo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
/* 🔹 Remove fundo do botão da lixeira e mantém alinhado à direita */
.removerVeiculo {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 10px; /* 🔹 Fica totalmente alinhado à direita */
    top: 1px; /* 🔹 Alinha no topo */
    width: auto; /* 🔹 Apenas o tamanho do ícone */
    height: auto; /* 🔹 Apenas o tamanho do ícone */
    padding: 0; /* 🔹 Remove espaçamento extra */
    display: flex; /* 🔹 Garante alinhamento correto */
    align-items: center;
    justify-content: center;
}

.removerVeiculo i {
    font-size: 18px;
    color: red;
}

/* 🔹 Remove qualquer efeito de hover */
.removerVeiculo:hover {
    background: none;
}



/* 🔹 Inputs organizados */
.veiculo-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.input-group {
    flex: 1 1 calc(50% - 10px);
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 14px;
    margin-bottom: 5px;
}

.input-group input,
.input-group select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

@media screen and (max-width: 1100px) {
    /* 🔹 O container ocupa 95% da tela e mantém altura ajustável */
    .container {
        max-width: 600px;
        height: 100%;
        padding: 25px;
        border-radius: 10px;
        overflow-y: auto;
        margin-top: 15%;
    }

    /* 🔹 Remove margem do body para evitar deslocamento */
    body {
        padding-top: 0;
        margin-top: 0;
    }

    /* 🔹 Inputs e botões maiores para toque confortável */
    .form-group input,
    .form-group select {
        font-size: 18px;
        padding: 14px;
    }

    /* 🔹 Botões grandes e bem ajustados */
    button {
        font-size: 20px;
        padding: 16px;
        width: 100%;
    }

    /* 🔹 Estilo do mapa para encaixar bem na tela */
    #map {
        width: 100%;
        height: 250px; /* 🔹 Ajustado para celulares */
        border-radius: 10px;
    }

    /* 🔹 Inputs de veículos ajustados para celular */
    .veiculo-content {
        flex-direction: column;
        gap: 12px;
    }

    .input-group {
        flex: 1 1 100%; /* 🔹 Ocupa toda a largura */
    }
}
/* 🔹 Estilização do Menu Hambúrguer */
.menu-hamburguer {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* 🔹 Sidebar */
.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    height: 100%;
    background: #2c3e50;
    color: white;
    transition: left 0.3s;
    padding-top: 60px;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 15px;
    text-align: center;
}

.sidebar button {
    background: none;
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

.sidebar button:hover {
    color: #f39c12;
}

/* 🔹 Botão de Fechar Menu */
.close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* 🔹 Estilização do Aviso de Manutenção */
.maintenance-box {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

/* 🔹 Responsividade */
@media (max-width: 600px) {
    .menu-hamburguer {
        font-size: 20px;
        padding: 8px;
    }

    .sidebar {
        width: 200px;
    }
}

/* Rodapé Refinado */
footer {
    text-align: center;
    padding: 30px;
    background: #004f6e;
    color: white;
    font-size: 16px;
    font-weight: bold;
}