/* Simulation Page Specific Styles */

.simulation-hero {
    background: linear-gradient(135deg, #3b1757 0%, #1a1a1a 50%, #eb9b2a 100%);
    padding: 150px 0 100px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.simulation-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 23, 87, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 23, 87, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.simulation-hero .hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #eb9b2a 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.simulation-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Container */
.simulation-form {
    padding: 80px 0;
    background: #f8f9fa;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Service Tabs */
.service-tabs {
    margin-bottom: 3rem;
}

.service-tabs .nav-pills {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 0.5rem;
}

.service-tabs .nav-link {
    color: var(--text-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.service-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(59, 23, 87, 0.1);
}

.service-tabs .nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(59, 23, 87, 0.3);
}

/* Form Content */
.simulation-form-content {
    animation: fadeInUp 0.5s ease;
}

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

.form-title {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    font-size: 1.1rem;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 23, 87, 0.25);
}

/* Checkbox Groups */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-check {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-check:hover {
    border-color: var(--primary-color);
    background: rgba(59, 23, 87, 0.05);
}

.form-check-input:checked + .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

.form-check-input {
    margin-top: 0.2rem;
}

.form-check-label {
    cursor: pointer;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Range Inputs */
.range-container {
    position: relative;
}

.form-range {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.range-value {
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.form-actions .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.form-actions .btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 5px 15px rgba(59, 23, 87, 0.3);
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 23, 87, 0.4);
}

/* Cost Summary */
.cost-summary {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.summary-title {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
}

.cost-breakdown {
    margin-bottom: 2rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.cost-item.total {
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 1rem;
}

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

.cost-item.total .cost-value {
    color: white;
}

/* Cost Actions */
.cost-actions {
    margin: 2rem 0;
}

.cost-actions .btn {
    font-weight: 600;
    border-radius: 25px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.cost-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cost-actions .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.cost-actions .btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Cost Note */
.cost-note {
    background: rgba(59, 23, 87, 0.05);
    border: 1px solid rgba(59, 23, 87, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 2rem;
}

.cost-note p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-body .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.modal-body .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 23, 87, 0.25);
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
}

.modal-footer .btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success States */
.success-message {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin: 1rem 0;
    animation: slideInDown 0.5s ease;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .cost-summary {
        position: static;
        margin-top: 3rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .simulation-hero {
        padding: 120px 0 80px;
    }
    
    .simulation-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .simulation-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .service-tabs .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .cost-summary {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .simulation-form {
        padding: 60px 0;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .service-tabs .nav-pills {
        flex-direction: column;
    }
    
    .service-tabs .nav-link {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .cost-summary {
        padding: 1rem;
    }
    
    .summary-title {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .simulation-hero,
    .footer,
    .form-actions,
    .cost-actions {
        display: none !important;
    }
    
    .simulation-form {
        padding: 0;
    }
    
    .form-container,
    .cost-summary {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .cost-item.total {
        background: #f8f9fa !important;
        color: #000 !important;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Highlight Effects */
.highlight-change {
    animation: highlightPulse 0.6s ease;
}

@keyframes highlightPulse {
    0% { background-color: transparent; }
    50% { background-color: rgba(235, 155, 42, 0.2); }
    100% { background-color: transparent; }
}

/* Custom Scrollbar */
.cost-breakdown::-webkit-scrollbar {
    width: 6px;
}

.cost-breakdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cost-breakdown::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.cost-breakdown::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}