/* Calculator Page Styles */
.calculator-page {
    padding-top: 100px;
    background-color: #f9f9f9;
    min-height: 100vh;
}

.calculator-header {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.calculator-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.calculator-header h2 {
    font-size: 1.5rem;
    color: #FFD700;
    font-weight: 500;
    margin-bottom: 2rem;
}

/* Calculator Content */
.calculator-content {
    margin-bottom: 4rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

.calculator-form {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.calculator-form h3 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.mistake-item {
    margin-bottom: 1.5rem;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mistake-item:hover {
    border-color: #FFD700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.1);
}

.mistake-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
}

.mistake-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 0.2rem;
    transition: all 0.3s ease;
}

.mistake-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #FFD700;
    border-color: #FFD700;
}

.mistake-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #111;
    font-weight: bold;
    font-size: 14px;
}

.mistake-info {
    flex: 1;
}

.mistake-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.mistake-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.cost-comparison {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.design-cost,
.construction-cost {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.design-cost {
    background: #e8f5e8;
    color: #2d5a2d;
}

.construction-cost {
    background: #ffe8e8;
    color: #8b2635;
}

.add-mistake-btn {
    background: #FFD700;
    color: #111;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.add-mistake-btn:hover {
    background: #111;
    color: #FFD700;
    transform: translateY(-2px);
}

/* Calculator Results */
.calculator-results {
    position: sticky;
    top: 120px;
}

.results-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.results-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
}

.cost-summary {
    margin-bottom: 2rem;
}

.cost-item {
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
}

.cost-item.design {
    background: linear-gradient(135deg, #e8f5e8, #d4f4d4);
    border: 2px solid #90c695;
}

.cost-item.construction {
    background: linear-gradient(135deg, #ffe8e8, #ffd4d4);
    border: 2px solid #f5a3a3;
}

.cost-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.cost-amount {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cost-item.design .cost-amount {
    color: #2d5a2d;
}

.cost-item.construction .cost-amount {
    color: #8b2635;
}

.cost-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.cost-savings {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #111;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #FFD700;
}

.cost-savings h4 {
    color: #111;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.savings-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #111;
}

.cost-savings p {
    color: #333;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
}

.results-message {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.action-card {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.action-card h4 {
    color: #FFD700;
    margin-bottom: 1rem;
}

.action-card p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

/* Calculator Info Section */
.calculator-info {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.calculator-info h2 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-card i {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calculator-results {
        position: static;
    }
}

@media (max-width: 768px) {
    .calculator-page {
        padding-top: 80px;
    }
    
    .calculator-header {
        padding: 2rem 0;
    }
    
    .calculator-header h1 {
        font-size: 2rem;
    }
    
    .calculator-header h2 {
        font-size: 1.2rem;
    }
    
    .calculator-form {
        padding: 2rem;
    }
    
    .results-card,
    .action-card {
        padding: 1.5rem;
    }
    
    .cost-comparison {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .design-cost,
    .construction-cost {
        text-align: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-info {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .mistake-checkbox {
        flex-direction: column;
        gap: 1rem;
    }
    
    .checkmark {
        align-self: flex-start;
    }
    
    .cost-amount {
        font-size: 1.5rem;
    }
    
    .savings-amount {
        font-size: 2rem;
    }
}

