/* Estilos da página de cadastro do ClimaHub. Extraído de cadastro.php (era <style> inline). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    background: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 16px;
}
.cs-cadastro-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    width: 100%;
    max-width: 680px;
    padding: 32px 36px;
    margin-top: 16px;
}
.cs-cadastro-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.cs-cadastro-logo img { max-height: 48px; max-width: 180px; object-fit: contain; }
.cs-cadastro-logo-icon { width: 44px; height: 44px; background: #008ee6; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.cs-cadastro-titulo { font-size: 22px; font-weight: 700; color: #0f172a; text-align: center; margin-bottom: 6px; }
.cs-cadastro-subtitulo { font-size: 14px; color: #64748b; text-align: center; margin-bottom: 24px; }

/* ── Wizard Steps (bolinha EM CIMA do label — redesenho 19/07) ── */
.cs-wizard-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; margin-bottom: 28px; }
.cs-wizard-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 70px; }
.cs-wizard-step-circle {
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; border: 2px solid #e2e8f0; color: #94a3b8; background: #fff; transition: all .2s;
    flex-shrink: 0;
}
.cs-wizard-step.ativo .cs-wizard-step-circle { border-color: #008ee6; color: #008ee6; }
.cs-wizard-step.atual .cs-wizard-step-circle { background: #008ee6; color: #fff; border-color: #008ee6; box-shadow: 0 0 0 4px rgba(0,142,230,.14); }
.cs-wizard-step.concluido .cs-wizard-step-circle { background: #22c55e; color: #fff; border-color: #22c55e; }
.cs-wizard-step-label { font-size: 11px; font-weight: 600; color: #94a3b8; white-space: nowrap; }
.cs-wizard-step.ativo .cs-wizard-step-label { color: #0f172a; }
.cs-wizard-step-line { width: 26px; height: 2px; background: #e2e8f0; margin: 17px 2px 0; flex-shrink: 0; border-radius: 2px; }
.cs-wizard-step-line.ativo { background: #008ee6; }
@media (max-width: 560px) {
    .cs-wizard-step { min-width: 52px; }
    .cs-wizard-step-circle { width: 28px; height: 28px; font-size: 12px; }
    .cs-wizard-step-label { font-size: 9.5px; }
    .cs-wizard-step-line { width: 12px; margin-top: 14px; }
}

/* ── Formulário ── */
.cs-cadastro-secao { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; margin: 20px 0 12px; padding-bottom: 6px; border-bottom: 1px solid #f1f5f9; }
.cs-cadastro-secao:first-of-type { margin-top: 0; }
.cs-cadastro-campo { margin-bottom: 14px; }
.cs-cadastro-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-end-grid-a { display: grid; grid-template-columns: 140px 1fr 90px; gap: 10px; }
.cs-end-grid-b { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr 64px; gap: 10px; }
@media (max-width: 560px) {
    .cs-cadastro-row { grid-template-columns: 1fr; }
    .cs-end-grid-a { grid-template-columns: 120px 1fr; }
    .cs-end-grid-a > :nth-child(3) { grid-column: span 2; }
    .cs-end-grid-b { grid-template-columns: 1fr 1fr; }
}
.cs-cadastro-label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 5px; }
.cs-cadastro-input, .cs-cadastro-select {
    width: 100%; padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-size: 14px; font-family: inherit; color: #0f172a; background: #fff;
    transition: border-color .15s, box-shadow .15s; outline: none;
}
.cs-cadastro-input:focus, .cs-cadastro-select:focus { border-color: #008ee6; box-shadow: 0 0 0 3px rgba(0,142,230,.12); }
.cs-cadastro-input::placeholder { color: #94a3b8; }
.cs-cadastro-hint { font-size: 11px; color: #94a3b8; margin-top: 4px; }

/* ── Repeaters (padrão Padroes.php) ── */
.cs-repeater-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.cs-repeater-add {
    display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px;
    border: 1.5px solid #e2e8f0; border-radius: 8px; background: #fff; font-size: 12px;
    font-weight: 600; color: #64748b; cursor: pointer; font-family: inherit; transition: all .15s; margin-top: 4px;
}
.cs-repeater-add:hover { border-color: #008ee6; color: #008ee6; }
.cs-repeater-remove {
    background: none; border: none; cursor: pointer; color: #94a3b8; padding: 6px 4px;
    display: flex; flex-shrink: 0; transition: color .15s;
}
.cs-repeater-remove:hover { color: #ef4444; }
.cs-repeater-radio { width: 16px; height: 16px; accent-color: #008ee6; cursor: pointer; }

/* ── Endereço card (padrão Padroes.php) ── */
.cs-endereco-card {
    border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; margin-bottom: 10px;
    display: flex; flex-direction: column; gap: 8px;
}
.cs-endereco-card-header { display: flex; justify-content: flex-end; margin-bottom: -2px; }

/* ── Radio choice ── */
.cs-radio-group { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cs-radio-option {
    flex: 1; min-width: 200px; padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 10px;
    cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 10px;
}
.cs-radio-option:hover { border-color: #7ec8f0; }
.cs-radio-option.selecionado { border-color: #008ee6; box-shadow: 0 0 0 3px rgba(0,142,230,.12); }
.cs-radio-option-dot {
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d1d5db; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.cs-radio-option.selecionado .cs-radio-option-dot { border-color: #008ee6; }
.cs-radio-option.selecionado .cs-radio-option-dot::after {
    content: ''; width: 8px; height: 8px; border-radius: 50%; background: #008ee6;
}
.cs-radio-option-label { font-size: 13px; font-weight: 500; color: #374151; }

/* ── Cards tipo de site (Step 3) ── */
.cs-tipo-card {
    border: 2px solid #e2e8f0; border-radius: 12px; padding: 24px 20px; cursor: pointer;
    transition: all .2s; position: relative; text-align: center;
}
.cs-tipo-card:hover { border-color: #7ec8f0; box-shadow: 0 2px 12px rgba(0,142,230,.1); }
.cs-tipo-card.selecionado { border-color: #008ee6; box-shadow: 0 0 0 3px rgba(0,142,230,.15), 0 4px 16px rgba(0,142,230,.12); }
.cs-tipo-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.cs-tipo-card h3 { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 2px; letter-spacing: -.2px; }
.cs-tipo-card p { font-size: 12px; color: #64748b; line-height: 1.5; }
.cs-tipo-badge { position: absolute; top: -9px; right: 12px; background: #008ee6; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 10px; border-radius: 20px; text-transform: uppercase; }
.cs-tipos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
@media (max-width: 520px) { .cs-tipos-grid { grid-template-columns: 1fr; } }

/* ── Serviços (Step 4) ── */
.cs-servico-item {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px;
    border: 1.5px solid #e5e7eb; border-radius: 10px; margin-bottom: 8px; transition: all .15s;
}
.cs-servico-item:hover { border-color: #7ec8f0; background: #f8fbfe; }
.cs-servico-item.is-on { border-color: #008ee6; background: #f0f9ff; }
.cs-servico-item.is-on .cs-servico-titulo { color: #0369a1; }
.cs-servico-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cs-servico-info { flex: 1; display: flex; align-items: center; gap: 8px; }
.cs-servico-titulo { font-size: 13px; font-weight: 600; color: #0f172a; }
.cs-servico-destaque { font-size: 10px; font-weight: 700; background: #dbeafe; color: #1d4ed8; padding: 1px 8px; border-radius: 20px; }
.cs-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.cs-toggle input { opacity: 0; width: 0; height: 0; }
.cs-toggle-slider {
    position: absolute; cursor: pointer; inset: 0; background: #e2e8f0; border-radius: 22px; transition: .2s;
}
.cs-toggle-slider::before {
    content: ''; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: .2s;
}
.cs-toggle input:checked + .cs-toggle-slider { background: #008ee6; }
.cs-toggle input:checked + .cs-toggle-slider::before { transform: translateX(18px); }

/* ── Dropzone (Step 5 — redesenho 19/07) ── */
.cs-dropzone {
    border: 2px dashed #cbd5e1; border-radius: 12px; padding: 24px 16px; text-align: center;
    cursor: pointer; color: #64748b; transition: all .15s; background: #fafcfe;
}
.cs-dropzone:hover { border-color: #008ee6; background: #f0f9ff; color: #0369a1; }
.cs-dropzone.is-drag { border-color: #008ee6; background: #e0f2fe; box-shadow: 0 0 0 4px rgba(0,142,230,.12); }
.cs-dropzone.has-file { border-style: solid; border-color: #86efac; background: #f0fdf4; }
.cs-dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; pointer-events: none; }
.cs-dropzone-inner.is-ok { color: #166534; }
.cs-dropzone-hint { font-size: 11.5px; color: #94a3b8; }

/* ── Info box (código revenda) ── */
.cs-info-box {
    margin-top: 8px; padding: 10px 14px; background: #fffbeb; border: 1px solid #fde68a;
    border-radius: 8px; font-size: 12px; color: #92400e; line-height: 1.5;
}

/* ── Navegação ── */
.cs-wizard-nav { display: flex; gap: 12px; margin-top: 24px; }
.cs-btn-voltar {
    padding: 12px 24px; background: #fff; color: #64748b; border: 1.5px solid #e2e8f0;
    border-radius: 8px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all .15s;
}
.cs-btn-voltar:hover { border-color: #94a3b8; color: #0f172a; }
.cs-btn-proximo, .cs-cadastro-btn {
    flex: 1; padding: 12px 24px; background: #008ee6; color: #fff; border: none;
    border-radius: 8px; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .1s;
}
.cs-btn-proximo:hover, .cs-cadastro-btn:hover { background: #0070b8; }
.cs-btn-proximo:active, .cs-cadastro-btn:active { transform: scale(.99); }
.cs-cadastro-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ── Erro ── */
.cs-cadastro-erro { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #dc2626; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* ── Sucesso ── */
.cs-cadastro-sucesso { text-align: center; padding: 40px 20px; }
.cs-cadastro-sucesso-icone { width: 64px; height: 64px; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.cs-cadastro-sucesso h2 { font-size: 20px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.cs-cadastro-sucesso p { font-size: 14px; color: #64748b; line-height: 1.6; margin-bottom: 24px; }
.cs-cadastro-sucesso-link {
    display: inline-block; padding: 10px 24px; background: #008ee6; color: #fff; border-radius: 8px;
    font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s;
}
.cs-cadastro-sucesso-link:hover { background: #0070b8; }

/* ── Login link ── */
.cs-cadastro-login { text-align: center; margin-top: 20px; font-size: 13px; color: #64748b; }
.cs-cadastro-login a { color: #008ee6; text-decoration: none; font-weight: 500; }
.cs-cadastro-login a:hover { text-decoration: underline; }
.cs-cadastro-rodape { text-align: center; margin-top: 32px; font-size: 12px; color: #94a3b8; }

@keyframes cs-spin { to { transform: rotate(360deg); } }

/* ── MINIMALISTA (Cadastro 2.0 — feedback Julio 13/07): form concentrado,
      menos respiro, cabe num notebook sem virar rolagem infinita. ── */
.cs-cadastro-card { max-width: 640px !important; padding: 24px 28px !important; }
.cs-mais-opcoes { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; background: #f8fafc; }
.cs-mais-opcoes summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #334155; list-style: none; }
.cs-mais-opcoes summary::before { content: '▸ '; color: #94a3b8; }
.cs-mais-opcoes[open] summary::before { content: '▾ '; }
.cs-mais-opcoes summary::-webkit-details-marker { display: none; }
.cs-cadastro-card h1 { font-size: 21px !important; margin-bottom: 2px !important; }
.cs-cadastro-card > p, .cs-cadastro-sub { font-size: 13px !important; }
.cs-cadastro-input { padding: 8px 11px !important; font-size: 14px !important; }
.cs-cadastro-label { font-size: 12.5px !important; margin-bottom: 3px !important; }
.cs-cadastro-campo { margin-bottom: 11px !important; }
.cs-cadastro-row { gap: 10px !important; }
.cs-cadastro-secao { margin-top: 16px !important; margin-bottom: 8px !important; font-size: 11.5px !important; }
.cs-cadastro-hint { font-size: 11.5px !important; }
.cs-repeater-row { margin-bottom: 6px !important; }
.cs-cadastro-logo img { max-height: 40px; }
.cs-tipo-card { padding: 14px !important; }
.cs-tipo-card h3 { font-size: 18px !important; }
.cs-tipo-card p { font-size: 12px !important; }