/* ==================== SOLAR CALCULATOR SECTION ==================== */

.calculator-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f9f4 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(40, 167, 69, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(32, 201, 151, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* Calculator Card */
.calculator-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 50px rgba(40, 167, 69, 0.12);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(40, 167, 69, 0.1);
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #28A745 0%, #20C997 100%);
}

/* Steps */
.calculator-step {
    display: none;
    animation: fadeInStep 0.5s ease;
}

.calculator-step.active {
    display: block;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
}

.calculator-step.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    border-radius: 4px 0 0 4px;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(40, 167, 69, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFFFFF;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.35);
}

.step-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0;
}

/* Usage Types */
.usage-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.usage-type-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.usage-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08) 0%, rgba(32, 201, 151, 0.08) 100%);
    transition: width 0.3s ease;
    z-index: 1;
}

.usage-type-card:hover::before,
.usage-type-card.selected::before {
    width: 100%;
}

.usage-type-card:hover {
    border-color: #28A745;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.25);
}

.usage-type-card.selected {
    border-color: #28A745;
    border-width: 3px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.30);
}

.usage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #FFFFFF;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.25);
}

.usage-type-card:hover .usage-icon {
    transform: scale(1.1) rotate(5deg);
}

.usage-type-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.usage-type-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Input Groups */
.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 0.8rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.select-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-wrapper input:focus,
.select-input:focus {
    outline: none;
    border-color: #28A745;
    background: #FFFFFF;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.15);
}

.input-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 700;
    color: #28A745;
    pointer-events: none;
}

.input-helper {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

.select-input {
    cursor: pointer;
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2328A745' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1.5rem center;
    appearance: none;
}

/* Navigation */
.calculator-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.btn-calc {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #e0e0e0;
    color: #666;
}

.btn-prev:hover:not(:disabled) {
    background: #d0d0d0;
    transform: translateX(5px);
}

.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next {
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    color: #FFFFFF;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.35);
}

.btn-next:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.50);
}

.step-indicators {
    display: flex;
    gap: 0.8rem;
}

.step-indicator {
    width: 12px;
    height: 12px;
    background: #e0e0e0;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-indicator.active {
    background: #28A745;
    width: 30px;
    border-radius: 10px;
}

/* Results Card */
.results-card {
    background: linear-gradient(135deg, #f0f9f4 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 50px rgba(40, 167, 69, 0.15);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border: 1px solid rgba(40, 167, 69, 0.15);
}

.results-card::-webkit-scrollbar {
    width: 6px;
}

.results-card::-webkit-scrollbar-track {
    background: #f0f9f4;
    border-radius: 10px;
}

.results-card::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    border-radius: 10px;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(40, 167, 69, 0.1);
}

.results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #FFFFFF;
    animation: pulseResults 2s infinite;
}

@keyframes pulseResults {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(40, 167, 69, 0.35);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(40, 167, 69, 0.50);
    }
}

.results-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0;
}

/* Result Summary */
.result-summary {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid rgba(40, 167, 69, 0.15);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.result-item:hover {
    border-color: #28A745;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.20);
}

.result-item.primary {
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    border: none;
    color: #FFFFFF;
    box-shadow: 0 5px 25px rgba(40, 167, 69, 0.30);
}

.result-item.primary .result-label,
.result-item.primary .result-unit {
    color: rgba(255, 255, 255, 0.9);
}

.result-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1A1A2E;
    margin: 0.5rem 0;
}

.result-item.primary .result-value {
    color: #FFFFFF;
}

.result-unit {
    font-size: 0.9rem;
    color: #666;
}

/* Cost Breakdown */
.cost-breakdown {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.cost-breakdown h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cost-breakdown h4 i {
    color: #28A745;
}

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

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

.cost-item.total {
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 2px solid #28A745;
    border-bottom: none;
    font-weight: 700;
}

.cost-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A1A2E;
}

.cost-value.highlight {
    color: #28a745;
}

/* Environmental Impact */
.environmental-impact {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.environmental-impact h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.environmental-impact h4 i {
    color: #28a745;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.impact-item {
    text-align: center;
    padding: 1rem;
    background: #FFFFFF;
    border-radius: 12px;
}

.impact-item i {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.impact-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: #1A1A2E;
    margin: 0.5rem 0;
}

.impact-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

/* Quote Button */
.btn-quote {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.35);
    margin-bottom: 1rem;
}

.btn-quote:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.50);
    background: linear-gradient(135deg, #20C997 0%, #28A745 100%);
}

.results-note {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.results-note i {
    color: #28A745;
}

/* Responsive */
@media (max-width: 992px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .results-card {
        position: static;
        max-height: none;
    }
    
    .usage-types {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .calculator-section {
        padding: 60px 0;
    }
    
    .calculator-card,
    .results-card {
        padding: 1.5rem;
    }
    
    .usage-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-navigation {
        flex-wrap: wrap;
    }
    
    .step-indicators {
        order: -1;
        width: 100%;
        justify-content: center;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .usage-types {
        grid-template-columns: 1fr;
    }
    
    .usage-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .step-header h3 {
        font-size: 1.2rem;
    }
    
    .result-value {
        font-size: 2rem;
    }
}

/* Print Hide */
@media print {
    .calculator-section {
        display: none;
    }
}