/* ===========================================================================
   PÁGINAS DE FORMULÁRIO NO DESENHO DO SITE ANTIGO (membership-page DO TEMA HOUZEZ):
   O TÍTULO CENTRALIZADO, O BLOCO COM A FAIXA "Dados do ..." E OS CAMPOS, E O BOTÃO
   À DIREITA. OS CAMPOS SÃO O form-control DO BOOTSTRAP: 34px EM QUALQUER LARGURA
   (OS SELETORES, seletor.css, SOBEM PARA 50px ATÉ 991px, COMO NO SITE ANTIGO).
   =========================================================================== */

.form-topo {
    margin: 35px 0;
}

@media (max-width: 991px) {
    .form-topo { padding-top: 48px; }
    .form-topo__miolo { margin-bottom: 40px; }
}

@media (max-width: 767px) {
    .form-topo { padding-top: 38px; }
    .form-topo__miolo { margin-bottom: 30px; }
}

.form-topo__titulo {
    margin: 10px 0;
    padding: 0;
    font-size: 36px;
    font-weight: 500;
    line-height: 42px;
    text-align: center;
}

@media (min-width: 768px) and (max-width: 991px) {
    .form-topo__titulo { font-size: 30px; line-height: 26px; }
}

@media (max-width: 767px) {
    .form-topo__titulo { font-size: 24px; line-height: 30px; }
}

.form-topo__subtitulo {
    margin: 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
    text-align: center;
}

@media (max-width: 767px) {
    .form-topo__subtitulo { font-size: 14px; line-height: 18px; }
}

/* O BLOCO (account-block): A FAIXA DO TÍTULO E A CAIXA DOS CAMPOS, COM BORDA #e5e5e5. */
.form-bloco__cabeca {
    position: relative;
    height: 57px;
    margin-top: 20px;
    padding: 14px 30px;
    border: 1px solid #e5e5e5;
    background-color: #fff;
}

.form-bloco__titulo {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
}

.form-bloco__corpo {
    padding: 30px 30px 10px;
    border: 1px solid #e5e5e5;
    border-top: 0;
    background-color: #fff;
}

/* AS COLUNAS (col-sm-*): LADO A LADO A PARTIR DE 768px; NO CELULAR, UMA EMBAIXO DA OUTRA. */
.form-campos::after {
    content: "";
    display: table;
    clear: both;
}

@media (min-width: 768px) {
    .form-coluna { float: left; }
    .form-coluna--1 { width: 8.33333333%; }
    .form-coluna--2 { width: 16.66666667%; }
    .form-coluna--3 { width: 25%; }
    .form-coluna--4 { width: 33.33333333%; }
    .form-coluna--5 { width: 41.66666667%; }
    .form-coluna--6 { width: 50%; }
    .form-coluna--12 { width: 100%; }
}

.campo {
    margin-bottom: 20px;
}

.campo label,
.campo__rotulo {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: bold;
}

.campo__caixa {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.42857143;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

textarea.campo__caixa {
    height: auto;
    overflow: auto;
}

/* AS OBSERVAÇÕES DO "PEÇA SEU IMÓVEL": 100px DE ALTURA, COMO NO SITE ANTIGO. */
textarea.campo__caixa--alta {
    height: 100px;
}

.campo__caixa::placeholder {
    color: #999;
}

.campo__caixa:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

/* O BOTÃO DE ENVIAR, À DIREITA (account-block text-right). */
.form-acoes {
    margin-top: 30px;
    text-align: right;
}

/* NO "PEÇA SEU IMÓVEL" O ESPAÇO É SÓ OS 20px DO BOTÃO (NO SITE ANTIGO O BLOCO DO BOTÃO FICA DENTRO DO ANTERIOR). */
.form-acoes--respiro {
    margin-top: 0;
}

.form-acoes--respiro .form-botao {
    margin-top: 20px;
}

.form-botao {
    display: inline-block;
    padding: 11px 15px;
    border: 0;
    border-radius: 4px;
    background-color: var(--azul);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.42857;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

@media (max-width: 991px) {
    .form-botao { padding: 15px; }
}

.form-botao:hover,
.form-botao:focus {
    background-color: var(--vermelho);
    color: #fff;
}

.form-botao:active {
    background-color: var(--azul);
}

.form-botao:disabled {
    opacity: .65;
    cursor: wait;
}

/* A ISCA ANTI-ROBÔ (form-controle.php): FORA DA TELA. */
.isca {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* O AVISO DO ENVIO SEM JAVASCRIPT (aviso-envio.php) E O DE RESERVA DO formulario.js. */
.aviso {
    margin: 15px 0 0;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    text-align: left;
}

.aviso--ok { background: #dff0d8; color: #3c763d; }
.aviso--erro { background: #f2dede; color: #a94442; }

.aviso .icone { margin-right: 6px; }

/* ---- DEPOIMENTO (pages/enviar-depoimento.php): A NOTA EM ESTRELAS E A FOTO ---------------------------------------- */

/* OS RÁDIOS VÊM DO 5 PARA O 1 E A LINHA É INVERTIDA: "~" PINTA A MARCADA E AS DA ESQUERDA (SEM JS). */
.depo-estrelas {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    height: 34px;
    align-items: center;
}

.depo-estrelas input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.campo .depo-estrelas label {
    margin: 0;
    cursor: pointer;
}

.depo-estrelas svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: #dedede;
    transition: fill .15s ease;
}

.depo-estrelas input:checked ~ label svg,
.depo-estrelas label:hover svg,
.depo-estrelas label:hover ~ label svg {
    fill: #f5b301;
}

.depo-estrelas input:focus-visible + label svg {
    outline: 2px solid #66afe9;
    outline-offset: 2px;
}

.depo-foto {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.depo-foto__previa {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.depo-foto__arquivo {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.campo .depo-foto__botao {
    margin: 0;
    padding: 7px 14px;
    border: 1px solid var(--azul);
    border-radius: 4px;
    color: var(--azul);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease;
}

.campo .depo-foto__botao:hover,
.depo-foto__arquivo:focus-visible + .depo-foto__nome,
.depo-foto__arquivo:focus-visible ~ .depo-foto__botao {
    background-color: var(--azul);
    color: #fff;
}

.depo-foto__nome {
    color: #727272;
    font-size: 13px;
}
