/* style.css - Service Form Styles */
:root {
    --green: #4CAF50;
    --yellow: #FFC107;
    --red: #F44336;
    --blue: #2196F3;
    --gray: #f5f5f5;
    --dark-gray: #333;
    
    /* Dynamiska färger som kommer från huvudtemat */
    --primary-color: #4CAF50;
    --background-color: #f8f9fa;
    --text-color: #333;
    --button-hover: #45a049;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 20px;
}

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

header {
    background: linear-gradient(135deg, var(--primary-color), #3498db);
    color: white;
    padding: 30px;
    text-align: center;
}

.progress-bar {
    display: flex;
    background: #ecf0f1;
    padding: 10px;
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--primary-color);
    color: white;
}

.form-section {
    display: none;
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.form-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.status-indicator {
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
}

.status-green { background: var(--green); }
.status-yellow { background: var(--yellow); color: black; }
.status-red { background: var(--red); }

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

.measurement-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: var(--gray);
    transition: all 0.3s ease;
}

.measurement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.measurement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.measurement-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.photo-upload {
    border: 2px dashed #ddd;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload:hover {
    border-color: var(--primary-color);
    background: #f0f8ff;
}

.photo-preview {
    display: inline-block;
    margin: 5px;
    position: relative;
}

.photo-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.remove-photo {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
}

.navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: var(--gray);
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--button-hover);
}

.btn-success {
    background: var(--green);
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

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

.btn-secondary:hover {
    background: #5a6268;
}

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

.summary-card {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-weight: bold;
}

.calculations-panel {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

@media (max-width: 768px) {
    .measurement-grid {
        grid-template-columns: 1fr;
    }
    
    .measurement-inputs {
        grid-template-columns: 1fr;
    }
    
    .progress-bar {
        flex-direction: column;
    }
    
    .progress-step {
        margin: 2px 0;
    }
}
