.wp-offer-calculator {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

.form-group select,
.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.slider {
    width: 100%;
    margin: 1rem 0;
}

.slider-value {
    display: inline-block;
    margin-left: 1rem;
    font-weight: 600;
    color: #666;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

.button {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-primary {
    background-color: #007bff;
    color: white;
}

.button-primary:hover {
    background-color: #0056b3;
}

.calculation-results {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.results-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.price-summary {
    padding: 1.5rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.price-summary h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

#price-breakdown {
    margin-bottom: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.total-price {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
    font-size: 1.2rem;
}

.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .results-content {
        grid-template-columns: 1fr;
    }
    
    .wp-offer-calculator {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
}

/* TCO Calculator Styles */
.tco-calculator .variant-selector {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.tco-calculator .cost-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tco-calculator .cost-category {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.tco-calculator .cost-category h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.tco-calculator .cost-category input {
    width: calc(100% - 60px);
    margin-right: 10px;
}

.tco-calculator .tco-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: white;
}

.tco-calculator .tco-table th,
.tco-calculator .tco-table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: right;
}

.tco-calculator .tco-table th:first-child,
.tco-calculator .tco-table td:first-child {
    text-align: left;
}

.tco-calculator .tco-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.tco-calculator .tco-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.tco-calculator .tco-table tfoot {
    font-weight: 600;
    background: #e9ecef;
}

.tco-calculator .tco-chart {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tco-calculator #tco-chart-canvas {
    width: 100% !important;
    height: 400px !important;
}

@media (max-width: 768px) {
    .tco-calculator .tco-table {
        display: block;
        overflow-x: auto;
    }
    
    .tco-calculator .cost-categories {
        grid-template-columns: 1fr;
    }
}

/* TCO Comparison Styles */
.tco-comparison {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tco-comparison h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Total Cost Comparison Box */
.total-cost-comparison {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.total-cost-comparison h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.total-costs {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    flex-wrap: wrap;
}

.total-cost-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 6px;
    min-width: 200px;
    flex: 1;
}

.total-cost-item h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2em;
}

.total-cost-item .total-amount {
    font-size: 1.5em;
    font-weight: bold;
}

/* Variant Colors */
.total-cost-item.cloud {
    background: rgba(78,121,167,0.1);
    border: 2px solid #4e79a7;
}

.total-cost-item.onpremise {
    background: rgba(242,142,44,0.1);
    border: 2px solid #f28e2c;
}

.total-cost-item.serverless {
    background: rgba(225,87,89,0.1);
    border: 2px solid #e15759;
}

/* Costs Table */
.costs-table-wrapper {
    margin-bottom: 3rem;
    overflow-x: auto;
}

.costs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.costs-table th,
.costs-table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: right;
}

.costs-table th {
    background: #f8f9fa;
    font-weight: bold;
    text-align: center;
}

.costs-table tr.cloud {
    background: rgba(78,121,167,0.05);
}

.costs-table tr.onpremise {
    background: rgba(242,142,44,0.05);
}

.costs-table tr.serverless {
    background: rgba(225,87,89,0.05);
}

.costs-table td.total {
    font-weight: bold;
}

.costs-table tfoot tr {
    background: #f8f9fa;
}

.costs-table tfoot td {
    font-size: 1.1em;
}

/* Chart */
.costs-chart-wrapper {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.costs-chart-wrapper h3 {
    text-align: center;
    margin-bottom: 2rem;
}

#tco-comparison-chart {
    max-height: 600px;
} 