/* Calculator Specific Styles */
.calculator-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.calculator-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.calculator-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.calculator-section {
    padding: 80px 0;
    background: #f8f9ff;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.calculator-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.calculator-form h2 {
    margin-bottom: 2rem;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.checkbox-item:hover {
    background-color: #f8f9ff;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

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

.quote-result {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: none;
}

.quote-result.show {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.quote-result h3 {
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

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

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

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

.quote-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1rem;
}

.quote-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.map-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.map-section h2 {
    margin-bottom: 2rem;
    color: #333;
}

.map-container {
    margin-top: 2rem;
}

.map-placeholder {
    background: linear-gradient(135deg, #f0f2f5 0%, #e1e8ed 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 2px dashed #ccc;
}

.map-placeholder h3 {
    margin-bottom: 2rem;
    color: #333;
}

.map-legend {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.zone-1 {
    background: #4CAF50;
}

.zone-2 {
    background: #FF9800;
}

.zone-3 {
    background: #f44336;
}

.map-note {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Responsive Design for Calculator */
@media (max-width: 968px) {
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calculator-hero h1 {
        font-size: 2.5rem;
    }
    
    .calculator-form,
    .quote-result,
    .map-section {
        padding: 2rem;
    }
    
    .map-legend {
        gap: 0.75rem;
    }
    
    .legend-item {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .calculator-hero {
        padding: 100px 0 40px;
    }
    
    .calculator-hero h1 {
        font-size: 2rem;
    }
    
    .calculator-form,
    .quote-result,
    .map-section {
        padding: 1.5rem;
    }
    
    .quote-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .map-legend {
        align-items: center;
    }
    
    .legend-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Animation for results */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.quote-result.show {
    animation: slideInUp 0.5s ease-out;
}

/* Loading state for calculate button */
.btn-primary.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s ease infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

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

/* Service option styling */
.form-control option {
    padding: 10px;
}

.form-control optgroup {
    font-weight: bold;
    color: #667eea;
}

/* Enhanced focus states */
.form-control:focus,
.checkbox-item:focus-within {
    transform: translateY(-1px);
}

/* Hover effects for interactive elements */
.calculator-form,
.quote-result,
.map-section {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-form:hover,
.quote-result:hover,
.map-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}
