/* ============================================================
   PGMEI — Overrides sobre Bootstrap 3.4.1
   ============================================================ */

html {
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

/* Wrapper central — margem lateral branca + footer no bottom */
.page-wrap {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    padding: 1px 15px 1px 15px;
    margin-bottom: 1px;
    background-color: #eee;
    border-top: 3px solid #62cb31;
    background-image: url('../images/bkg_header_entes.png');
    background-repeat: no-repeat;
}

.header-inner {
    padding: 8px 0 6px;
}

/* Barra de dados do lead */
.header-info-bar {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 6px 15px;
}

.header-info-item {
    margin: 0;
    font-size: 12px;
    color: #333;
    line-height: 1.6;
}

.info-label {
    font-weight: bold;
    color: #000;
}

.info-value {
    color: #333;
    margin-left: 2px;
}

.pgmei-badge {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
    background-color: #5cb85c;
}

.badge-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.header-subtitle {
    color: #3c763d;
    font-size: 13px;
    margin: 0px;
    padding-left: 2px;
    max-width: 225px;
    line-height: 1.4;
    word-break: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   WELL — área principal
   ============================================================ */

.site-well {
    background-color: #f3f3f3;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-shadow: none;
    padding: 20px 0 40px;
    margin: 0 0 20px 0;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================================
   PANEL
   ============================================================ */

.panel-default {
    border-color: #dddddd;
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.panel-default > .panel-heading {
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
}

.panel-title {
    color: #333;
    font-size: 16px;
    font-weight: normal;
}

/* ============================================================
   BOTÃO CONTINUAR
   ============================================================ */

.btn-success {
    background-image: -webkit-linear-gradient(top, #5cb85c 0, #419641 100%);
    background-image:         linear-gradient(to bottom, #5cb85c 0, #419641 100%);
    border-color: #3e8f3e;
}

.btn-success:hover,
.btn-success:focus {
    background-image: -webkit-linear-gradient(top, #419641 0, #357935 100%);
    background-image:         linear-gradient(to bottom, #419641 0, #357935 100%);
    border-color: #3e8f3e;
}

/* ── Placeholder da máscara CNPJ — cor escura, some ao digitar ── */
.form-control::-webkit-input-placeholder { color: #555; opacity: 1; }
.form-control::-moz-placeholder          { color: #555; opacity: 1; }
.form-control:-ms-input-placeholder      { color: #555; opacity: 1; }
.form-control::placeholder               { color: #555; opacity: 1; }

/* ── Borda azul no foco (reforço sobre Bootstrap) ── */
.form-control:focus {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
            box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

/* ============================================================
   CAPTCHA INFO
   ============================================================ */

.captcha-info {
    color: #555555;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.6;
}

.captcha-info strong {
    color: #333;
}

.captcha-info a {
    color: #0055cc;
    text-decoration: none;
}

.captcha-info a:hover {
    text-decoration: underline;
}

.form-error {
    display: block;
    color: #a94442;
    font-size: 11px;
    margin-top: 3px;
    min-height: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    margin-top: auto;
    background-color: #f0f0e8;
    border-top: 1px solid #d0d0bc;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

.footer-versao {
    font-size: 12px;
    color: #555;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.footer-simples {
    font-size: 11px;
    font-weight: bold;
    color: #3a7a18;
    letter-spacing: 1.5px;
}

.footer-nacional {
    font-size: 11px;
    font-weight: bold;
    color: #c8a800;
    letter-spacing: 1.5px;
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 767px) {
    .site-well {
        padding: 14px 0 30px;
    }

    .panel {
        margin: 0 10px;
    }

    .col-md-offset-1 {
        margin-left: 0 !important;
    }

    .header-subtitle {
        font-size: 16px;
    }
}
