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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /*background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);*/
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.app-container_ {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header */
.app-header {
    background: #fff;
    color: #2e2e2e;
    padding: 5px 20px 5px;
    text-align: center;
}

.logo {
    height: 50px;
    margin-bottom: 10px;
}

.app-title {
    font-size: 24px;
    font-weight: 600;
}

/* Main Form Container */
.form-container {
    position: relative;
    min-height: 400px;
    padding: 40px 20px;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

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

.step-content {
    margin-bottom: 30px;
}

.step-illustration {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-illustration svg {
    width: 100%;
    height: 100%;
    color: #667eea;
}

.step-illustration-text {
    text-align: center;
    margin-bottom: 30px;
}

/* Headings */
h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

/* Form Groups */
.form-group {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Checkbox Styles */
.checkbox-group {
    margin: 30px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label span {
    font-size: 12px;
    color: #555;
}

/* File Upload */
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: #f8f9ff;
    margin-bottom: 15px;
}

.file-upload-label:hover {
    background: #f0f2ff;
    border-color: #764ba2;
}

.upload-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    color: #667eea;
}

.file-upload-label span {
    font-weight: 500;
    color: #667eea;
}

input[type="file"] {
    display: none;
}

.image-preview {
    margin-top: 15px;
    max-width: 100%;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Damage Diagram */
.damage-diagram-container {
    margin: 30px 0;
    padding: 20px;
}

#vehicle-diagram {
    width: 100%;
    height: auto;
    max-height: 400px;
}

.selected-areas {
    margin-top: 20px;
    padding: 15px;
    background: #f0f2ff;
    border-radius: 6px;
}

.selected-areas p {
    text-align: left;
    margin-bottom: 10px;
    font-weight: 500;
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.area-tag {
    display: inline-block;
    background: #0067ac;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.area-tag .remove {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* Photos Container */
.photos-container {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.photo-item {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
}

.photo-item-label {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    display: block;
}

.photo-item-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.photo-item-input:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.photo-count {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* Review Summary */
.review-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.review-section {
    margin-bottom: 20px;
}

.review-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

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

.review-label {
    font-weight: 500;
    color: #666;
}

.review-value {
    color: #2c3e50;
    text-align: right;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #0067ac;
    font-weight: 300;
    color: #fff;
    width: 100%;
    text-align: center;
    flex: 1;
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #e0e0e0;
    color: #8f8f8f;
    font-weight: 300;
    flex: 1;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid #f1f1f1;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    background: #e0e0e0;
    color: #999;
    transition: all 0.3s;
}

.step-indicator.active {
    background: linear-gradient(135deg, #0067ac 0%, #024673 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step-indicator.completed {
    background: #27ae60;
    color: white;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #27ae60;
    margin: 20px 0;
}

.success-message h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.success-message p {
    color: #558b2f;
}

/* Error Messages */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.vehicle-image {
    width: 170px;
    position: absolute;
    z-index: 1;
    left: 50%;
    margin-left: -85px;
    margin-top: 1rem;
}
.vehicle-area {
    fill: #fff;
    stroke: #999;
    stroke-width: 2;
    cursor: pointer;
}
.vehicle-area.selected {
    fill: #ccc;
}

/* Responsive */
@media (max-width: 480px) {
    .app-container {
        border-radius: 0;
    }

    .form-container {
        padding: 30px 15px;
    }

    h2 {
        font-size: 14px;
    }

    p {
        font-size: 12px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .button-group {
        /*flex-direction: column;*/
    }

    .step-illustration {
        width: 100px;
        height: 100px;
    }

    #vehicle-diagram {
        max-height: 300px;
        position: relative;
        z-index: 2;
    }
}
