:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --accent: #ff6f00;
    --accent-light: #ff8f00;
    --success: #2e7d32;
    --warning: #f9a825;
    --danger: #c62828;
    --bg: #f5f5f5;
    --card: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    margin-bottom: 30px;
    color: white;
}

.logo {
    width: 180px;
    max-width: 180px;
    margin-bottom: 20px;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin-left: auto;
    margin-right: auto;

}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Cards */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.card h2 {
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Formulário */
.form-group {
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

input, select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(57, 73, 171, 0.1);
}

input::placeholder {
    color: #999;
}

input[readonly] {
    background: #f5f5f5;
    color: var(--text-light);
}

/* Upload */
.upload-area {
    border: 3px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-light);
    background: rgba(57, 73, 171, 0.02);
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.upload-icon {
    font-size: 3rem;
}

.upload-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--text-light);
}

input[type="file"] {
    opacity: 0;
    position: absolute;
    z-index: -1;
    width: 0;
    height: 0;
}

#preview {
    margin-top: 20px;
}

#preview img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

/* Botões */
.btn-primary {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-whatsapp {
    padding: 14px 28px;
    background: var(--success);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-secondary:hover, .btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Loading */
.hidden {
    display: none !important;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.5s ease;
}

/* Resultados IA */
.ia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.ia-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--radius-sm);
}

.ia-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.ia-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.ia-observacoes {
    background: #fff3e0;
    padding: 15px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
}

/* Cálculos */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.calc-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.calc-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.calc-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.calc-value.highlight {
    color: var(--accent);
    font-size: 2rem;
}

/* Kits */
.kits-section h2 {
    text-align: center;
    margin-bottom: 10px;
}

.kits-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.kits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.kit-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.kit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.kit-card.recommended {
    border-color: var(--accent);
    position: relative;
}

.kit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.kit-header h3 {
    font-size: 1.3rem;
    color: var(--primary);
}

.kit-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.kit-economico .kit-badge {
    background: #e8f5e9;
    color: var(--success);
}

.kit-intermediario .kit-badge {
    background: #fff3e0;
    color: var(--accent);
}

.kit-profissional .kit-badge {
    background: #fce4ec;
    color: #ad1457;
}

.kit-itens {
}

.kit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.kit-item:last-child {
    border-bottom: none;
}

.kit-item-info {
    flex: 1;
}

.kit-item-tipo {
    font-size: 0.8rem;
    color: var(--text-light);
}

.kit-item-nome {
    font-weight: 600;
}

.kit-item-qtd {
    color: var(--text-light);
    font-size: 0.9rem;
}

.kit-item-preco {
    font-weight: 700;
    color: var(--primary);
}

.kit-total {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-top: 15px;
}

.preco-pix, .preco-cartao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.preco-pix {
    border-bottom: 1px solid var(--border);
}

.preco-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.preco-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.preco-pix .preco-value {
    color: var(--success);
}

.preco-cartao .preco-value {
    color: var(--primary);
}

/* Infraestrutura */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.infra-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.infra-label {
    font-weight: 600;
}

.infra-value {
    font-weight: 700;
    color: var(--primary);
}

.infra-nota {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Ação */
.acao {
    text-align: center;
}

.acao h2 {
    justify-content: center;
}

.acao p {
    margin-bottom: 25px;
    color: var(--text-light);
}

.acao-botoes {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsivo */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .kits-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .acao-botoes {
        flex-direction: column;
    }
    
    .btn-secondary, .btn-whatsapp {
        text-align: center;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease forwards;
}

/* Radio e Checkbox groups */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.radio-group label, .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    background: rgba(108, 92, 231, 0.1);
    transition: all 0.2s ease;
}
.radio-group label:hover, .checkbox-group label:hover {
    background: rgba(108, 92, 231, 0.2);
}
.radio-group input[type="radio"], .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}


/* Kit Seleção */
.kit-selecao {
    margin-top: 30px;
    border: 2px solid #4CAF50;
}

.kit-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.kit-radio {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.kit-radio:hover {
    border-color: #4CAF50;
    background: #f8fff8;
}

.kit-radio input[type='radio'] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: #4CAF50;
}

.kit-radio-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.kit-radio-content strong {
    font-size: 16px;
    color: #333;
}

.kit-radio-content span {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
}

.kit-acao {
    margin-top: 20px;
    text-align: center;
}

.btn-gostei {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-gostei:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.kit-acao-obs {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* Botão Excluir Item */
.btn-excluir-item {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    transition: background 0.3s;
}

.btn-excluir-item:hover {
    background: #cc0000;
}

.kit-item-excluido {
    opacity: 0.5;
    text-decoration: line-through;
}

/* Kit Total Atualizado */
.kit-total-atualizado {
    background: #e8f5e8;
    margin-top: 10px;
    font-weight: bold;
    color: #4CAF50;
}

/* Link do logo */
header a {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s;
}
header a:hover {
    transform: scale(1.05);
}
