/* --------------------------- */
/* BASE */
/* --------------------------- */
body {
    margin: 0;
    background: #f2f5fa;
    font-family: 'Segoe UI', sans-serif;
    color: #1c1c1c;
}

.page {
    width: 100%;
}

/* --------------------------- */
/* HEADER */
/* --------------------------- */
.top-bar {
    background: white;
    border-bottom: 1px solid #e5eaf0;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0077e6;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 22px;
}

.top-title .brand {
    font-size: 18px;
    font-weight: 600;
    color: #0b305b;
}

.top-title .section {
    font-size: 14px;
    color: #4a5a70;
}

/* --------------------------- */
/* CONTENT WRAPPER */
/* --------------------------- */
.content {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 22px;
}

/* --------------------------- */
/* CARD */
/* --------------------------- */
.card {
    background: white;
    border-radius: 14px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    border: 1px solid #e3e8f1;
}

.card h1,
.card h2 {
    margin: 0;
    color: #0c2a50;
    font-weight: 700;
    font-size: 22px;
}

.subtitle {
    font-size: 15px;
    color: #596779;
    margin: 12px 0 20px;
}

/* --------------------------- */
/* FORM — OPÇÃO B CORRIGIDA */
/* --------------------------- */

.alert {
    background: #fff4d6;
    border: 1px solid #ffcc80;
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.alert strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #b15500;
}


.form-grid {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 22px;        /* ESPAÇAMENTO REAL ENTRE INPUTS */
    align-items: end;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Inputs */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    color: #2f3c4d;
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cad3df;
    border-radius: 10px;
    background: #f9fbfe;
    font-size: 15px;
    box-sizing: border-box;   /* IMPEDE DE ENCOSTAR E ESTOURAR */
}

input:focus {
    border-color: #0077e6;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,119,230,.20);
}

/* BOTÃO DIREITA COM ESPAÇO */
.btn-primary {
    height: 48px;
    padding: 0 26px;
    white-space: nowrap;
    border: none;
    border-radius: 10px;
    background: #0077e6;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 3px;   /* SEPARAÇÃO DO CAMPO MORADA */
}

.btn-primary:hover {
    background: #0065c4;
}

/* --------------------------- */
/* RESULTADO */
/* --------------------------- */
.resultado {
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 15px;
}

.resultado.ok {
    background: #e9f9ef;
    border-left: 5px solid #27ae60;
}

.resultado.error {
    background: #fdeaea;
    border-left: 5px solid #c0392b;
}

.resultado.info {
    background: #e9f1ff;
    border-left: 5px solid #0077e6;
}

.badge {
    display: inline-block;
    background: #0077e6;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* --------------------------- */
/* MAPA */
/* --------------------------- */
.map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

/* --------------------------- */
/* FOOTER */
/* --------------------------- */
.footer {
    text-align: center;
    padding: 25px;
    color: #748091;
    font-size: 14px;
}
/* --------------------------- */
/* RESPONSIVO MOBILE */
/* --------------------------- */

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .btn-primary {
        width: 100%;
        margin-top: 0;
        height: 50px;
        font-size: 16px;
    }

    .form-group label {
        font-size: 15px;
    }

    input {
        font-size: 16px;
        padding: 14px 16px;
    }

    .card {
        padding: 22px;
    }

    .map {
        height: 300px;
    }
}
