/**
 * Calculator Page Styles
 * Styles for the website cost calculator page
 */

/* Calculator Steps Section */
.calculator-steps {
    padding: 60px 0;
    background: #f8f9fa;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2a2a3e;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.step-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.step-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #667eea;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.step-links a:hover {
    background: #667eea;
    color: white;
}

/* Calculator Section */
.calculator-section {
    padding: 80px 0;
    background: #0a0a0f;
}

.calculator-form {
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-form h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 50px;
    color: #2c3e50;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.calculator-options {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.option-group {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.option-group h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.option-item:last-child {
    border-bottom: none;
}

.option-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
}

.option-item input[type="checkbox"],
.option-item input[type="radio"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.option-item input[type="radio"] + .checkmark {
    border-radius: 50%;
}

.option-item input:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.option-item input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.option-item input[type="radio"]:checked + .checkmark::after {
    left: 6px;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: #8b5cf6;
    transform: none;
}

.price {
    font-weight: 600;
    color: #667eea;
    font-size: 16px;
}

/* Calculator Result */
.calculator-result {
    position: sticky;
    top: 100px;
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.result-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.total-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

#total-price {
    font-size: 48px;
    font-weight: 700;
}

.currency {
    font-size: 24px;
    font-weight: 600;
}

.calculate-button {
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.calculate-button:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Contact Form Section */
.contact-form-section {
    background: #f8f9fa;
    padding: 50px;
    border-radius: 20px;
    margin-top: 50px;
    display: none;
}

.contact-form-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #2c3e50;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #1a1a2e;
    color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-buttons {
    text-align: center;
}

.submit-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Order Success Message */
.order-success-message {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .calculator-result {
        position: static;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-form h2 {
        font-size: 24px;
    }
    
    #total-price {
        font-size: 36px;
    }
    
    .option-group {
        padding: 20px;
    }
    
    .result-card {
        padding: 30px;
    }
    
    .contact-form-section {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .calculator-steps,
    .calculator-section {
        padding: 40px 0;
    }
    
    .step-card {
        padding: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .option-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .price {
        align-self: flex-end;
    }
}