/************************************************************
 APB — TEMA RECANTO DO LAGO — V02
 APARTAMENTO BRUNA — PROJETO DE INTERIORES
 Arquivo completo para substituir integralmente o custom.css
************************************************************/


/* =========================================================
   1) VARIÁVEIS VISUAIS
   ========================================================= */

:root {
    --apb-texto: #20323d;
    --apb-texto-secundario: #5f706f;
    --apb-titulo: #304642;
    --apb-destaque: #5f7975;

    --apb-fundo-1: #eef5f4;
    --apb-fundo-2: #ddeae6;
    --apb-fundo-3: #cfdeda;
    --apb-fundo-4: #c3d6d0;

    --apb-card: rgba(255, 255, 255, 0.84);
    --apb-card-forte: rgba(255, 255, 255, 0.94);
    --apb-card-footer: rgba(255, 255, 255, 0.90);

    --apb-borda: rgba(88, 117, 112, 0.18);
    --apb-sombra-suave: 0 10px 28px rgba(32, 50, 61, 0.08);
    --apb-sombra-media: 0 18px 50px rgba(32, 50, 61, 0.12);
}


/* =========================================================
   2) BASE GERAL
   ========================================================= */

html {
    min-height: 100%;
    background: var(--apb-fundo-3) !important;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--apb-texto);
    box-sizing: border-box;

    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.20), transparent 20%),
        linear-gradient(
            180deg,
            var(--apb-fundo-1) 0%,
            var(--apb-fundo-2) 38%,
            var(--apb-fundo-3) 72%,
            var(--apb-fundo-4) 100%
        ) !important;

    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* =========================================================
   3) ESTRUTURA EXTERNA DO LIMESURVEY
   ========================================================= */

#outerframeContainer,
.outerframe,
.survey-list,
.survey-list-wrapper,
#main-col,
.main-content,
.survey-container,
.container-fluid {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}


/* =========================================================
   4) CARTÃO PRINCIPAL
   ========================================================= */

#content,
.survey-main-col {
    width: calc(100% - 32px);
    max-width: 1160px;

    margin: 24px auto 28px auto;
    padding: 28px;

    background: var(--apb-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 24px;

    box-shadow: var(--apb-sombra-media);

    min-height: auto !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}


/* =========================================================
   5) REMOVE EXCESSOS / DUPLICAÇÕES VISUAIS
   ========================================================= */

.container,
.question-container,
.group-container,
.well,
.panel,
.panel-body,
.jumbotron {
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
}

.survey-list,
.survey-list-wrapper,
.survey-list .row,
.survey-list-wrapper .row {
    min-height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* =========================================================
   6) IMAGEM PRINCIPAL
   ========================================================= */

.apb-empreendimento-capa {
    display: block !important;
    width: 100%;
    max-width: 1100px;
    height: 360px;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 34px auto;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(32, 50, 61, 0.16);
}


/* =========================================================
   7) TIPOGRAFIA
   ========================================================= */

body,
button,
input,
select,
textarea {
    color: var(--apb-texto);
}

h1,
h2,
h3,
h4,
h5,
h6,
.survey-list-heading {
    color: var(--apb-titulo) !important;
    font-weight: 600;
}

.text-muted,
.survey-list-contact,
.text-secondary,
.help-block {
    color: var(--apb-texto-secundario) !important;
}

a {
    color: var(--apb-destaque);
}

p,
li,
label,
div,
span {
    color: inherit;
}


/* =========================================================
   8) ÁREA DE BOAS-VINDAS / TEXTO INICIAL
   ========================================================= */

.survey-description,
.welcome-survey,
.survey-welcome,
.survey-list-empty,
.list-surveys-text {
    color: var(--apb-texto) !important;
}

.survey-list-heading {
    margin-bottom: 18px !important;
}


/* =========================================================
   9) BARRA SUPERIOR
   ========================================================= */

.navbar,
.top-container {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 0 !important;
    box-shadow: 0 3px 14px rgba(32, 50, 61, 0.08);
}


/* =========================================================
   10) BOTÕES
   ========================================================= */

.btn-primary {
    color: #ffffff !important;
    background-color: var(--apb-destaque) !important;
    border-color: var(--apb-destaque) !important;
    border-radius: 10px;
    box-shadow: 0 5px 14px rgba(32, 50, 61, 0.12);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #ffffff !important;
    background-color: #536c68 !important;
    border-color: #536c68 !important;
}

.btn-default,
.btn-secondary {
    color: var(--apb-texto) !important;
    background-color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(77, 110, 106, 0.22) !important;
    border-radius: 10px;
}


/* =========================================================
   11) CAMPOS DE FORMULÁRIO
   ========================================================= */

.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="tel"],
textarea,
select {
    color: var(--apb-texto) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(77, 110, 106, 0.24) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: #7e9b95 !important;
    box-shadow: 0 0 0 3px rgba(126, 155, 149, 0.14) !important;
    outline: none !important;
}


/* =========================================================
   12) REMOVE O RODAPÉ NATIVO DO LIMESURVEY
   ========================================================= */

footer,
#footer,
.footer,
.survey-footer,
.ls-footer,
.powered-by,
.poweredby,
.copyright,
.survey-copyright,
.navbar-fixed-bottom {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

img[src$="poweredby.png"],
img[src*="/poweredby.png"],
img[alt*="LimeSurvey"],
img[title*="LimeSurvey"],
a[href="https://www.limesurvey.org/"],
a[href="https://www.limesurvey.org"],
a[href*="limesurvey.org"],
a[title="Online Surveytool"] {
    display: none !important;
    visibility: hidden !important;
}


/* =========================================================
   13) RODAPÉ OFICIAL APB
   ========================================================= */

body::after {
    content:
        "APARTAMENTO BRUNA — PROJETO DE INTERIORES\A"
        "Questionários APB — Recanto do Lago\A"
        "Uso restrito às moradoras e responsáveis pelo projeto.";

    display: block;
    width: calc(100% - 32px);
    max-width: 1100px;

    margin: 18px auto 34px auto;
    padding: 24px 24px;

    white-space: pre-line;
    text-align: center;

    color: #4e5f5d;
    font-size: 14px;
    line-height: 1.65;
    font-weight: 600;

    background: var(--apb-card-footer);
    border: 1px solid var(--apb-borda);
    border-radius: 18px;

    box-shadow: var(--apb-sombra-suave);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}


/* =========================================================
   14) AJUSTE DE ESPAÇOS FINAIS
   ========================================================= */

#outerframeContainer,
.outerframe,
#main-col,
.main-content,
.survey-container,
.survey-list,
.survey-list-wrapper,
.container,
.container-fluid {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body > br:last-child,
body > p:empty:last-child,
body > div:empty:last-child {
    display: none !important;
}


/* =========================================================
   15) RESPONSIVIDADE — TABLET
   ========================================================= */

@media (max-width: 768px) {
    body {
        background-attachment: scroll !important;
    }

    #content,
    .survey-main-col {
        width: calc(100% - 20px);
        padding: 16px;
        margin-top: 12px;
        margin-bottom: 18px;
        border-radius: 16px;
    }

    .apb-empreendimento-capa {
        height: 220px;
        border-radius: 14px;
        margin-bottom: 24px;
    }

    h1,
    h2,
    h3,
    .survey-list-heading {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    body::after {
        width: calc(100% - 20px);
        margin: 14px auto 20px auto;
        padding: 18px 14px;
        border-radius: 14px;
        font-size: 13px;
        line-height: 1.6;
    }
}


/* =========================================================
   16) RESPONSIVIDADE — CELULAR
   ========================================================= */

@media (max-width: 480px) {
    #content,
    .survey-main-col {
        width: calc(100% - 16px);
        padding: 12px;
        border-radius: 12px;
    }

    .apb-empreendimento-capa {
        height: 180px;
        border-radius: 12px;
    }

    h1,
    h2,
    h3,
    .survey-list-heading {
        font-size: 1.3rem;
    }

    body::after {
        width: calc(100% - 16px);
        margin: 12px auto 16px auto;
        padding: 16px 10px;
        border-radius: 12px;
        font-size: 12px;
        line-height: 1.55;
    }
}

/* REMOVE DICAS AUTOMÁTICAS EM INGLÊS DO LIMESURVEY */

.emtip,
.ls-em-tip,
.ls-questionhelp .emtip,
.questionhelp .emtip,
.upload-file .emtip,
.upload-file .ls-em-tip {
    display: none !important;
}
