/* Simple, clean styling for the solar calculator */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f6fa;
    color: #2c3e50;
    line-height: 1.6;
}

.main-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.header-title {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

.header-subtitle {
    font-size: 1.2rem;
    margin: 10px 0 0 0;
    opacity: 0.9;
}

.form-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    gap: 20px;
}

.step {
    flex: 1;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    background: #ecf0f1;
    color: #7f8c8d;
    font-weight: 500;
}

.step.active {
    background: #3498db;
    color: white;
}

.step.completed {
    background: #27ae60;
    color: white;
}

/* Typography */
h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.back-link {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.back-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateX(-2px);
}

.footer-link {
    color: inherit;
    text-decoration: underline;
}

.footer-link:hover {
    color: #3b82f6;
}
/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.card h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.col-half {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    background: white;
}

input:focus, select:focus {
    outline: none;
    border-color: #3498db;
}

small {
    color: #7f8c8d;
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    background: white;
}

.radio-option:hover {
    border-color: #3498db;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    margin-right: 15px;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #3498db;
    background: #3498db;
}

.radio-content strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 3px;
}

.radio-content small {
    margin: 0;
    color: #7f8c8d;
}

/* Appliance Grid */
.appliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.checkbox-card {
    display: block;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    background: white;
    text-align: center;
    transition: border-color 0.2s;
}

.checkbox-card:hover {
    border-color: #3498db;
}

.checkbox-card input[type="checkbox"] {
    display: none;
}

.checkbox-card:has(input[type="checkbox"]:checked) {
    border-color: #3498db;
    background: #f0f8ff;
}

.checkbox-card:has(input[type="checkbox"]:checked) .checkbox-content {
    color: #3498db;
}

.checkbox-card:has(input[type="checkbox"]:checked) .appliance-icon {
    color: #3498db;
}

.checkbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.appliance-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7f8c8d;
    background: #ecf0f1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #3498db;
}

.file-input {
    display: none;
}

.file-label {
    cursor: pointer;
    color: #3498db;
    font-weight: 500;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.form-navigation {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Flash Messages */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Summary Cards */
.summary-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

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

.summary-item {
    text-align: center;
}

.summary-label {
    font-size: 0.9rem;
    opacity: 0.8;
    display: block;
}

.summary-value {
    font-size: 1.3rem;
    font-weight: 600;
    display: block;
}

.main-footer {
    background: #34495e;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-bar {
        flex-direction: column;
        gap: 10px;
    }

    .form-row {
        flex-direction: column;
    }

    .appliance-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-title {
        font-size: 2rem;
    }
}