/* ===============================
   RESET GLOBAL
=============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===============================
   BODY / FUNDO
=============================== */
html, body {
    min-height: 100vh;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px;

    background-image: url("../images/fotofundo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: #fff;
}

/* ===============================
   CONTAINER
=============================== */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* ===============================
   LOGO
=============================== */
.foto {
    margin-bottom: 18px;
}

.foto img {
    width: 115px;
    display: block;
    margin: 0 auto;
}

/* ===============================
   CARD
=============================== */
.card {
    background: rgba(255, 255, 255, 0.97);
    width: 100%;
    max-width: 300px;
    padding: 20px 18px;
    border-radius: 26px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    text-align: center;
    color: #222;
}

/* ===============================
   TEXTOS
=============================== */
.card h2 {
    font-size: 19px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #111;
}

.card p {
    font-size: 12px;
    color: #444;
    line-height: 1.5;
    margin: 4px 0;
}

.linha-separadora {
    height: 2px;
    border: none;
    background: linear-gradient(to right, transparent, #b8860b, transparent);
    margin: 14px 0;
}

/* ===============================
   FORMULÁRIO
=============================== */
form {
    width: 100%;
}

label {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    color: #222;
}

/* ===============================
   INPUTS (CORRIGIDO)
=============================== */
input[type="text"],
input[type="tel"],
input[type="date"],
input[type="time"],
select {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1.5px solid #e2e2e2;
    font-size: 14px;
    background: #fff;
    margin-bottom: 14px;
    transition: all 0.25s ease;
    text-align: center;

    height: 44px;              /* ALTURA CORRIGIDA */
    line-height: normal;       /* evita cortar texto */
}

/* Remove bug visual no select */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23999' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

/* Hover */
input:hover,
select:hover {
    border-color: #111;
}

/* Focus */
input:focus,
select:focus {
    outline: none;
    border-color: #b8860b;
    box-shadow: 0 0 0 2px rgba(184,134,11,0.15);
}

/* ===============================
   SERVIÇOS
=============================== */
.servicos {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.servicos label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    background: #f9f9f9;
    border: 1.4px solid #e8e8e8;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.servicos label:hover {
    border-color: #b8860b;
    background: #fffaf0;
}

.servicos input[type="checkbox"] {
    accent-color: #111;
    transform: scale(1);
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* ===============================
   BOTÃO (CORRIGIDO - AGORA COM ESTADO DESABILITADO)
=============================== */
.botao {
    margin-top: 16px;
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #000, #222);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.botao:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}

/* ✅ NOVO: ESTILO PARA BOTÃO DESABILITADO */
.botao:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #666, #888);
    transform: none;
    box-shadow: none;
}

.botao:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===============================
   BOTÃO SECUNDÁRIO (VOLTAR)
=============================== */
#voltarEtapa {
    background: linear-gradient(135deg, #444, #666);
    margin-top: 8px;
}

#voltarEtapa:hover {
    background: linear-gradient(135deg, #555, #777);
}

/* ===============================
   ETAPAS
=============================== */
.etapa {
    display: none;
}

.etapa.ativa {
    display: block;
}

/* ===============================
   TOTAL EM DESTAQUE
=============================== */
#total {
    font-weight: 700;
    color: #b8860b;
    font-size: 16px;
}

/* ===============================
   RESPONSIVO
=============================== */
@media (max-width: 480px) {
    .card {
        max-width: 270px;
        padding: 18px 14px;
    }

    .card h2 {
        font-size: 17px;
    }

    input[type="text"],
    input[type="tel"],
    input[type="date"],
    input[type="time"],
    select {
        height: 46px;  /* levemente maior no celular */
        font-size: 15px;
    }

    .botao {
        padding: 12px;
        font-size: 14px;
    }
}