/* Service Request Stepper Form Styles */
.sr-stepper {
    max-width: 900px;
    margin: 20px auto;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Progress Steps */
.sr-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.sr-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e1e5e9;
    z-index: 1;
}

.sr-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 0 15px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-title {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.sr-step.active .step-number {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.sr-step.active .step-title {
    color: #3b82f6;
    font-weight: 600;
}

.sr-step.completed .step-number {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.sr-step.completed .step-title {
    color: #10b981;
}

/* Step Content */
.sr-step-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.sr-step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sr-step-content h3 {
    color: #1f2937;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 10px;
}

/* Form Fields */
.sr-field {
    margin-bottom: 20px;
}

.sr-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.sr-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.required {
    color: #ef4444;
}

.sr-field input[type="text"],
.sr-field input[type="number"],
.sr-field input[type="email"],
.sr-field input[type="tel"],
.sr-field input[type="password"],
.sr-field textarea,
.sr-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.sr-field input:focus,
.sr-field textarea:focus,
.sr-field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sr-field textarea {
    resize: vertical;
    min-height: 120px;
}

.sr-field input.error,
.sr-field textarea.error,
.sr-field select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Checkbox styling */
.sr-field input[type="checkbox"] {
    /* width: auto; */
    margin-right: 8px;
    transform: scale(1.2);
}

/* Error messages */
.sr-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.sr-error.show {
    display: block;
}

/* Notes */
.sr-note {
    font-size: 13px;
    color: #6b7280;
    margin-top: 5px;
    font-style: italic;
}

/* Buttons */
.sr-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.sr-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.btn-next,
.btn-submit,
#saveData {
    background: #3b82f6;
    color: #ffffff;
}

.btn-next:hover,
.btn-submit:hover,
#saveData:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-prev {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-prev:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.btn-submit {
    background: #10b981;
}

.btn-submit:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Review Section */
.review-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.review-value {
    color: #6b7280;
    font-size: 15px;
}

/* Confirmation */
.sr-confirm-box {
    background: #ecfdf5;
    border: 2px solid #a7f3d0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.sr-confirm-box h3 {
    color: #065f46;
    margin-bottom: 10px;
}

.sr-confirm-box p {
    color: #047857;
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sr-stepper {
        margin: 10px;
        padding: 20px;
    }
    
    .sr-field-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sr-steps {
        margin-bottom: 30px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .step-title {
        font-size: 12px;
    }
    
    .sr-buttons {
        flex-direction: column;
    }
    
    .sr-buttons button {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .sr-steps::before {
        display: none;
    }
    
    .sr-steps {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sr-step {
        flex: 1;
        min-width: calc(50% - 5px);
    }
}

/* Loading state */
.sr-loading {
    opacity: 0.6;
    pointer-events: none;
}

.sr-loading button {
    position: relative;
}

.sr-loading button::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide original step classes */
#sr-stepper-form .step {
    display: none;
}

#sr-stepper-form .step.active {
    display: block;
}

/* Service Request Tracking Styles */
.sr-tracking {
    max-width: 800px;
    margin: 20px auto;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sr-tracking-header {
    text-align: center;
    margin-bottom: 30px;
}

.sr-tracking-header h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.sr-tracking-header p {
    color: #6c757d;
    margin: 0;
    font-size: 16px;
}

.sr-tracking-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.btn-track {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.btn-track:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    transform: translateY(-1px);
}

.btn-track:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Tracking Results */
.sr-tracking-result {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.tracking-result-content .result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
}

.result-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-progress {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.result-section {
    margin-bottom: 25px;
}

.result-section h4 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.result-section p {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #6c757d;
}

.result-section p strong {
    color: #495057;
    font-weight: 600;
}

/* Status Timeline */
.status-timeline {
    margin-top: 20px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 25px;
    width: 2px;
    height: calc(100% + 5px);
    background: #dee2e6;
}

.timeline-item.completed::before {
    background: #28a745;
}

.timeline-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dee2e6;
    border: 3px solid #ffffff;
    position: absolute;
    left: 0;
    top: 5px;
    z-index: 2;
}

.timeline-item.completed .timeline-marker {
    background: #28a745;
}

.timeline-content {
    margin-left: 10px;
}

.timeline-content h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.timeline-content p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

/* Error Styling */
.sr-tracking-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.sr-tracking-error p {
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sr-tracking {
        margin: 10px;
        padding: 20px;
    }
    
    .sr-tracking-header h3 {
        font-size: 24px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sr-field-row {
        flex-direction: column;
    }
    
    .sr-field-row .sr-field {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .btn-track {
        max-width: none;
    }
}
        