/* Simulation Page Styles */

.simulation-hero {
    background: linear-gradient(135deg, #994a82 0%, #4969a1 50%, #28a9dc 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.simulation-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.simulation-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.simulation-form {
    padding: 60px 0;
    background: #f8f9fa;
}

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

/* Progress Bar */
.form-progress {
    background: linear-gradient(135deg, #994a82, #4969a1);
    padding: 30px;
    color: white;
}

.progress-bar {
    background: rgba(255,255,255,0.2);
    height: 6px;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    background: white;
    height: 100%;
    width: 25%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.step {
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
    font-weight: 600;
}

/* Form Content */
.simulation-form-content {
    padding: 40px;
}

.form-step {
    display: none !important;
    animation: fadeInUp 0.5s ease;
}

.form-step.active {
    display: block !important;
}

.form-step h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #28a9dc;
    box-shadow: 0 0 0 3px rgba(40, 169, 220, 0.1);
}

.form-group .unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 500;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

/* Radio et Checkbox Groups */
.radio-group,
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: #28a9dc;
    background: rgba(40, 169, 220, 0.05);
}

.radio-label input,
.checkbox-label input {
    display: none;
}

.radio-custom,
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    margin-right: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-custom {
    border-radius: 50%;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-label input:checked + .radio-custom {
    border-color: #28a9dc;
    background: #28a9dc;
    box-shadow: inset 0 0 0 3px white;
}

.checkbox-label input:checked + .checkbox-custom {
    border-color: #28a9dc;
    background: #28a9dc;
    position: relative;
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
}

.btn-nav,
.btn-calculate {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-nav.prev {
    background: #6c757d;
    color: white;
}

.btn-nav.next,
.btn-calculate {
    background: linear-gradient(135deg, #28a9dc, #1e8cb8);
    color: white;
}

.btn-nav:hover,
.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Results Section */
.results-container {
    text-align: center;
}

.results-container h2 {
    color: #28a9dc;
    margin-bottom: 30px;
}

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

.result-card {
    background: linear-gradient(135deg, #28a9dc, #1e8cb8);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.result-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.result-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.result-description {
    font-size: 14px;
    opacity: 0.9;
}

.total-card {
    background: linear-gradient(135deg, #994a82, #7d3a69);
    grid-column: 1 / -1;
}

.total-card .result-amount {
    font-size: 48px;
}

/* Contact Expert */
.contact-expert {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.contact-expert h3 {
    color: #333;
    margin-bottom: 10px;
}

.contact-expert p {
    color: #666;
    margin-bottom: 20px;
}

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

.btn-contact-phone,
.btn-contact-callback {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contact-phone {
    background: #28a9dc;
    color: white;
}

.btn-contact-callback {
    background: #994a82;
    color: white;
}

.btn-contact-phone:hover,
.btn-contact-callback:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideInDown 0.3s ease;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #28a9dc, #1e8cb8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Header active state */
.header .btn-simulate.active {
    background: linear-gradient(135deg, #994a82, #7d3a69);
}

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

    .form-container {
        margin: 0 15px;
        border-radius: 10px;
    }

    .simulation-form-content {
        padding: 20px;
    }

    .form-navigation {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .radio-group,
    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .contact-buttons {
        flex-direction: column;
    }

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
