/* Reset styles for the calculator only */
.pdc-calculator-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
}

.pdc-calculator-container {
    --pdc-primary: #4f46e5;
    --pdc-primary-dark: #4338ca;
    --pdc-secondary: #10b981;
    --pdc-secondary-dark: #0d9668;
    --pdc-dark: #1f2937;
    --pdc-light: #f9fafb;
    --pdc-gray: #f3f4f6;
    --pdc-gray-dark: #e5e7eb;
    --pdc-text: #374151;
    --pdc-text-light: #6b7280;
    --pdc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --pdc-radius: 20px;
    
    color: var(--pdc-text);
    padding: 0;
    line-height: 1.6;
    font-family: 'Inter', Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
}

.pdc-calculator-card {
    background: white;
    border-radius: var(--pdc-radius);
    box-shadow: var(--pdc-shadow);
    padding: 30px;
    margin-bottom: 30px;
    max-width: 100%;
}

.pdc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--pdc-gray-dark);
}

.pdc-tab {
    padding: 12px 24px;
    background-color: var(--pdc-gray);
    border: 1px solid var(--pdc-gray-dark);
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.pdc-tab.active {
    background-color: var(--pdc-primary);
    color: white;
    border-bottom: 3px solid var(--pdc-primary-dark);
}

.pdc-tab:hover:not(.active) {
    background-color: var(--pdc-gray-dark);
    border-radius: 8px 8px 0 0;
}

.pdc-calculator-content {
    display: none;
}

.pdc-calculator-content.active {
    display: block;
    animation: pdc-fadeIn 0.5s ease;
}

.pdc-form-group {
    margin-bottom: 20px;
}

.pdc-calculator-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.pdc-calculator-container input, 
.pdc-calculator-container select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--pdc-gray-dark);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.pdc-calculator-container input:focus, 
.pdc-calculator-container select:focus {
    outline: none;
    border-color: var(--pdc-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.pdc-currency-selector {
    max-width: 200px;
    margin-bottom: 20px;
}

.pdc-preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.pdc-preset-btn {
    padding: 8px 16px;
    background-color: var(--pdc-gray);
    border: 1px solid var(--pdc-gray-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdc-preset-btn:hover {
    background-color: var(--pdc-gray-dark);
}

.pdc-preset-btn.active {
    background-color: var(--pdc-primary);
    color: white;
    border-color: var(--pdc-primary);
}

.pdc-btn {
    padding: 12px 24px;
    background-color: var(--pdc-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pdc-btn:hover {
    background-color: var(--pdc-primary-dark);
    transform: translateY(-2px);
}

.pdc-btn-secondary {
    background-color: var(--pdc-secondary);
}

.pdc-btn-secondary:hover {
    background-color: var(--pdc-secondary-dark);
}

.pdc-result-container {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--pdc-gray);
    border-radius: 12px;
    text-align: center;
}

.pdc-result-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--pdc-dark);
}

.pdc-result-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--pdc-primary);
    margin-bottom: 10px;
}

.pdc-result-details {
    font-size: 16px;
    color: var(--pdc-text-light);
}

.pdc-savings {
    color: var(--pdc-secondary);
    font-weight: 600;
}

.pdc-icon {
    margin-right: 8px;
}

.pdc-multi-item-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.pdc-multi-item-table th, .pdc-multi-item-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--pdc-gray-dark);
}

.pdc-multi-item-table th {
    background-color: var(--pdc-gray);
    font-weight: 600;
}

.pdc-remove-item {
    color: #ef4444;
    cursor: pointer;
    font-weight: 600;
}

@keyframes pdc-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .pdc-tabs {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
    }
    
    .pdc-calculator-card {
        padding: 20px;
    }
    
    .pdc-preset-buttons {
        justify-content: center;
    }
}