/* Solar Calculator Plugin Styles */
:root {
    --solar-yellow: #FFB800;
    --solar-orange: #FF8C42;
    --solar-gold: #FFA726;
}

.solar-calculator-widget {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 140, 66, 0.15);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.widget-header {
    background: linear-gradient(135deg, var(--solar-yellow) 0%, var(--solar-orange) 100%);
    color: white;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.widget-header h1 {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.widget-header p {
    font-size: 1.2em;
    margin: 0 0 25px 0;
    opacity: 0.9;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    color: white;
    backdrop-filter: blur(5px);
}

.widget-body {
    padding: 40px 30px;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--solar-gold) 0%, var(--solar-orange) 100%);
    transition: width 0.5s ease;
    width: 0%;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-dot {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.step-dot.active {
    background: linear-gradient(135deg, var(--solar-gold) 0%, var(--solar-orange) 100%);
    color: white;
    transform: scale(1.1);
}

.step-dot.completed {
    background: var(--solar-yellow);
    color: #333;
}

.step-label {
    font-size: 0.85em;
    color: #666;
    font-weight: 600;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.question {
    margin-bottom: 35px;
}

.question h2 {
    font-size: 1.9em;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.question p {
    color: #666;
    font-size: 1.05em;
    margin: 0;
}

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

.option {
    padding: 25px 20px;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: white;
}

.option:hover {
    border-color: var(--solar-gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 167, 38, 0.2);
}

.option.selected {
    border-color: var(--solar-orange);
    background: linear-gradient(135deg, var(--solar-yellow) 0%, var(--solar-orange) 100%);
    color: white;
    transform: translateY(-5px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.option .icon {
    font-size: 3em;
    display: block;
    margin-bottom: 12px;
}

.option .label {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.option .description {
    font-size: 0.85em;
    opacity: 0.7;
}

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

.input-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s;
    font-family: inherit;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--solar-gold);
    box-shadow: 0 0 0 3px rgba(255, 167, 38, 0.1);
}

.input-group small {
    display: block;
    color: #888;
    margin-top: 6px;
    font-size: 0.9em;
}

.input-group.has-error input,
.input-group.has-error select {
    border-color: #f44336;
    background: #fff5f5;
}

.input-group .error-message {
    color: #f44336;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
    font-weight: 600;
}

.input-group.has-error .error-message {
    display: block;
}

.btn {
    background: linear-gradient(135deg, var(--solar-gold) 0%, var(--solar-orange) 100%);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 20px;
    font-family: inherit;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 140, 66, 0.3);
}

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

.btn-secondary {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #333;
    padding: 15px 30px;
    font-size: 1em;
}

.btn-cta {
    background: linear-gradient(135deg, var(--solar-yellow) 0%, var(--solar-orange) 100%);
    color: white;
    font-size: 1.3em;
    padding: 22px 50px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.results {
    text-align: center;
}

.results h2 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.success-animation {
    font-size: 80px;
    animation: bounce 1s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.result-highlight {
    background: linear-gradient(135deg, var(--solar-yellow) 0%, var(--solar-orange) 100%);
    color: white;
    padding: 50px 30px;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(255, 184, 0, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.result-highlight h3 {
    font-size: 1.4em;
    opacity: 0.95;
    margin: 0 0 15px 0;
    color: white;
}

.result-highlight .big-number {
    font-size: 4.5em;
    font-weight: bold;
    margin: 20px 0;
    color: white;
}

.result-highlight p {
    font-size: 1.3em;
    opacity: 0.95;
    margin: 0;
    color: white;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.result-card {
    background: #f5f5f5;
    padding: 30px 20px;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.15);
    border-color: var(--solar-gold);
}

.result-card h4 {
    color: var(--solar-orange);
    font-size: 0.95em;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.result-card .value {
    font-size: 2.8em;
    font-weight: bold;
    color: #333;
    margin: 15px 0;
}

.result-card .subtitle {
    color: #888;
    font-size: 0.9em;
}

.cta-box {
    background: linear-gradient(135deg, var(--solar-orange) 0%, var(--solar-gold) 100%);
    color: white;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(255, 140, 66, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.cta-box h3 {
    font-size: 2.2em;
    margin: 0 0 15px 0;
    color: white;
}

.cta-box p {
    font-size: 1.3em;
    margin: 0 0 30px 0;
    opacity: 0.95;
    color: white;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.benefit {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 4px solid var(--solar-orange);
}

.benefit .icon {
    font-size: 2.5em;
    color: var(--solar-orange);
    flex-shrink: 0;
}

.benefit .text h4 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.benefit .text p {
    color: #666;
    font-size: 0.95em;
    margin: 0;
}

.checkbox-container {
    background: #fff8e1;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    border: 2px solid var(--solar-yellow);
}

.checkbox-container label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

.checkbox-container span {
    font-size: 0.95em;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .widget-header h1 {
        font-size: 2em;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 10px;
    }
    
    .options {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }

    .result-highlight .big-number {
        font-size: 3em;
    }

    .step-indicator {
        padding: 0 10px;
    }

    .step-indicator::before {
        left: 30px;
        right: 30px;
    }
}
