/**
 * SEVOL Calculator - Frontend Styles
 */

.sevol-calculator-wrapper {
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.sevol-calculator-container {
    max-width: var(--max-width, 800px);
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sevol-logo-area {
    background: white;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid var(--primary-color, #667eea);
}

.sevol-logo-area h2 {
    color: var(--primary-color, #667eea);
    font-size: 2.5em;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0;
}

.sevol-header {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.sevol-header h1 {
    font-size: 2em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.sevol-header p {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.95;
}

.sevol-language-flag {
    z-index: 100;
}

.sevol-flag-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.sevol-flag-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.sevol-language-menu {
    position: absolute;
    top: 60px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 10px;
    min-width: 200px;
    z-index: 1000;
}

.sevol-language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.sevol-language-option:hover {
    background: #f0f0f0;
}

.sevol-language-option .flag {
    font-size: 20px;
}

.sevol-language-option .name {
    font-weight: 500;
}

.sevol-content {
    padding: 40px 30px;
}

.sevol-step {
    display: none;
}

.sevol-step.active {
    display: block;
    animation: sevolFadeIn 0.5s ease-in;
}

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

.sevol-question {
    margin-bottom: 30px;
}

.sevol-question label {
    display: block;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.sevol-question input[type="number"],
.sevol-question input[type="email"],
.sevol-question input[type="text"],
.sevol-question input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s;
    box-sizing: border-box;
}

.sevol-question input:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sevol-option-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.sevol-option {
    position: relative;
}

.sevol-option input[type="radio"],
.sevol-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.sevol-option label {
    display: block;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-weight: 500;
    background: white;
}

.sevol-option input:checked + label {
    border-color: var(--primary-color, #667eea);
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: white;
    transform: scale(1.05);
}

.sevol-option label:hover {
    border-color: var(--primary-color, #667eea);
    transform: translateY(-2px);
}

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

.sevol-btn-primary,
.sevol-btn-secondary {
    flex: 1;
    padding: 10px 43px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 58px;
    cursor: pointer;
    transition: all 0.3s;
}

.sevol-btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: white;
}

.sevol-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    background-color: #71BF43 !important;
}

.sevol-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sevol-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.sevol-btn-secondary:hover {
    background: #e0e0e0;
}

.sevol-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.sevol-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    transition: width 0.3s ease;
    width: 0;
}

.sevol-results {
    text-align: center;
}

.sevol-results h2 {
    color: #333;
    margin-bottom: 20px;
}

.sevol-price-box {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin: 30px 0;
}

.sevol-price-box h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    opacity: 0.9;
    color: white;
}

.sevol-price {
    font-size: 3em;
    font-weight: 700;
    margin: 20px 0;
}

.sevol-price-range {
    font-size: 1.2em;
    opacity: 0.9;
}

.sevol-details-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: left;
}

.sevol-details-box h3 {
    color: var(--primary-color, #667eea);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.sevol-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.sevol-detail-label {
    font-weight: 500;
    color: #555;
}

.sevol-detail-value {
    font-weight: 600;
    color: #333;
}

.sevol-email-capture {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.sevol-email-capture h3 {
    color: var(--primary-color, #667eea);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.sevol-email-capture p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sevol-success-message {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #c3e6cb;
}

.sevol-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid #f5c6cb;
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .sevol-header h1 {
        font-size: 1.5em;
    }

    .sevol-option-group {
        grid-template-columns: 1fr;
    }

    .sevol-price {
        font-size: 2em !important;
    }

    .sevol-logo-area h2 {
        font-size: 1.8em;
    }
    
    .sevol-button-group {
        flex-direction: column;
    }
    
    .sevol-detail-item {
        flex-direction: column;
        gap: 5px;
    }
}
