/* Customer Page Specific Styles */

/* Hero Section */
.customer-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/home-bg.jpg');
    background-position: center;
    background-size: cover;
}

/* Benefits Grid */
.benefits-section {
    background-color: #f5f7fa;
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.benefits-section h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.disclaimer-container {
    padding: 0 0 0 85px;
    font-size: 0.6rem;
    align-items: end;
}

/* Calculator Section */
.calculator-section {
    padding: 80px 0;
    background-color: white;
}

.calculator-section h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.calculator-container {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.calculator-form {
    flex: 1;
    padding: 30px;
    background-color: #f5f7fa;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 30px;
}

.calculator-results {
    flex: 1;
    padding: 30px;
    background-color: white;
    border-left: 1px solid #eee;
}

.result-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
}

.system-size,
.monthly-payment,
.monthly-savings {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.repayment-period {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 10px;
}

.label {
    color: var(--text-color);
    font-weight: 500;
}

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

.total-savings {
    background-color: #e6f7f1;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin-top: 25px;
}

.savings-label {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* How It Works Section */
.how-it-works {
    background-color: #f5f7fa;
    padding: 80px 0;
    text-align: center;
}

.how-it-works h2 {
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    z-index: 1;
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.step h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.step-connector {
    height: 2px;
    background-color: var(--primary-color);
    flex: 0.5;
    position: relative;
}

.step-connector:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: -4px;
    left: 0;
}

.step-connector:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: -4px;
    right: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background-color: white;
}

.testimonials h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: #f5f7fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.customer-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.testimonial-content {
    padding: 25px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-content h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.location {
    color: #777;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: white;
}

.faq-section h2 {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #f5f7fa;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.toggle-icon {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

/* Customer CTA Section */
.customer-cta {
    background-color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-container {
        flex-direction: column;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: 30px;
        width: 100%;
    }
    
    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }
    
    .step-connector:before,
    .step-connector:after {
        left: -4px;
        top: 0;
    }
    
    .step-connector:after {
        top: auto;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
