/* Investigation Form Styles */
.investigation-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.investigation-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Progress Indicator */
.form-progress {
    margin-bottom: 48px;
    background: var(--bg-white);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-gray);
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: var(--gradient-hero);
    border-color: var(--primary-color);
    color: var(--text-white);
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--text-dark);
}

.progress-line {
    height: 3px;
    flex: 1;
    background: var(--border-color);
    margin: 0 16px;
    position: relative;
    top: -24px;
    z-index: 1;
}

.progress-line.active {
    background: var(--gradient-hero);
}

/* Form Steps */
.form-step {
    display: none;
    background: var(--bg-white);
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-step-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.form-step-header p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.form-help {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-light);
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* File Upload */
.file-upload-wrapper {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    background: var(--bg-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-wrapper:hover,
.file-upload-wrapper.dragover {
    border-color: var(--primary-color);
    background: rgba(0, 102, 255, 0.05);
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--text-gray);
    font-weight: 500;
}

.file-upload-label svg {
    color: var(--primary-color);
}

.file-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-info svg {
    color: var(--primary-color);
}

.file-size {
    color: var(--text-light);
    font-size: 13px;
}

.file-remove {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.file-remove:hover {
    color: #ef4444;
}

/* Terms Container */
.terms-container {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.terms-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 24px;
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.terms-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 24px;
}

.terms-content ul li {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.terms-content ul li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Review Summary */
.review-summary {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.review-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.review-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.review-item {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.review-item strong {
    color: var(--text-dark);
    font-weight: 600;
    margin-right: 8px;
}

.review-file-list {
    margin-top: 8px;
    padding: 12px;
    background: var(--bg-white);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-gray);
    word-break: break-all;
    font-style: italic;
    white-space: pre-wrap;
}

.review-text {
    margin-top: 8px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: 8px;
    color: var(--text-gray);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.btn-submit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .investigation-wrapper {
        padding: 0 16px;
    }

    .form-progress {
        padding: 24px 16px;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 16px;
    }

    .progress-step {
        flex: 0 0 auto;
    }

    .progress-line {
        display: none;
    }

    .step-label {
        font-size: 11px;
    }

    .form-step {
        padding: 32px 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }

    .terms-container {
        max-height: 300px;
        padding: 24px;
    }
}
