/* HM Repair Form Styles */
.hm-repair-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.hm-repair-form-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

/* Progress Indicator */
.hm-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hm-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hm-progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.hm-progress-step.active .hm-progress-circle {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
}

.hm-progress-step.completed .hm-progress-circle {
    background: #16a34a;
    color: white;
}

.hm-progress-step.completed .hm-progress-circle::after {
    content: '✓';
    font-size: 20px;
}

.hm-progress-label {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
    white-space: nowrap;
}

.hm-progress-step.active .hm-progress-label {
    color: #2563eb;
    font-weight: 600;
}

.hm-progress-line {
    width: 60px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px 20px;
}

/* Form Steps */
.hm-step {
    display: none;
}

.hm-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Headings */
.hm-heading h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #1f2937;
}

.hm-step-title {
    margin: 0 0 20px;
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.hm-building-info {
    margin: 10px 0 20px;
    padding: 12px;
    background: #f0f9ff;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
    font-size: 14px;
    color: #1e40af;
}

/* Form Groups */
.hm-form-group {
    margin-bottom: 24px;
}

.hm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.hm-form-group input[type="text"],
.hm-form-group input[type="password"],
.hm-form-group input[type="email"],
.hm-form-group input[type="tel"],
.hm-form-group select,
.hm-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.hm-form-group input:focus,
.hm-form-group select:focus,
.hm-form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.hm-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.hm-form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* Icon Grid */
.hm-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.hm-icon-box {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.hm-icon-box:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.hm-icon-box.selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.hm-icon-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hm-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hm-caption {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
}

/* File Upload */
.hm-file-upload {
    position: relative;
}

.hm-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hm-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.hm-file-label:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.hm-file-icon {
    font-size: 32px;
}

.hm-file-text {
    font-size: 15px;
    color: #4b5563;
    font-weight: 500;
}

.hm-media-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.hm-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    aspect-ratio: 1;
}

.hm-preview-item img,
.hm-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hm-preview-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 11px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Buttons */
.hm-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    justify-content: space-between;
}

.hm-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.hm-btn-primary {
    background: #2563eb;
    color: white;
}

.hm-btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.hm-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.hm-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.hm-btn-secondary:hover {
    background: #e5e7eb;
}

.hm-btn-arrow {
    font-size: 18px;
}

/* Messages */
.hm-error-message,
.hm-success-message,
.hm-lessee-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
    display: none;
}

.hm-error-message {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.hm-success-message {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #16a34a;
}

.hm-lessee-message {
    background: #fff7ed;
    color: #9a3412;
    border-left: 4px solid #f97316;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .hm-repair-form-container {
        padding: 24px 20px;
    }
    
    .hm-progress {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .hm-progress-line {
        width: 40px;
        margin: 0 5px 20px;
    }
    
    .hm-progress-circle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .hm-progress-label {
        font-size: 11px;
    }
    
    .hm-icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 12px;
    }
    
    .hm-icon-box {
        padding: 16px 12px;
    }
    
    .hm-buttons {
        flex-direction: column-reverse;
    }
    
    .hm-btn {
        width: 100%;
        justify-content: center;
    }
}