/**
 * Arquivo: css/estilo-formulario.css
 * Descrição: Estilização visual completa do formulário por etapas, 
 * botões de navegação, seletores de modelos e chaves switches táteis.
 */

#cc-plugin-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
    box-sizing: border-box;
}

#cc-plugin-container * {
    box-sizing: border-box;
}

/* Títulos e Parágrafos */
#cc-plugin-container h2 {
    font-size: 24px;
    color: #111111;
    margin-bottom: 10px;
    font-weight: 700;
}

#cc-plugin-container h3 {
    font-size: 18px;
    color: #0056b3;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

#cc-plugin-container h4 {
    font-size: 16px;
    color: #222222;
    margin-top: 15px;
    margin-bottom: 10px;
}

#cc-plugin-container p {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 15px;
}

/* Observações pequenas abaixo dos campos */
.cc-obs {
    display: block;
    font-size: 12px;
    color: #777777;
    margin-bottom: 5px;
    font-style: italic;
}

/* Linha Divisória */
#cc-plugin-container hr {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 30px 0;
}

/* =========================================================================
   ESTRUTURA DE CAMPOS DE ENTRADA (INPUTS / SELECTS / TEXTAREAS)
   ========================================================================= */
.cc-grupo-campo {
    margin-bottom: 18px;
}

.cc-grupo-campo label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #222222;
}

.cc-grupo-campo input[type="text"],
.cc-grupo-campo input[type="email"],
.cc-grupo-campo input[type="tel"],
.cc-grupo-campo select,
.cc-grupo-campo textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 15px;
    background-color: #fafafa;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cc-grupo-campo input:focus,
.cc-grupo-campo select:focus,
.cc-grupo-campo textarea:focus {
    border-color: #0056b3;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Caixa de Checkbox Simples (Termos LGPD) */
.cc-campo-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f4f7f6;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    margin: 20px 0;
}

.cc-campo-checkbox input[type="checkbox"] {
    margin-top: 4px;
    scale: 1.2;
    cursor: pointer;
}

.cc-campo-checkbox label {
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    color: #333333;
}

/* =========================================================================
   GRID DOS SELETORES DE MODELOS (ETAPA 1)
   ========================================================================= */
.cc-grid-modelos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.cc-opcao-modelo {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.cc-opcao-modelo:hover {
    border-color: #b0b0b0;
}

/* Quando o Radio Button estiver marcado, destaca o card */
.cc-opcao-modelo input[type="radio"]:checked + label {
    color: #0056b3;
    font-weight: bold;
}

.cc-opcao-modelo:has(input[type="radio"]:checked) {
    border-color: #0056b3;
    background-color: #f8fbff;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.08);
}

.cc-opcao-modelo label {
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: block;
}

/* Placeholder da foto do modelo */
.cc-preview-foto-modelo {
    border: 1px dashed #cccccc;
    border-radius: 4px;
    font-size: 12px;
}

/* =========================================================================
   BOTÕES DE AÇÃO E NAVEGAÇÃO
   ========================================================================= */
.cc-btn-proximo,
.cc-btn-voltar,
.cc-btn-secundario {
    padding: 13px 25px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
    display: inline-block;
}

.cc-btn-proximo {
    background: #0056b3;
    color: #ffffff;
}

.cc-btn-proximo:hover {
    background: #004085;
}

.cc-btn-voltar {
    background: #e2e8f0;
    color: #4a5568;
    margin-right: 10px;
}

.cc-btn-voltar:hover {
    background: #cbd5e1;
}

.cc-btn-secundario {
    background: #f1f5f9;
    color: #0056b3;
    border: 1px solid #cbd5e1;
    padding: 10px 18px;
    font-size: 14px;
}

.cc-btn-secundario:hover {
    background: #e2e8f0;
}

/* =========================================================================
   ESTILIZAÇÃO DAS CHAVINHAS LIGA/DESLIGA (SWITCHES)
   ========================================================================= */
.cc-chave-switch {
    margin: 15px 0;
}

.cc-chave-switch label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    user-select: none;
    color: #222222;
}

.cc-chave-switch input {
    display: none; /* Esconde o checkbox feio nativo */
}

/* O corpo da pista do interruptor */
.cc-slider {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    background-color: #ccc;
    border-radius: 22px;
    transition: background-color 0.3s;
}

/* A bolinha interna do interruptor */
.cc-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Estado de ativo (ligado) */
.cc-chave-switch input:checked + .cc-slider {
    background-color: #0056b3;
}

.cc-chave-switch input:checked + .cc-slider:before {
    transform: translateX(22px);
}

/* =========================================================================
   RESPONSIVIDADE (DISPOSITIVOS MÓVEIS)
   ========================================================================= */
@media (max-width: 600px) {
    #cc-plugin-container {
        padding: 15px;
        margin: 10px auto;
    }
    
    .cc-btn-proximo,
    .cc-btn-voltar {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .cc-btn-voltar {
        margin-right: 0;
    }
}