/* New Order Form Styles */
.order-progress {
    margin-bottom: 2rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.progress-step.active .step-number {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.progress-step.completed .step-number {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.progress-step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

.progress-step.completed .step-label {
    color: #28a745;
}

.step-summary {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    font-weight: 400;
    min-height: 1.2rem;
    line-height: 1.3;
    padding: 0.25rem 0.5rem;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
    max-width: 100%;
    background: #f8f9fa;
    border-radius: 8px;
    white-space: normal;
    word-wrap: break-word;
}

.progress-step.completed .step-summary {
    color: #6c757d;
    font-weight: 400;
}

.progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    margin: 0; /* Add margin to align with step circles */
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.5s ease, background 0.5s ease;
    border-radius: 2px;
}

.progress-fill.completed {
    background: linear-gradient(90deg, #28a745, #20c997);
}

/* Form Steps */
.order-form {
    position: relative;
}

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

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

.step-content {
    padding: 1rem 0;
}

.step-title {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.step-content p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Step Placeholder */
.step-placeholder {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.step-placeholder i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.step-placeholder p {
    margin: 0;
    color: #6c757d;
    font-size: 1.1rem;
}

/* Sub-services Container */
.sub-services-container {
    margin-top: 2rem;
}

.service-field {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.field-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.field-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.field-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.field-option {
    position: relative;
}

.field-option input[type="radio"],
.field-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    min-height: 48px;
}

.option-card:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(3px);
}

.field-option input[type="radio"]:checked + .option-card,
.field-option input[type="checkbox"]:checked + .option-card {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.option-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    flex: 1;
}

.option-info .option-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

.option-info small {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 400;
    margin: 0;
}

.option-info .option-description {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
}

/* Custom radio button */
.field-option input[type="radio"] + .option-card::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.field-option input[type="radio"]:checked + .option-card::before {
    border-color: #667eea;
    background: #667eea;
    box-shadow: inset 0 0 0 3px white;
}

/* Custom checkbox */
.field-option input[type="checkbox"] + .option-card::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.field-option input[type="checkbox"]:checked + .option-card::before {
    border-color: #667eea;
    background: #667eea;
}

.field-option input[type="checkbox"]:checked + .option-card::after {
    content: '✓';
    position: absolute;
    left: auto;
    right: 21px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}



/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    max-width: 320px;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error {
    border-color: #dc3545;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    font-weight: 500;
    /* min-height: 1.2rem; */
}

.field-help {
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.radio-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.radio-option input[type="radio"]:checked + .radio-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Custom radio button for form fields */
.radio-option input[type="radio"] + .radio-label::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-label::before {
    border-color: #667eea;
    background: #667eea;
    box-shadow: inset 0 0 0 3px white;
}

.radio-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    margin-right: 0.75rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error {
    border-color: #dc3545;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.2rem;
}

.field-help {
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.radio-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.radio-option input[type="radio"]:checked + .radio-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Custom radio button for form fields */
.radio-option input[type="radio"] + .radio-label::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-label::before {
    border-color: #667eea;
    background: #667eea;
    box-shadow: inset 0 0 0 3px white;
}

.radio-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    margin-right: 0.75rem;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}
.form-navigation.reverse {
    flex-direction: row-reverse;
}

.form-navigation .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateX(5px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.form-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error {
    border-color: #dc3545;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.2rem;
}

.field-help {
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.radio-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.radio-option input[type="radio"]:checked + .radio-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Custom radio button for form fields */
.radio-option input[type="radio"] + .radio-label::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-label::before {
    border-color: #667eea;
    background: #667eea;
    box-shadow: inset 0 0 0 3px white;
}

.radio-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    margin-right: 0.75rem;
}

/* Form Row Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Order Instructions Field */
.order-instructions-field {
    width: 50%;
}

/* Textarea Styles */
.form-textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    resize: vertical;
    min-height: 150px;
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* Character Counter */
.char-counter {
    text-align: left;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.char-counter span {
    font-weight: 500;
}

/* Responsive adjustments for form */
@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-step {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .order-instructions-field {
        width: 100%;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-navigation .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Age radio buttons responsive */
    .age-radio-group {
        flex-direction: column;
    }
    
    .age-option {
        min-width: auto;
    }
    
    .age-radio-label {
        min-height: 80px;
        padding: 1rem;
    }
    
    /* Skip step box responsive */
    .skip-step-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .skip-step-btn {
        align-self: center;
        width: auto;
    }
}

/* Order Success Styles */
.order-success {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.order-success h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.order-success p {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* File Upload Component Styles */
.dental-file-upload {
    width: 100%;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area.drag-over {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.02);
}

.upload-content {
    position: relative;
    z-index: 2;
}

.upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.upload-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Upload Progress Styles */
.upload-progress-container {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.upload-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.upload-progress-header h4 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.btn-cancel-upload {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-cancel-upload:hover {
    background: #c82333;
}

.upload-progress-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.progress-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-item-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.progress-item-size {
    color: #6c757d;
    font-size: 0.8rem;
}

.progress-bar-container {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-item-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.progress-percentage {
    color: #667eea;
    font-weight: 500;
}

.progress-status {
    color: #6c757d;
}

.progress-item.error .progress-bar-fill {
    background: #dc3545;
}

.progress-item.error .progress-status {
    color: #dc3545;
}

/* File List Styles */
.file-list-container {
    margin-top: 1.5rem;
    background: white;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.file-list-header h4 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.file-list-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-count {
    color: #6c757d;
    font-size: 0.9rem;
}

.btn-clear-all {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-clear-all:hover {
    background: #c82333;
}

.file-list {
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

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

.file-item:hover {
    background: #f8f9fa;
}

.file-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    font-size: 1.2rem;
    color: white;
}

.file-item-icon.image {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.file-item-icon.video {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.file-item-icon.audio {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.file-item-icon.archive {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.file-item-icon.document {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
}

.file-item-icon.other {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.file-item-info {
    flex: 1;
    min-width: 0;
}

.file-item-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.file-item-size {
    font-weight: 500;
}

.file-item-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.file-item-status.uploaded {
    background: #d4edda;
    color: #155724;
}

.file-item-status.error {
    background: #f8d7da;
    color: #721c24;
}

/* File Progress Bar */
.file-progress-bar {
    margin-top: 0.5rem;
    background: #e9ecef;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    position: relative;
}

.file-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.file-progress-text {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 500;
}

.file-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-remove-file {
    background: #dc3545;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-remove-file:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Age Radio Button Styles */
.age-radio-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.age-option {
    position: relative;
    flex: 1;
    min-width: 120px;
}

.age-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.age-radio-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2.5rem 1rem 1rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
    min-height: 80px;
    justify-content: center;
    position: relative;
    direction: rtl;
}

.age-radio-label:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
}

.age-option input[type="radio"]:checked + .age-radio-label {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.25);
    transform: translateY(-3px);
}

/* Focus state removed - hover and selection borders provide sufficient feedback */

/* Active state for better interaction feedback */
.age-radio-label:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

.age-text {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    display: block;
    text-align: right;
    width: 100%;
}

.age-description {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 400;
    display: block;
    line-height: 1.3;
    text-align: right;
    width: 100%;
}

/* Custom radio button indicator - centered vertically */
.age-option input[type="radio"] + .age-radio-label::before {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: white;
    opacity: 0.7;
    z-index: 1;
}

.age-option input[type="radio"]:checked + .age-radio-label::before {
    border-color: #667eea;
    background: #667eea;
    box-shadow: inset 0 0 0 3px white;
    opacity: 1;
}

/* Hover effect for radio indicator */
.age-radio-label:hover::before {
    border-color: #667eea;
    opacity: 1;
}

/* Skip Step Box Styles */
.skip-step-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.skip-step-box:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.skip-step-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.skip-step-text {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
}

.skip-step-text i {
    color: #667eea;
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.skip-step-text span {
    text-align: right;
    direction: rtl;
}

.skip-step-btn {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skip-step-btn:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(108, 117, 125, 0.3);
}

.skip-step-btn i {
    font-size: 0.8rem;
}

/* File Type Categories */
.file-type-image .file-item-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.file-type-video .file-item-icon {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.file-type-audio .file-item-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.file-type-archive .file-item-icon {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
}

.file-type-document .file-item-icon {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
}

.file-type-3d .file-item-icon {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .upload-area {
        padding: 1.5rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .upload-title {
        font-size: 1.1rem;
    }
    
    .file-list-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .file-item-actions {
        align-self: flex-end;
    }
}

/* Order Summary Overlay Styles */
.order-summary-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-in;
    overflow-y: auto;
}

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

.summary-overlay-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

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

.summary-header {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.summary-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.summary-title i {
    color: #667eea;
    font-size: 2rem;
}

.summary-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

.summary-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.summary-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #667eea;
}

.summary-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.summary-section-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.summary-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.summary-section-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Step 3 specific layout - patient name and age in one row on desktop */
#summary-step-3 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#summary-step-3 .summary-patient-name,
#summary-step-3 .summary-patient-age {
    flex: 0 0 calc(50% - 0.375rem);
    min-width: 0;
}

#summary-step-3 .summary-order-note {
    flex: 1 1 100%;
    width: 100%;
}

#summary-step-3 .summary-item.empty {
    flex: 1 1 100%;
    width: 100%;
}

/* Inline layout for step 1 and step 2 */
#summary-step-1,
#summary-step-2 {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#summary-step-1 .summary-item,
#summary-step-2 .summary-item {
    flex: 0 0 auto;
    min-width: fit-content;
}

#summary-step-1 .summary-item.empty,
#summary-step-2 .summary-item.empty,
#summary-step-2 .summary-item.info {
    flex: 1 1 100%;
    width: 100%;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.summary-item:hover {
    background: rgba(102, 126, 234, 0.03);
    border-color: #667eea;
    transform: translateX(-3px);
}

.summary-item i {
    color: #28a745;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.summary-item.empty {
    color: #6c757d;
    font-style: italic;
    justify-content: center;
    padding: 1.5rem;
    background: transparent;
    border: 1px dashed #dee2e6;
}

.summary-item.empty i {
    color: #6c757d;
}

.summary-item.info {
    background: rgba(23, 162, 184, 0.1);
    border-color: #17a2b8;
}

.summary-item.info i {
    color: #17a2b8;
}

.summary-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.summary-item-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.summary-item-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Order note styling - smaller font and full text */
.summary-order-note {
    align-items: flex-start;
}

.summary-order-note .summary-item-value {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.summary-item.file-item {
    align-items: flex-start;
}

.summary-item.file-item i {
    color: #667eea;
    font-size: 1.5rem;
    margin-top: 0.125rem;
}

.summary-item.file-item .file-name {
    font-weight: 600;
    color: #2c3e50;
    word-break: break-word;
}

.summary-item.file-item .file-size {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
}

.summary-files-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #667eea;
}

.summary-files-count i {
    font-size: 1.25rem;
}

.summary-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
}

.summary-footer .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.summary-footer .btn-secondary {
    background: white;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.summary-footer .btn-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateX(5px);
}

.summary-footer .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
}

.summary-footer .btn-primary:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.summary-footer .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive adjustments for summary overlay */
@media (max-width: 768px) {
    .order-summary-overlay {
        padding: 1rem;
    }
    
    .summary-overlay-content {
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .summary-header {
        padding: 1.5rem;
    }
    
    .summary-title {
        font-size: 1.5rem;
    }
    
    .summary-title i {
        font-size: 1.75rem;
    }
    
    .summary-subtitle {
        font-size: 0.9rem;
    }
    
    .summary-body {
        padding: 1rem;
    }
    
    .summary-section {
        padding: 1.25rem;
    }
    
    .summary-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .summary-section-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .summary-section-title {
        font-size: 1.1rem;
    }
    
    .summary-footer {
        padding: 1.25rem 1.5rem;
        flex-direction: column-reverse;
    }
    
    .summary-footer .btn {
        width: 100%;
    }
    
    .summary-item-content {
        gap: 0.125rem;
    }
    
    /* On mobile, step 1 and 2 items can still be inline but with smaller gaps */
    #summary-step-1,
    #summary-step-2 {
        gap: 0.5rem;
    }
    
    #summary-step-1 .summary-item,
    #summary-step-2 .summary-item {
        font-size: 0.9rem;
        padding: 0.75rem 0.875rem;
    }
    
    /* Step 3 - full width on mobile */
    #summary-step-3 {
        flex-direction: column;
    }
    
    #summary-step-3 .summary-patient-name,
    #summary-step-3 .summary-patient-age {
        flex: 1 1 100%;
        width: 100%;
    }
}