/* =========================================
   1. RESET E ESTRUTURA GLOBAL
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Roboto', arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    color: #202124;
}

/* =========================================
   2. POSICIONAMENTO (LOGO + BUSCA)
   ========================================= */

.logo-area {
    text-align: center;
    /* Define a altura da logo em relação ao topo da página */
    padding-top: 80px; 
    width: 100%;
    margin-bottom: 0;
}

.main-logo {
    max-width: 272px; /* Tamanho padrão Google */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

h1.subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #5f6368;
    margin-top: 15px;
    text-align: center;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* justify-content: flex-start garante que a busca NÃO desça para o meio da tela */
    justify-content: flex-start; 
    align-items: center;
    width: 100%;
    padding: 20px;
    /* Espaçamento entre o subtítulo da logo e a barra de pesquisa */
    margin-top: 25px; 
}

/* Estilo para o campo invisível de proteção (Honeypot) */
.hp-field {
    position: absolute;
    left: -5000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================
   3. BARRA DE PESQUISA E AUTOCOMPLETE
   ========================================= */
.search-box-wrapper {
    width: 100%;
    max-width: 584px;
    position: relative;
    margin: 0 auto;
    /* Permite que as sugestões flutuem para fora do container */
    overflow: visible !important; 
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    height: 48px;
    width: 100%;
    padding: 0 20px;
    transition: all 0.2s;
    position: relative;
    z-index: 1001;
}

.search-box:hover, .search-box:focus-within {
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
    border-color: rgba(223,225,229,0);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    margin-left: 10px;
    color: #000;
    background: transparent;
}

.search-icon {
    color: #9aa0a6;
    font-size: 18px;
}

/* Lista de Sugestões flutuante */
#custom-suggestions {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white !important;
    border: 1px solid #dfe1e5;
    border-top: none;
    border-radius: 0 0 24px 24px;
    z-index: 99999 !important;
    box-shadow: 0 4px 6px rgba(32,33,36,0.28);
    overflow: hidden;
    margin-top: -1px;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #202124;
    text-align: left;
    display: flex;
    align-items: center;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item i {
    margin-right: 15px;
    color: #9aa0a6;
    font-size: 14px;
}

/* =========================================
   4. BOTÕES E AÇÕES
   ========================================= */
.action-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-google {
    background-color: #f8f9fa;
    border: 1px solid #f8f9fa;
    border-radius: 7px;
    color: #3c4043;
    font-size: 16px;
    padding: 0 13px;
    line-height: 36px;
    height: 36px;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    font-weight: 700;
}

.btn-google:hover {
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid #dadce0;
    color: #021758;
}

.btn-primary-g {
    background-color: #1a73e8;
    color: #fff;
    border: 1px solid #1a73e8;
}

.btn-primary-g:hover {
    background-color: #1b66c9;
}

/* =========================================
   5. COMPONENTES (Animações e Progress)
   ========================================= */
.progress-wrapper {
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 10px;
    margin: 20px 0;
    height: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: #1a73e8;
    transition: width 0.5s ease-out;
}

.input-error {
    border-color: #d93025 !important;
    box-shadow: 0 0 5px rgba(217, 48, 37, 0.3);
}

.input-success {
    border-color: #188038 !important;
    box-shadow: 0 0 5px rgba(24, 128, 56, 0.3);
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   6. RODAPÉ (Sticky Footer)
   ========================================= */
footer {
    width: 100%;
    background-color: #f2f2f2;
    border-top: 1px solid #dadce0;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #70757a;
}

.footer-right a {
    margin-left: 20px;
    text-decoration: none;
    color: #70757a;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* =========================================
   7. RESPONSIVIDADE (Mobile)
   ========================================= */
@media (max-width: 600px) {
    .logo-area { padding-top: 50px; }
    .main-logo { max-width: 180px; }
    .search-box-wrapper { max-width: 95%; }
    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    .footer-right { margin-top: 10px; }
    .footer-right a { margin: 0 10px; }
}