body {
    font-family: 'Lato', sans-serif;
    background-color: #f0f4f8;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.form-container {
    width: 100%;
    max-width: 650px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stage {
    display: none;
}

.stage.active {
    display: block;
}

.form-logo {
    max-width: 180px;
    margin-bottom: 25px;
}

h2 {
    text-align: center;
    color: #004a99;
    /* Azul AIESEC */
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

form {
    text-align: left;
}

/*
  Agrupamento de inputs com label flutuante.
  O label movimenta conforme o estado do input (focus/placeholder-shown).
*/
.input-group {
    position: relative;
    margin-bottom: 22px;
    width: 100%;
}

.input-group input {
    width: 100%;
    margin-top: 10px;
    padding: 14px 12px;
    font-size: 16px;
    border: 1px solid #ccd6eb;
    border: 1px solid #ced4da;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    border-color: #0072ce;
    box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.15);
    outline: none;
}

.input-group input:focus+label {
    color: #0072ce;
}

.input-group input:not(#password) {
    border-radius: 10px !important;
}


.input-group label {
    position: absolute;
    left: 12px;
    top: 35px;
    transform: translateY(-50%);
    padding: 0 4px;
    color: #6c757d;
    transition: 0.2s all;
    pointer-events: none;
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label {
    top: -8px;
    top: 0;
    transform: translateY(-50%);
    font-size: 13px;
    color: #0072ce;
    background-color: #ffffff;
}

/* Estilo para labels gerais que não são flutuantes */
label:not(.form-label):not(.checkbox-label) {
    display: block;
    font-weight: 600;
    color: #3c4d6b;
    margin-bottom: 8px;
    font-size: 15px;
}

.input-group-text {
    margin-top: 10px;
}

/*
  Bloco reutilizável para e-mails e telefones (select + input + botão remover).
  Usa flex para alinhamento e wrap para responsividade.
*/
.campo-multiplo {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.campo-multiplo select {
    flex: 0 0 28%;
    min-width: 120px;
    padding: 12px;
    border-radius: 8px;
    border-radius: 10px;
    border: 1px solid #ccd6eb;
    background-color: #fff;
    font-size: 15px;
}

.campo-multiplo input {
    flex: 1;
    padding: 14px 12px;
    font-size: 16px;
    border: 1px solid #ccd6eb;
    border-radius: 8px;
    border-radius: 10px;
    background-color: #fff;
}

.add-btn,
.remove-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.add-btn {
    background-color: #0072ce;
    color: #fff;
    margin-bottom: 10px;
}

.add-btn:hover {
    background-color: #005a9e;
}

.remove-btn {
    background-color: #dc3545;
    color: #fff;
}

.remove-btn:hover {
    background-color: #a71d2a;
}

.remove-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.error-msg {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
}

/*
  Campo de data com ícone (apenas decorativo) posicionado absoluto.
  A sincronização com o calendário é feita via JS (Pikaday).
*/
.input-calendario {
    position: relative;
    max-width: 100%;
    margin-bottom: 20px;
}

.input-calendario input {
    width: 100%;
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 8px;
    border-radius: 10px;
    border: 1px solid #ccd6eb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-calendario input:focus {
    border-color: #0072ce;
    box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.15);
    outline: none;
}

.input-calendario span {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #0072ce;
    pointer-events: none;
}

.input-extra {
    margin-bottom: 22px;
}

.input-extra select {
    width: 100%;
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 8px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #ccd6eb;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-extra select:focus {
    border-color: #0072ce;
    box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.15);
    outline: none;
}

.input-extra input[type="file"] {
    border: 1px solid #ccd6eb;
    border-radius: 10px;
    padding: 10px;
    font-size: 15px;
    width: 100%;
}

.input-extra input[type="file"]::file-selector-button {
    background-color: #0072ce;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.2s;
}

.checkbox-group {
    margin-top: 18px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #004a99;
    font-weight: 500;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-msg {
    font-size: 13px;
    color: #555;
    margin: 6px 0 0 26px;
    line-height: 1.4;
}

#DadosAqui {
    font-family: 'Lato', sans-serif;
    overflow-wrap: break-word;
    /* força quebra */
    word-wrap: break-word;
    /* compatibilidade */
    white-space: pre-line; /* Isso faz com que múltiplos espaços e quebras de linha virem apenas um espaço */
   
    /* compatibilidade */   
    white-space: normal;
    text-align: left;
    width: 100%;
    line-height: 1.7;
    font-size: 16px;
    color: #3c4d6b;
    margin: 0;
    padding: 0;
}

#DadosAqui strong {
    color: #004a99;
    font-weight: 600;
    display: inline-block;
    min-width: 150px;
}

/*
  Ajuste do modal Bootstrap para abrir mais abaixo (30% do topo).
*/
.modal {
    top: 30%;
}

.modal-backdrop {
    background-color: #ffffff;
}

.modal-title {
    font-family: 'Arial', sans-serif;
    text-align: center;
    font-family: 'Lato', sans-serif;
    color: #004a99;
    font-weight: 600;
    font-weight: 700;
    width: 100%;
    text-align: center;

}

.modal-body {
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
    text-align: left;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f8f9fa;
    font-family: 'Lato', sans-serif;
    padding: 1.5rem;
    background-color: #fff;
}


input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #ccd6eb;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccd6eb;
    border-radius: 8px;
    border-radius: 10px;
    max-height: 150px;
    overflow-y: auto;
    background-color: #fff;
}

li {
    padding: 8px;
    cursor: pointer;
}

li:hover {
    background: #f0f0f0;
}

li.active {
    background: #dbeafe;
}

.tags span {
    background: #0d6efd;
    color: white;
    padding: 5px 8px;
    margin: 3px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
}

.tags span button {
    background: none;
    border: none;
    color: white;
    margin-left: 5px;
    cursor: pointer;
}

.prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next,
.prev {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background-color: #0072ce;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.next:hover {
    background-color: #005a9e;
}

.progress {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    height: 30px;
    color: #666;
}

/* ============================================================================
   SPINNER DE CARREGAMENTO GLOBAL
   ----------------------------------------------------------------------------
   Este spinner pode ser utilizado tanto em modais ("Enviando dados...") quanto
   dentro de botões (por exemplo, "Confirmar" → "Enviando...").
   ============================================================================ */

/* Contêiner centralizado para o modal de carregamento */
.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

/* Spinner circular principal */
/*
  Spinner genérico independente do Bootstrap JS.
  Pode ser usado no overlay global ou embutido em botões (ver .loading).
*/
.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(0, 0, 0, 0.1);
    /* borda mais clara */
    border-top: 4px solid #007bff;
    /* cor principal (azul padrão bootstrap) */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Texto exibido abaixo do spinner */
.spinner-text {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* Animação de rotação contínua */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================================================
   SPINNER EMBUTIDO EM BOTÕES
   ----------------------------------------------------------------------------
   Útil caso queira mostrar carregamento direto no botão "Confirmar".
   Basta adicionar a classe .loading ao botão.
   ============================================================================ */

button.loading {
    position: relative;
    pointer-events: none;
    /* Evita múltiplos cliques */
    opacity: 0.8;
}

button.loading::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.copyright {
    margin: 20px;
    display: block;
    margin-top: 30px;
    color: #004a99;
    font-weight: 500;
}

@media (max-width: 767px) {
    .stage-buttons {
        flex-direction: column-reverse;
    }
}