/**
 * SolarSasa Calculator - Professional Styling
 */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base styling */
.solar-calculator-container {
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    --primary-color: #0098de;
    --secondary-color: #fdbe00;
    --gradient-bg: linear-gradient(135deg, #0098de 0%, #fdbe00 100%);
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --text-color: #333;
    --text-light: #6c757d;
}

.solar-calculator-header {
    text-align: center;
    margin-bottom: 30px;
    background: var(--gradient-bg);
    padding: 30px;
    border-radius: 8px;
    color: white;
    position: relative;
    overflow: hidden;
}

.solar-calculator-header::after {
    content: 'SolarSasa';
    position: absolute;
    bottom: -25px;
    right: -15px;
    font-size: 100px;
    font-weight: 700;
    opacity: 0.05;
    transform: rotate(-10deg);
}

.solar-calculator-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.solar-calculator-header p {
    font-size: 16px;
    opacity: 0.9;
}

.solar-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.solar-calculator-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.solar-calculator-step {
    margin-bottom: 30px;
}

.solar-calculator-step h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.step-icon {
    background: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: 700;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 152, 222, 0.2);
}

.form-group input::placeholder {
    color: #b0b0b0;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-light);
    font-size: 13px;
}

.form-group.privacy-consent {
    display: flex;
    align-items: flex-start;
}

.form-group.privacy-consent input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
}

button.btn-primary,
button.btn-secondary,
button.btn-success,
a.btn-primary,
a.btn-success,
a.btn-share {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button.btn-primary,
a.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

button.btn-primary:hover,
a.btn-primary:hover {
    background-color: #0085c5;
    box-shadow: 0 4px 12px rgba(0, 152, 222, 0.3);
    transform: translateY(-2px);
}

button.btn-secondary {
    background-color: #f0f0f0;
    color: #666;
}

button.btn-secondary:hover {
    background-color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

button.btn-success,
a.btn-success {
    background-color: var(--success-color);
    color: white;
}

button.btn-success:hover,
a.btn-success:hover {
    background-color: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

a.btn-share {
    background-color: #25D366;  /* WhatsApp green */
    color: white;
    margin-left: 10px;
}

a.btn-share:hover {
    background-color: #1ba84e;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

a.btn-download {
    background-color: var(--secondary-color);
    color: #333;
    margin-right: 10px;
}

a.btn-download:hover {
    background-color: #e5ab00;
    box-shadow: 0 4px 12px rgba(253, 190, 0, 0.3);
    transform: translateY(-2px);
}

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

.error {
    border-color: var(--danger-color) !important;
}

.validation-error {
    color: var(--danger-color);
    margin-top: 15px;
    font-size: 14px;
}

/* Results styling */
.solar-calculator-results {
    padding: 30px;
}

.solar-calculator-results h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 35px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.solar-calculator-results h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.results-summary {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 40px;
    background: var(--light-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.result-highlight {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 180px;
    transition: transform 0.3s;
}

.result-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.result-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.result-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.results-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.results-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.results-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.results-section h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
}

.section-icon {
    background: var(--gradient-bg);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-right: 10px;
}

.section-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.results-table tr:hover {
    background-color: rgba(0, 152, 222, 0.05);
}

.results-table th {
    font-weight: 600;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.02);
}

.results-table tr:last-child td {
    border-bottom: none;
}

.savings-chart {
    margin: 20px 0;
    height: 300px;
    width: 100%;
}

.results-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.results-cta p {
    margin-bottom: 25px;
    font-size: 16px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Loading styles */
.solar-calculator-loading {
    text-align: center;
    padding: 50px 0;
}

.loading-spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 5px solid rgba(0, 152, 222, 0.1);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error styles */
.solar-calculator-error {
    text-align: center;
    padding: 30px;
    background: #fff5f5;
    border-radius: 12px;
    color: var(--danger-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Report styles */
.report-container {
    background: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.report-header {
    background: var(--gradient-bg);
    padding: 30px;
    border-radius: 8px 8px 0 0;
    color: white;
    margin: -30px -30px 30px -30px;
    position: relative;
}

.report-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.report-title {
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: 600;
}

.report-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.report-id {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    opacity: 0.8;
}

.report-date {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.report-section {
    margin-bottom: 30px;
}

.report-section h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.client-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.client-info-item {
    margin-bottom: 15px;
}

.client-info-label {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

.client-info-value {
    font-weight: 500;
}

.executive-summary {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.executive-summary p {
    margin-bottom: 15px;
}

.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.key-metric {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.key-metric-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.key-metric-label {
    font-size: 13px;
    color: var(--text-light);
}

.specification-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.specification-table th,
.specification-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.specification-table th {
    background: rgba(0, 152, 222, 0.05);
    font-weight: 500;
    color: var(--text-color);
}

.specification-table tr:nth-child(even) {
    background: #f9f9f9;
}

.environmental-benefits {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.environmental-benefits h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.benefit-icon {
    background: var(--primary-color);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}

.benefit-text strong {
    display: block;
    font-weight: 600;
}

.report-footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: var(--text-light);
}

.report-disclaimer {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

/* Additional styles */
.adequate {
    color: var(--success-color);
    font-weight: 600;
}

.inadequate {
    color: var(--danger-color);
    font-weight: 600;
}

.highlight-primary {
    color: var(--primary-color);
    font-weight: 600;
}

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

/* Responsive styles */
@media screen and (max-width: 768px) {
    .solar-calculator-form-container {
        padding: 20px 15px;
    }
    
    .results-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .result-highlight {
        width: 100%;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-navigation button {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons a {
        width: 100%;
        margin: 5px 0;
    }
    
    a.btn-download, a.btn-share {
        margin: 5px 0;
    }
    
    .report-header {
        text-align: center;
        padding: 30px 15px;
    }
    
    .report-id, .report-date {
        position: static;
        text-align: center;
        margin-top: 15px;
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    
    .report-container, .report-container * {
        visibility: visible;
    }
    
    .report-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
    }
    
    .no-print {
        display: none !important;
    }
}
/* Consistent button styling */
a.btn-download,
a.btn-share,
a.btn-primary,
a.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    margin: 5px;
    cursor: pointer;
}

a.btn-primary {
    background-color: #0098de;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 152, 222, 0.2);
}

a.btn-primary:hover {
    background-color: #0085c5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 152, 222, 0.3);
}

a.btn-secondary {
    background-color: #f0f0f0;
    color: #666;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

a.btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

a.btn-download {
    background-color: #fdbe00;
    color: #333;
    box-shadow: 0 4px 6px rgba(253, 190, 0, 0.2);
}

a.btn-download:hover {
    background-color: #e5ab00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(253, 190, 0, 0.3);
}

a.btn-share {
    background-color: #25D366;  /* WhatsApp green */
    color: white;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
}

a.btn-share:hover {
    background-color: #1ba84e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

/* Make buttons stack nicely on mobile */
@media screen and (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }
    
    a.btn-download,
    a.btn-share,
    a.btn-primary,
    a.btn-secondary {
        margin: 5px 0;
        width: 100%;
    }
}

/* Chart container styling */
.savings-chart-container {
    height: 300px;
    width: 100%;
    position: relative;
    margin-bottom: 30px;
}

/* Logo styling */
.solar-calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.solar-calculator-logo {
    max-height: 60px;
    margin-right: 15px;
}

.solar-calculator-title {
    flex: 1;
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

/* Report logo styling */
.report-logo {
    max-height: 50px;
    margin-right: 15px;
    display: block;
}

/* Report header styling */
.report-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px 5px 0 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.report-header img.solar-calculator-logo {
    max-height: 50px;
    margin-right: 15px;
}

.report-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
}