/* Move-In/Move-Out Inspection Form Styles */

.mioi-form-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
.mioi-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
}

.mioi-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 100px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.mioi-progress-step.active {
    opacity: 1;
}

.mioi-progress-step.completed {
    opacity: 1;
}

.mioi-progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #cccccc;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.mioi-progress-step.active .step-number {
    background: #2271b1;
    transform: scale(1.1);
}

.mioi-progress-step.completed .step-number {
    background: #00a32a;
}

.mioi-progress-step .step-title {
    font-size: 12px;
    text-align: center;
    color: #666;
    font-weight: 500;
}

.mioi-progress-step.active .step-title {
    color: #2271b1;
    font-weight: 600;
}

/* Form Steps */
.mioi-step {
    display: none;
}

.mioi-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mioi-step h2 {
    color: #2271b1;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2271b1;
    font-size: 24px;
}

.mioi-step h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 18px;
}

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

.mioi-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.mioi-form-group input[type="text"],
.mioi-form-group input[type="email"],
.mioi-form-group input[type="tel"],
.mioi-form-group input[type="date"],
.mioi-form-group input[type="number"],
.mioi-form-group select,
.mioi-form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.mioi-form-group input:focus,
.mioi-form-group select:focus,
.mioi-form-group textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.mioi-form-group .description {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Shortcode Wrapper */
.mioi-shortcode-wrapper {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    margin: 25px 0;
}

.mioi-tenant-info-manual {
    background: #fafafa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
}

/* Inspection Table */
.mioi-inspection-table {
    overflow-x: auto;
    margin: 20px 0;
}

.mioi-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mioi-table thead {
    background: #2271b1;
    color: #ffffff;
}

.mioi-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.mioi-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.mioi-table tbody tr:hover {
    background: #f9f9f9;
}

.mioi-table .item-name {
    font-weight: 500;
    color: #333;
}

.mioi-table select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mioi-table input[type="number"] {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mioi-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.mioi-table input[type="file"] {
    font-size: 13px;
}

.mioi-table textarea {
    width: 100%;
    min-width: 150px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    resize: vertical;
}

.mioi-table input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.mioi-table select.bad-condition {
    border-color: #dc3232;
}

.mioi-table input.damage-price.enabled {
    border-color: #dc3232;
    background: #fff9f9;
}

/* Navigation Buttons */
.mioi-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.mioi-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mioi-btn-prev {
    background: #666;
    color: #ffffff;
}

.mioi-btn-prev:hover {
    background: #555;
}

.mioi-btn-next {
    background: #2271b1;
    color: #ffffff;
    margin-left: auto;
}

.mioi-btn-next:hover {
    background: #1a5a8a;
}

.mioi-btn-submit {
    background: #00a32a;
    color: #ffffff;
    margin-left: auto;
}

.mioi-btn-submit:hover {
    background: #008a20;
}

.mioi-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Total Damage Display */
.mioi-total-damage {
    margin-top: 30px;
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    text-align: center;
}

.mioi-total-damage h3 {
    margin: 0;
    color: #856404;
    font-size: 24px;
}

#total-damage-amount {
    color: #dc3232;
    font-weight: bold;
}

/* Loading Spinner */
.mioi-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.mioi-loading.active {
    display: block;
}

.mioi-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Success/Error Messages */
.mioi-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 500;
}

.mioi-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mioi-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mioi-form-container {
        padding: 20px;
    }
    
    .mioi-progress-bar {
        overflow-x: scroll;
    }
    
    .mioi-progress-step {
        min-width: 80px;
    }
    
    .mioi-progress-step .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .mioi-progress-step .step-title {
        font-size: 11px;
    }
    
    .mioi-table {
        font-size: 13px;
    }
    
    .mioi-table th,
    .mioi-table td {
        padding: 8px 5px;
    }
    
    .mioi-form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .mioi-btn {
        width: 100%;
        margin-left: 0 !important;
    }
}
