/**
 * CSS da Página de Contratação Multistep
 * Estilo simples e funcional
 * 
 * IMPORTANTE: Este arquivo contém regras específicas para o formulário de contratação.
 * Todas as regras relacionadas a planos devem ser específicas o suficiente para não
 * afetar a página index (usar #step3, .contract-step, .contract-main como prefixos).
 */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

/* Reset para página de contratação */
body.contract-page {
    padding-top: 0;
    margin-top: 0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    background-color: transparent !important; /* Remover background branco padrão */
}

/* Header para página de contratar - usar mesmo CSS do header principal, mas não fixo */
body.contract-page .header {
    position: relative !important; /* NÃO FIXO - diferente do header principal */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 100;
}

.contract-main {
    width: 100%;
    min-height: calc(100vh - 160px);
    padding: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    /* Transparente para mostrar o background blur */
    font-family: 'Rubik', sans-serif;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background com blur - definido inline no HTML para garantir que aparece */

.contract-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

/* Header da Contratação - Agora dentro do wrapper */
.contract-header {
    text-align: center;
    margin-bottom: 0;
    padding: 20px 20px 12px 20px;
    width: 100%;
    box-sizing: border-box;
}

.contract-header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #023680;
    margin: 0;
    line-height: 1.3;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .contract-header {
        padding: 30px 20px 15px 20px;
    }
    
    .contract-header h1 {
        font-size: 1.5rem;
    }
    
    .progress-container {
        padding: 0 20px 20px 20px;
    }
}

/* Barra de Progresso */
.progress-container {
    margin-bottom: 0;
    background: transparent;
    padding: 0 20px 15px 20px;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #023680 0%, #0056b3 100%);
    transition: width 0.3s ease;
}

/* Steps - Unificados em um único card */
.contract-steps-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 24px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.contract-step {
    display: none;
    background: white;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    border: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #e0e0e0;
}

.contract-step:first-child {
    border-top: none;
}

.contract-step.active {
    display: block;
}

.contract-header {
    border-radius: 12px 12px 0 0;
}

.contract-step:last-of-type {
    border-radius: 0;
}

.contract-actions {
    border-radius: 0 0 12px 12px;
}

.contract-step:only-child {
    border-radius: 12px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #023680;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-title i {
    color: #0056b3;
    font-size: 1rem;
}

.step-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 18px;
}

.step-note {
    margin-top: 14px;
    padding: 10px 12px;
    background: #e3f2fd;
    border-left: 4px solid #023680;
    border-radius: 4px;
    color: #1976d2;
    font-size: 0.8rem;
}

/* Seletores de Tipo */
.contract-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.contract-type-card {
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background: white;
}

.contract-type-card:hover {
    border-color: #023680;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.contract-type-card.selected {
    border-color: #023680;
    background: #f0f4ff;
    box-shadow: 0 2px 8px rgba(2,54,128,0.15);
}

/* Seletor de Tipo de Cliente - Novo Layout com Botões */
.customer-type-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.customer-type-btn {
    flex: 1;
    max-width: 300px;
    padding: 18px 16px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    min-height: 120px;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

.customer-type-btn i {
    font-size: 2.2rem;
    color: #023680;
    transition: color 0.2s ease;
}

.customer-type-btn .btn-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-type-btn .btn-title {
    font-size: 1rem;
    font-weight: 600;
    color: #023680;
    display: block;
}

.customer-type-btn .btn-subtitle {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
    display: block;
}

.customer-type-btn:hover {
    border-color: #023680;
    box-shadow: 0 4px 16px rgba(2, 54, 128, 0.15);
    background: #f8f9ff;
}

.customer-type-btn.active,
.customer-type-btn.selected {
    border-color: #023680;
    background: #f0f4ff;
    box-shadow: 0 4px 20px rgba(2, 54, 128, 0.25);
    border-width: 3px;
}

.customer-type-btn.active i,
.customer-type-btn.selected i {
    color: #0056b3;
    transform: scale(1.1);
}

.type-icon {
    font-size: 2rem;
    color: #023680;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.type-title {
    font-size: 1rem;
    font-weight: 600;
    color: #023680;
    margin-bottom: 5px;
}

.type-subtitle {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

/* Checkbox Simples Nacional */
.simples-nacional-checkbox {
    margin-top: 14px;
    padding: 10px 14px;
    background: #fff9e6;
    border: 2px solid #ffc107;
    border-radius: 6px;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.simples-nacional-checkbox .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    margin: 0;
    color: #856404;
    font-weight: 500;
}

.simples-nacional-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ffc107;
    flex-shrink: 0;
}

/* Formulários */
.contract-form {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.form-group {
    margin-bottom: 14px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    width: 100%;
    font-size: 0.85rem;
}

.form-group label.required::after {
    content: ' *';
    color: #ed3238;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Rubik', sans-serif;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #023680;
    box-shadow: 0 0 0 3px rgba(2,54,128,0.1);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    font-size: 0.85rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Todos os planos em formato de lista/tabela (um abaixo do outro) */
/* Aplicar apenas dentro do formulário de contratação, não na index */
/* NOTA: Step 3 agora usa .internet-plans-grid (classe específica) */
.contract-step .streaming-plans-grid,
.contract-step .tv-channels-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    width: 100% !important;
}

/* Cards de planos em formato de lista/tabela - Especificidade maior para sobrescrever styles.css */
/* IMPORTANTE: Aplicar apenas dentro do formulário de contratação, não na index */
/* Usar alta especificidade para garantir que sobrescreva qualquer regra do styles.css */
body.contract-page #step3 .plans-grid .plan-card,
body.contract-page .contract-step .plans-grid .plan-card,
body.contract-page .contract-step .plan-card,
#step3 .plans-grid .plan-card,
.contract-step .plans-grid .plan-card,
.contract-step .plan-card {
    padding: 12px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 6px !important;
    background: white !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
    text-align: left !important;
    min-height: 50px !important;
    height: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    position: relative !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    pointer-events: auto !important;
    z-index: 1 !important;
}

/* Garantir que o container interno não force altura mínima */
#step3 .plans-grid .plan-card > div[style*="flex: 1"],
.contract-step .plans-grid .plan-card > div[style*="flex: 1"],
.contract-step .plan-card > div[style*="flex: 1"] {
    min-height: auto !important;
    height: auto !important;
    display: block !important;
}

.tv-channel-card {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.contract-step .plan-card:hover,
#step3 .plans-grid .plan-card:hover,
.tv-channel-card:hover {
    border-color: #023680 !important;
    box-shadow: 0 4px 12px rgba(2, 54, 128, 0.1) !important;
}

.contract-step .plan-card.selected,
#step3 .plans-grid .plan-card.selected,
.tv-channel-card.selected {
    border-color: #023680 !important;
    background: #f0f4ff !important;
    box-shadow: 0 4px 12px rgba(2, 54, 128, 0.15) !important;
}

/* ===== PLANOS DE INTERNET (STEP 3) - NOVAS CLASSES ESPECÍFICAS ===== */
/* Grid de planos de internet */
.internet-plans-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    width: 100%;
}

/* Cards de planos de internet - igual ao streaming */
.internet-plan-card {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.internet-plan-card:hover {
    border-color: #023680;
    box-shadow: 0 4px 12px rgba(2, 54, 128, 0.1);
}

.internet-plan-card.selected {
    border-color: #023680;
    background: #f0f4ff;
    box-shadow: 0 4px 12px rgba(2, 54, 128, 0.15);
}

.internet-plan-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f9f9f9;
    pointer-events: none;
}

.internet-plan-card.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Conteúdo dos cards de internet */
.internet-plan-card > div {
    flex: 1;
    display: block;
    padding: 0;
    margin: 0;
    background: none;
    border-radius: 0;
}

.internet-plan-speed {
    font-size: 0.95rem;
    font-weight: 600;
    color: #023680;
    text-align: left;
    flex: 1;
    margin: 0;
    min-width: 120px;
    line-height: 1.3;
    padding: 0;
    background: none;
    border-radius: 0;
    position: static;
    overflow: visible;
}

.internet-plan-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #023680;
    margin: 0 12px;
    flex: 0 0 auto;
    text-align: center;
    min-width: 100px;
    padding: 0;
    display: block;
    line-height: 1.2;
}

.internet-plan-period {
    font-size: 0.75rem;
    color: #666;
    margin: 0 12px 0 0;
    flex: 0 0 auto;
    min-width: 50px;
    padding: 0;
    display: block;
}

/* Botão de selecionar internet */
.btn-internet-select {
    padding: 8px 16px;
    margin: 0;
    flex: 0 0 auto;
    width: auto;
    min-width: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    visibility: visible;
    opacity: 1;
    background: #023680;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(2, 54, 128, 0.1);
    box-shadow: none;
    text-decoration: none;
    line-height: 1.4;
    text-align: center;
    overflow: visible;
}

.btn-internet-select:hover {
    background: #0056b3;
}

.btn-internet-select:active {
    background: #023680;
}

.internet-plan-card.selected .btn-internet-select {
    background: #28a745;
}

.internet-plan-card.selected .btn-internet-select:hover {
    background: #218838;
}

/* Cards de streaming - formato de lista/tabela */
.streaming-plan-card {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.streaming-plan-card:hover {
    border-color: #023680;
    box-shadow: 0 4px 12px rgba(2, 54, 128, 0.1);
}

.streaming-plan-card.selected {
    border-color: #023680;
    background: #f0f4ff;
    box-shadow: 0 4px 12px rgba(2, 54, 128, 0.15);
}

.contract-step .plan-card.disabled,
#step3 .plans-grid .plan-card.disabled,
.streaming-plan-card.disabled,
.tv-channel-card.disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background: #f9f9f9 !important;
    pointer-events: none !important;
}

.contract-step .plan-card.disabled:hover,
#step3 .plans-grid .plan-card.disabled:hover,
.streaming-plan-card.disabled:hover,
.tv-channel-card.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Conteúdo dos cards - estrutura interna em formato de lista */
.contract-step .plan-card > div,
#step3 .plans-grid .plan-card > div,
.tv-channel-card > div {
    flex: 1 !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border-radius: 0 !important;
}

#step3 .plans-grid .plan-card .plan-speed,
.contract-step .plan-card .plan-speed {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #023680 !important;
    text-align: left !important;
    flex: 1 !important;
    margin: 0 !important;
    min-width: 120px !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    position: static !important;
    overflow: visible !important;
}

.tv-channel-card .channel-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #023680;
    text-align: left;
    flex: 1;
    margin: 0;
}

.contract-step .plan-card .plan-price,
#step3 .plans-grid .plan-card .plan-price {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #023680 !important;
    margin: 0 12px !important;
    flex: 0 0 auto !important;
    text-align: center !important;
    min-width: 100px !important;
    padding: 0 !important;
    display: block !important;
    line-height: 1.2 !important;
}

.tv-channel-card .channel-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #023680;
    margin: 0 12px;
    flex: 0 0 auto;
    text-align: center;
}

.contract-step .plan-card .plan-period,
#step3 .plans-grid .plan-card .plan-period {
    font-size: 0.75rem !important;
    color: #666 !important;
    margin: 0 12px 0 0 !important;
    flex: 0 0 auto !important;
    min-width: 50px !important;
    padding: 0 !important;
    display: block !important;
}

.tv-channel-card .channel-period {
    font-size: 0.85rem;
    color: #666;
    margin: 0 20px 0 0;
    flex: 0 0 auto;
}

/* Botão de selecionar - REGRAS ESPECÍFICAS PARA STEP3 */
.contract-step .plan-card .btn-plan-select,
#step3 .plans-grid .plan-card .btn-plan-select,
body.contract-page #step3 .plans-grid .plan-card .btn-plan-select,
body.contract-page .contract-step .plans-grid .plan-card .btn-plan-select {
    position: relative !important;
    z-index: 100 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(2, 54, 128, 0.1) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 100px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #023680 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    transition: background-color 0.2s ease !important;
    box-shadow: none !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    text-align: center !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
}

.tv-channel-card .btn-channel-select {
    padding: 7px 16px;
    margin: 0;
    flex: 0 0 auto;
    width: auto;
    min-width: 100px;
    font-size: 0.85rem;
}

/* Streaming plan card - layout horizontal */
.streaming-plan-card > div {
    flex: 1;
}

.streaming-plan-card .plan-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #023680;
    margin-bottom: 3px;
    text-align: left;
    flex: 1;
}

.streaming-plan-card .plan-subname {
    font-size: 0.75rem;
    color: #666;
    text-align: left;
    margin-bottom: 5px;
    flex: 1;
}

.streaming-plan-card .plan-badge {
    margin: 0;
    margin-right: auto;
    flex: 0 0 auto;
}

.streaming-plan-card .plan-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #023680;
    margin: 0 12px;
    flex: 0 0 auto;
}

.streaming-plan-card .plan-period {
    font-size: 0.75rem;
    color: #666;
    margin: 0 12px 0 0;
    flex: 0 0 auto;
}

.streaming-plan-card .btn-plan-select {
    padding: 7px 16px;
    margin: 0;
    flex: 0 0 auto;
    width: auto;
    min-width: 100px;
    font-size: 0.85rem;
}

.streaming-plan-card .btn-view-channels {
    padding: 8px 16px;
    background: transparent;
    color: #023680;
    border: 1px solid #023680;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 12px;
    flex: 0 0 auto;
}

.streaming-plan-card .btn-view-channels:hover {
    background: #023680;
    color: white;
}

/* Garantir que o botão fique sempre no final */
.contract-step .plan-card .btn-plan-select,
#step3 .plans-grid .plan-card .btn-plan-select,
.tv-channel-card .btn-channel-select {
    margin-top: auto !important;
    align-self: stretch !important;
}

.plan-speed,
.channel-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #023680;
    margin-bottom: 12px;
    line-height: 1.3;
    flex-grow: 0;
    flex-shrink: 0;
    text-align: center;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #023680;
    margin-bottom: 8px;
    line-height: 1.3;
    flex-grow: 0;
    flex-shrink: 0;
}

.plan-subname {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 0;
    flex-shrink: 0;
    text-align: center;
}

.plan-price,
.channel-price {
    font-size: 2rem;
    font-weight: 700;
    color: #023680;
    margin-bottom: 4px;
    line-height: 1.2;
    flex-grow: 0;
    flex-shrink: 0;
    text-align: center;
}

.plan-period,
.channel-period {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 0;
    flex-shrink: 0;
    text-align: center;
}

.plan-badge {
    background: #d4edda;
    color: #155724;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
    border: 1px solid #c3e6cb;
    flex-grow: 0;
}

.plan-badge i {
    margin-right: 6px;
}

/* Botões dos cards - REGRAS GERAIS */
.btn-plan-select,
.btn-channel-select {
    width: auto !important;
    min-width: 100px !important;
    padding: 8px 16px !important;
    background: #023680 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    box-shadow: none !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    text-align: center !important;
    overflow: visible !important;
}

.btn-plan-select:hover,
.btn-channel-select:hover {
    background: #0056b3;
}

.btn-plan-select:active,
.btn-channel-select:active {
    background: #023680;
}

/* Estados especiais dos botões */
.contract-step .plan-card.selected .btn-plan-select,
#step3 .plans-grid .plan-card.selected .btn-plan-select,
.streaming-plan-card.selected .btn-plan-select,
.tv-channel-card.selected .btn-channel-select {
    background: #28a745 !important;
}

.contract-step .plan-card.selected .btn-plan-select:hover,
#step3 .plans-grid .plan-card.selected .btn-plan-select:hover,
.streaming-plan-card.selected .btn-plan-select:hover,
.tv-channel-card.selected .btn-channel-select:hover {
    background: #218838 !important;
}

/* Fidelidade */
.loyalty-benefits {
    background: #f0f4ff;
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.loyalty-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.loyalty-benefits li {
    padding: 6px 0;
    color: #333;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
}

.loyalty-benefits li i {
    color: #28a745;
    margin-top: 3px;
}

.simples-nacional-checkbox {
    margin-top: 15px;
    padding: 12px 15px;
    background: #fff3cd;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ffc107;
}

.simples-nacional-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    margin: 0;
    color: #856404;
    font-weight: 500;
}

.simples-nacional-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ffc107;
}

/* Popup de Canais */
.channels-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.channels-popup {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.channels-popup-header {
    padding: 20px 24px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.channels-popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #023680;
}

.channels-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.channels-popup-close:hover {
    background: #f0f0f0;
    color: #023680;
}

.channels-popup-content {
    padding: 24px;
}

/* Mensagens */
.cep-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
}

.cep-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cep-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.included-channels-info {
    background: #d1ecf1;
    border: 2px solid #17a2b8;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.included-channels-info strong {
    display: block;
    margin-bottom: 6px;
    color: #0c5460;
    font-size: 0.9rem;
}

.included-channels-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-channels-info li {
    padding: 4px 0;
    color: #0c5460;
}

/* Botões */
.contract-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 0;
    padding: 16px 20px;
    background: white;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.contract-actions .btn-secondary {
    margin-right: auto;
}

.btn {
    padding: 9px 18px;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #023680;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Resumo - Formato Tabelado */
.summary-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 0.8rem;
}

.summary-table thead {
    background: #023680;
    color: white;
}

.summary-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
}

.summary-table thead th i {
    margin-right: 6px;
    font-size: 0.8rem;
}

.summary-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.15s ease;
}

.summary-table tbody tr:last-child {
    border-bottom: none;
}

.summary-table tbody tr:hover {
    background-color: #f8f9fa;
}

.summary-table tbody td {
    padding: 8px 12px;
    color: #333;
    vertical-align: top;
}

.summary-table .label-cell {
    font-weight: 500;
    color: #666;
    width: 35%;
    min-width: 150px;
    background-color: #f8f9fa;
}

.summary-table .text-right {
    text-align: right;
}

.summary-table .value-cell {
    font-weight: 500;
    color: #023680;
}

.summary-table .discount-row {
    background-color: #fff3cd;
}

.summary-table .discount-row .discount-value {
    color: #856404;
    font-weight: 600;
}

.summary-table .separator-row {
    background-color: #e9ecef;
    font-weight: 600;
}

.summary-table .separator-row td {
    padding-top: 12px;
    padding-bottom: 8px;
    border-top: 2px solid #dee2e6;
    color: #023680;
}

.summary-table.summary-values {
    background: #023680;
    color: white;
}

.summary-table.summary-values thead {
    background: #0056b3;
}

.summary-table.summary-values tbody tr {
    border-bottom-color: rgba(255,255,255,0.1);
}

.summary-table.summary-values tbody tr:hover {
    background-color: rgba(255,255,255,0.05);
}

.summary-table.summary-values .label-cell {
    background-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

.summary-table.summary-values .value-cell {
    color: white;
}

.summary-table.summary-values .discount-row {
    background-color: rgba(255,193,7,0.2);
}

.summary-table.summary-values .discount-row .discount-value {
    color: #ffc107;
}

.summary-table.summary-values .total-row {
    background-color: #0056b3;
    border-top: 2px solid rgba(255,255,255,0.3);
    border-bottom: none;
}

.summary-table.summary-values .total-row td {
    padding: 12px;
    font-size: 0.9rem;
}

.summary-table.summary-values .total-row .total-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}

.loyalty-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 1024px) {
    .contract-main {
        padding-top: 160px;
    }
    
    /* Aplicar apenas dentro do formulário de contratação */
    #step3 .plans-grid,
    .contract-step .plans-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .contract-step .streaming-plans-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .contract-step .tv-channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .contract-main {
        padding-top: 140px;
    }
    
    /* Aplicar apenas dentro do formulário de contratação */
    #step3 .plans-grid,
    .contract-step .plans-grid,
    .contract-step .streaming-plans-grid,
    .contract-step .tv-channels-grid {
        grid-template-columns: 1fr;
    }
    
    .contract-main .container {
        padding: 20px 15px;
    }
    
    .contract-step {
        padding: 25px 20px;
    }
    
    .contract-header {
        padding: 30px 20px 15px 20px;
        margin-bottom: 0;
    }
    
    .contract-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .progress-container {
        padding: 0 20px 20px 20px;
    }
    
    .step-title {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }
    
    .contract-type-selector {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contract-type-card {
        padding: 25px 20px;
    }
    
    .customer-type-buttons {
        flex-direction: column;
        max-width: 100%;
    }
    
    .customer-type-btn {
        max-width: 100%;
        min-height: 160px;
    }
    
    .customer-type-btn i {
        font-size: 3rem;
    }
    
    .customer-type-btn .btn-title {
        font-size: 1.3rem;
    }
    
    .contract-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .contract-actions .btn-secondary {
        margin-right: 0;
        order: 2;
    }
    
    .contract-actions .btn-primary {
        order: 1;
    }
    
    /* Aplicar apenas dentro do formulário de contratação */
    /* NOTA: Step 3 agora usa .internet-plans-grid (classe específica) */
    .internet-plans-grid,
    .contract-step .streaming-plans-grid,
    .contract-step .tv-channels-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    /* ===== PLANOS DE INTERNET (STEP 3) - MOBILE ===== */
    .internet-plan-card {
        min-height: 60px !important;
        padding: 16px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: left !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(2, 54, 128, 0.1) !important;
        pointer-events: auto !important;
        z-index: 10 !important;
        position: relative !important;
        overflow: visible !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    .internet-plan-card * {
        pointer-events: auto !important;
        position: relative !important;
    }
    
    .internet-plan-card > div {
        flex: 1 !important;
        display: block !important;
    }
    
    .internet-plan-speed {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #023680 !important;
        text-align: left !important;
        margin: 0 !important;
        flex: none !important;
        min-width: auto !important;
    }
    
    .internet-plan-price {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: #023680 !important;
        text-align: center !important;
        margin: 0 12px !important;
        flex: none !important;
        min-width: auto !important;
    }
    
    .internet-plan-period {
        font-size: 0.9rem !important;
        color: #666 !important;
        text-align: center !important;
        margin: 0 !important;
        flex: none !important;
        min-width: auto !important;
    }
    
    .btn-internet-select {
        width: auto !important;
        min-width: 100px !important;
        padding: 10px 16px !important;
        margin: 0 !important;
        font-size: 0.9rem !important;
        position: relative !important;
        z-index: 20 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #023680 !important;
        color: white !important;
        border: none !important;
        border-radius: 4px !important;
        cursor: pointer !important;
        box-shadow: none !important;
        text-decoration: none !important;
        line-height: 1.4 !important;
        text-align: center !important;
        overflow: visible !important;
        flex: 0 0 auto !important;
    }
    
    /* ===== OUTROS PLANOS (STREAMING) - MOBILE ===== */
    .streaming-plan-card,
    .tv-channel-card {
        min-height: 60px !important;
        padding: 16px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: left !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(2, 54, 128, 0.1) !important;
        pointer-events: auto !important;
        z-index: 10 !important;
        position: relative !important;
        overflow: visible !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    .streaming-plan-card > div {
        flex: 1 !important;
        display: block !important;
    }
    
    .streaming-plan-card .plan-name {
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: #023680 !important;
        text-align: left !important;
        margin-bottom: 4px !important;
        flex: none !important;
        min-width: auto !important;
    }
    
    .streaming-plan-card .plan-subname {
        text-align: left;
        margin-bottom: 8px;
    }
    
    .streaming-plan-card .plan-price {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: #023680 !important;
        text-align: center !important;
        margin: 0 12px !important;
        flex: none !important;
        min-width: auto !important;
    }
    
    .streaming-plan-card .plan-period {
        font-size: 0.9rem !important;
        color: #666 !important;
        text-align: center !important;
        margin: 0 !important;
        flex: none !important;
        min-width: auto !important;
    }
    
    .streaming-plan-card .btn-plan-select {
        width: auto !important;
        min-width: 100px !important;
        padding: 10px 16px !important;
        margin: 0 !important;
        font-size: 0.9rem !important;
        position: relative !important;
        z-index: 20 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #023680 !important;
        color: white !important;
        border: none !important;
        border-radius: 4px !important;
        cursor: pointer !important;
        box-shadow: none !important;
        text-decoration: none !important;
        line-height: 1.4 !important;
        text-align: center !important;
        overflow: visible !important;
        flex: 0 0 auto !important;
    }
    
    .streaming-plan-card .btn-view-channels {
        width: 100%;
        padding: 10px;
        margin: 8px 0 0 0;
        font-size: 0.9rem;
    }
    
    .streaming-plan-card .plan-badge {
        text-align: center;
        margin: 8px 0;
    }
    
    .plan-price,
    .channel-price {
        font-size: 1.75rem;
    }
    
    .contract-actions {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .contract-main {
        padding-top: 120px;
    }
    
    /* Aplicar apenas dentro do formulário de contratação */
    #step3 .plans-grid,
    .contract-step .plans-grid,
    .contract-step .streaming-plans-grid,
    .contract-step .tv-channels-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .contract-step .plan-card,
    #step3 .plans-grid .plan-card,
    .contract-step .plan-card,
    .streaming-plan-card,
    .tv-channel-card {
        padding: 14px !important;
        min-height: auto !important;
    }
    
    .contract-step .plan-card .plan-price,
    #step3 .plans-grid .plan-card .plan-price,
    .streaming-plan-card .plan-price {
        font-size: 1.4rem !important;
    }
    
    .contract-step .plan-card .btn-plan-select,
    #step3 .plans-grid .plan-card .btn-plan-select,
    .streaming-plan-card .btn-plan-select {
        font-size: 0.9rem !important;
        padding: 10px !important;
    }
    
    .contract-main .container {
        padding: 15px 10px;
    }
    
    .contract-step {
        padding: 20px 15px;
    }
    
    .contract-header h1 {
        font-size: 1.3rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-subtitle {
        font-size: 0.9rem;
    }
    
    .plan-price,
    .channel-price {
        font-size: 1.5rem;
    }
}

