* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f1f2f8;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    align-items: start;
}

.product-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 5px;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #667eea 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.result-card {
    background: linear-gradient(135deg, #93dafb 0%, #6081ed 100%);
    border-radius: 15px;
    padding: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: white;
    text-align: center;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.savings {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.savings strong {
    font-size: 2.5rem;
    display: block;
    margin-top: 10px;
}

.price-details {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.price-details p {
    margin: 8px 0;
    font-size: 1rem;
}

.result-tie {
    padding: 20px;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
        border-radius: 15px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-card {
        padding: 5px;
    }

    .product-card h2 {
        font-size: 1.3rem;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 15px;
    }

    .result-card {
        padding: 20px;
    }

    .result-card h3 {
        font-size: 1.5rem;
    }

    .savings {
        font-size: 1.2rem;
    }

    .savings strong {
        font-size: 2rem;
    }

    .price-details p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .result-card h3 {
        font-size: 1.3rem;
    }

    .savings strong {
        font-size: 1.8rem;
    }
}
