/* KiviCare Patient Registration Widget - Matching Appointment Design */

#kc-patient-widget {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.kc-widget-title {
    font-size: 32px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    padding: 0;
}

.kc-appointment-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    align-items: start;
}

.kc-qualification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kc-qualification-empty {
    font-size: 14px;
    color: #718096;
    font-style: italic;
    margin: 8px 0 0 0;
}

/* Left Sidebar - Step Navigation */
.kc-appointment-sidebar {
    background: linear-gradient(180deg, #7C8FDB 0%, #8FA0E5 100%);
    border-radius: 16px;
    padding: 40px 30px;
    color: #fff;
    position: sticky;
    top: 20px;
}

.kc-step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.kc-step-item.active {
    opacity: 1;
}

.kc-step-item.completed {
    opacity: 0.8;
}

.kc-step-icon {
    flex-shrink: 0;
}

.kc-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.kc-step-item.active .kc-step-num {
    background: #fff;
    color: #7C8FDB;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.kc-step-item.completed .kc-step-num {
    background: rgba(255, 255, 255, 0.5);
}

/* Hover effect for completed steps */
.kc-step-item.completed {
    cursor: pointer;
    transition: all 0.3s ease;
}

.kc-step-item.completed:hover {
    transform: translateX(5px);
}

.kc-step-item.completed:hover .kc-step-num {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.kc-step-item.completed:hover .kc-step-title {
    text-decoration: underline;
}

/* Active step - no hover */
.kc-step-item.active {
    cursor: default;
}

/* Future steps - no hover */
.kc-step-item:not(.active):not(.completed) {
    cursor: not-allowed;
    opacity: 0.6;
}

.kc-step-content {
    flex: 1;
    padding-top: 2px;
}

.kc-step-title {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    line-height: 1.3;
}

.kc-step-desc {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.kc-step-divider {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    margin: 15px 0 15px 19px;
}

/* Right Content Area */
.kc-appointment-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    min-height: 600px;
    position: relative;
}

/* Content Title */
.kc-content-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 25px 0;
}

/* Form Styles - Matching KiviCare */
.kc-step-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

.kc-step-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kc-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.kc-form-group {
    margin-bottom: 25px;
    position: relative;
}

/* Floating Label Style */
.kc-form-group label:not(.kc-checkbox-label) {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 15px;
    font-weight: 500;
    color: #718096;
    transition: all 0.3s ease;
    pointer-events: none;
    background: #fff;
    padding: 0 4px;
}

.kc-form-group label:not(.kc-checkbox-label) .required {
    color: #E53E3E;
    margin-left: 2px;
}

.kc-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px !important;
    font-size: 15px;
    color: #2D3748;
    transition: all 0.3s ease;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

/* Floating label on focus or when input has value */
.kc-input:focus + label:not(.kc-checkbox-label),
.kc-input:not(:placeholder-shown) + label:not(.kc-checkbox-label),
.kc-input.has-value + label:not(.kc-checkbox-label) {
    top: -10px;
    left: 12px;
    font-size: 12px;
    color: #6C85DF;
    font-weight: 600;
}

.kc-input:focus {
    outline: none;
    border-color: #6C85DF;
    box-shadow: 0 0 0 3px rgba(108, 133, 223, 0.1);
}

.kc-input:disabled {
    background: #F7FAFC;
    cursor: not-allowed;
}

textarea.kc-input {
    resize: vertical;
    min-height: 100px;
    padding-top: 20px;
}

select.kc-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%232D3748' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* For select dropdowns - always float the label */
select.kc-input + label:not(.kc-checkbox-label) {
    top: -10px;
    left: 12px;
    font-size: 12px;
    color: #718096;
    font-weight: 600;
}

/* Gender Radio Group */
.kc-gender-group {
    margin-bottom: 25px;
    padding: 20px;
    background: #F7FAFC;
    border-radius: 8px;
    border: 2px solid #E2E8F0;
}

.kc-gender-group > label {
    display: block;
    position: static !important;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
    color: #2D3748;
    background: transparent !important;
    padding: 0 !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

.kc-radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding-left: 4px;
}

.kc-radio-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #2D3748;
    user-select: none;
    position: static !important;
    background: #fff !important;
    padding: 12px 16px !important;
    border-radius: 8px;
    border: 2px solid #E2E8F0;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: all 0.2s ease;
    min-width: 120px;
}

.kc-radio-label:hover {
    border-color: #CBD5E0;
    background: #FAFAFA !important;
}

.kc-radio-label:has(input[type="radio"]:checked) {
    border-color: #6C85DF;
    background: #F0F4FF !important;
}

.kc-radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #CBD5E0;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background-color: #fff;
    display: inline-block !important;
}

.kc-radio-label input[type="radio"]:hover {
    border-color: #6C85DF;
}

.kc-radio-label input[type="radio"]:checked {
    border-color: #6C85DF;
    background-color: #fff;
}

.kc-radio-label input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #6C85DF;
}

.kc-radio-label span {
    font-weight: 500;
    color: #2D3748;
}

/* Consent Section */
.kc-consent-section {
    background: #F7FAFC;
    padding: 24px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 24px;
    border-left: 4px solid #805AD5;
}

.kc-consent-section h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #2D3748;
}

.kc-consent-intro {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #4A5568;
    font-weight: 600;
}

.kc-checkbox-group {
    margin-bottom: 16px !important;
    position: relative;
}

.kc-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500 !important;
    position: static !important;
    pointer-events: auto !important;
    padding: 0 !important;
    background: transparent !important;
}

.kc-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #805AD5;
    flex-shrink: 0;
}

.kc-checkbox-label span {
    color: #2D3748;
    font-size: 14px;
    line-height: 1.6;
}

/* File Upload */
.kc-upload-group {
    margin-bottom: 30px;
}

.kc-upload-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 12px;
    position: static !important;
    pointer-events: auto !important;
    background: transparent !important;
    padding: 0 !important;
}

.kc-file-upload-wrapper {
    border: 2px dashed #CBD5E0;
    border-radius: 12px;
    padding: 20px;
    background: #F7FAFC;
    transition: all 0.3s ease;
    text-align: center;
}

.kc-file-upload-wrapper:hover {
    border-color: #6C85DF;
    background: #EDF2F7;
}

.kc-file-upload-wrapper.has-files {
    border-color: #48BB78;
    background: #F0FFF4;
    border-style: solid;
}

.kc-file-input {
    display: none;
}

.kc-file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #4A5568;
    font-size: 14px;
}

.kc-file-upload-btn:hover {
    background: #6C85DF;
    border-color: #6C85DF;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 133, 223, 0.3);
}

.kc-file-upload-btn i {
    font-size: 18px;
}

/* File List - New Simple Design */
.kc-file-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #E2E8F0;
    text-align: left;
}

.kc-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    border: 1px solid #E2E8F0;
}

.kc-file-row:hover {
    background: #F7FAFC;
    border-color: #CBD5E0;
}

.kc-file-preview-thumb {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F7FAFC;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
}

.kc-file-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kc-file-preview-thumb i {
    font-size: 24px;
}

.kc-file-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kc-file-name {
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kc-file-size {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

.kc-upload-progress {
    width: 100%;
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    overflow: hidden;
}

.kc-upload-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6C85DF 0%, #48BB78 100%);
    transition: width 0.3s ease;
}

.kc-upload-status {
    font-size: 11px;
    color: #718096;
    font-weight: 600;
}

.kc-file-delete {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: #E53E3E;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
}

.kc-file-delete:hover {
    background: #FEE2E2;
    transform: scale(1.1);
}

/* File Preview Styles - Legacy (hidden) */
.kc-file-preview {
    display: none;
}

/* Buttons */
.kc-form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 40px;
}

.kc-button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kc-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.kc-button-primary {
    background: #6C85DF;
    color: #fff;
}

.kc-button-primary:hover:not(:disabled) {
    background: #5B74CE;
    box-shadow: 0 4px 12px rgba(108, 133, 223, 0.3);
}

.kc-button-secondary {
    background: #E8EAF6;
    color: #4A5568;
}

.kc-button-secondary:hover:not(:disabled) {
    background: #D1D5E8;
}

.kc-button-success {
    background: #48BB78;
    color: #fff;
}

.kc-button-success:hover:not(:disabled) {
    background: #38A169;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

/* Upload Note */
.kc-upload-note {
    font-size: 13px;
    color: #718096;
    margin: -8px 0 12px 0;
    font-style: italic;
}

/* Messages */
.kc-message {
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: slideDown 0.4s ease;
}

/* Success message positioning - appears in the content area only */
#kc-success-message {
    display: none;
    padding: 50px 40px;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0;
    width: 100%;
    max-width: 700px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Error message positioning - appears in the content area only */
#kc-error-message {
    display: none;
    padding: 50px 40px;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0;
    width: 100%;
    max-width: 700px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Make appointment-content position relative for success message */
.kc-appointment-content {
    position: relative;
    min-height: 500px;
}

/* When showing success, hide other content */
.kc-step-form.hide {
    display: none !important;
}

/* Make container position relative for loading overlay */
.kc-appointment-container {
    position: relative;
}

/* Training Section Styles */
.kc-training-section {
    margin: 24px 0 28px 0;
}

.kc-training-header {
    margin-bottom: 20px;
}

.kc-training-header label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0;
}

.kc-training-note {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #718096;
    margin-top: 4px;
    margin-bottom: 16px;
}

.kc-training-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 40px;
    margin-top: 18px;
}

.kc-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.kc-checkbox-wrapper input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #CBD5E0;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
}

.kc-checkbox-wrapper input[type="checkbox"]:hover {
    border-color: #A0AEC0;
}

.kc-checkbox-wrapper input[type="checkbox"]:checked {
    background: var(--theme-color, #4874dc);
    border-color: var(--theme-color, #4874dc);
}

.kc-checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.kc-checkbox-wrapper .kc-checkbox-label {
    cursor: pointer;
    font-size: 15px;
    color: #2D3748;
    margin: 0;
    user-select: none;
    position: static;
    transform: none;
    font-weight: 400;
    line-height: 1.4;
}

.kc-checkbox-wrapper .kc-checkbox-label:hover {
    color: var(--theme-color, #4874dc);
}

@media (max-width: 768px) {
    .kc-training-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kc-message-success {
    background: #F0FFF4;
    border: 2px solid #9AE6B4;
    color: #22543D;
}

.kc-message-success i {
    font-size: 48px;
    color: #48BB78;
    margin-bottom: 16px;
}

.kc-message-success h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: #22543D;
}

.kc-message-success p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.kc-message-error {
    background: #FFF5F5;
    border: 2px solid #FC8181;
    color: #742A2A;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.kc-info-text {
    background: #EBF8FF;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #4299E1;
    color: #2C5282;
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kc-info-text i {
    font-size: 20px;
    color: #4299E1;
}

/* Loading Overlay - covers only the widget area */
.kc-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    min-height: 600px;
}

/* Widget needs position relative for loading overlay and success message */
#kc-patient-widget {
    position: relative;
    min-height: 600px;
}

.kc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #E2E8F0;
    border-top-color: #805AD5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.kc-loading-overlay p {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #4A5568;
}

/* Qualifications Table */
.kc-qualifications-table-wrapper {
    margin: 25px 0;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
}

.kc-qualifications-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.kc-qualifications-table thead {
    background: linear-gradient(180deg, #F7FAFC 0%, #EDF2F7 100%);
}

.kc-qualifications-table th {
    padding: 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: #2D3748;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #E2E8F0;
}

.kc-qualifications-table td {
    padding: 16px;
    font-size: 15px;
    color: #4A5568;
    border-bottom: 1px solid #E2E8F0;
}

.kc-qualifications-table tbody tr:last-child td {
    border-bottom: none;
}

.kc-qualifications-table tbody tr:not(.kc-no-data):hover {
    background: #F7FAFC;
    transition: background 0.2s ease;
}

.kc-qualifications-table .kc-no-data {
    text-align: center;
    color: #A0AEC0;
    font-style: italic;
    padding: 40px 16px !important;
}

.kc-qualification-delete {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #E53E3E;
}

.kc-qualification-delete:hover {
    background: #FEE2E2;
    transform: scale(1.1);
}

.kc-qualification-delete svg {
    width: 16px;
    height: 16px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .kc-appointment-container {
        grid-template-columns: 1fr;
    }
    
    .kc-appointment-sidebar {
        position: relative;
        top: 0;
    }
    
    .kc-step-item {
        flex-direction: row;
    }
    
    .kc-step-divider {
        height: 20px;
        margin: 10px 0 10px 19px;
    }
}

@media (max-width: 768px) {
    #kc-practitioner-widget {
        padding: 0 15px;
    }
    
    .kc-widget-title {
        font-size: 24px;
    }
    
    .kc-appointment-content {
        padding: 25px 20px;
    }
    
    .kc-form-row {
        grid-template-columns: 1fr;
    }
    
    .kc-form-actions {
        flex-direction: column-reverse;
    }
    
    .kc-button {
        width: 100%;
        justify-content: center;
    }
}

/* Accessibility */
.kc-input:focus-visible,
.kc-button:focus-visible {
    outline: 2px solid #805AD5;
    outline-offset: 2px;
}

/* Signature Upload Box */
.kc-upload-box {
    border: 2px dashed #CBD5E0;
    border-radius: 12px;
    padding: 0;
    background: #F7FAFC;
    transition: all 0.3s ease;
    overflow: hidden;
}

.kc-upload-area {
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kc-upload-area:hover {
    background: #EDF2F7;
}

.kc-upload-area.kc-drag-over {
    background: #F3EDF7;
}

.kc-upload-icon {
    margin-bottom: 16px;
}

.kc-upload-icon svg {
    color: #A0AEC0;
    transition: all 0.3s ease;
}

.kc-upload-area:hover .kc-upload-icon svg {
    transform: translateY(-4px);
}

.kc-upload-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kc-upload-text strong {
    color: #2D3748;
    font-size: 16px;
}

.kc-upload-text span {
    color: #718096;
    font-size: 14px;
}

.kc-upload-text small {
    color: #A0AEC0;
    font-size: 12px;
    margin-top: 4px;
}

.kc-upload-preview {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-top: 2px solid #E2E8F0;
    gap: 16px;
    position: relative;
}

.kc-upload-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #E2E8F0;
    flex-shrink: 0;
}

.kc-upload-info {
    flex: 1;
    min-width: 0;
}

.kc-upload-filename {
    font-weight: 600;
    color: #2D3748;
    font-size: 14px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kc-upload-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kc-progress-bar {
    flex: 1;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.kc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6C85DF 0%, #48BB78 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.kc-progress-text {
    font-size: 12px;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
    color: #49274A !important;
    flex-shrink: 0;
}

.kc-upload-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FED7D7;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #E53E3E;
}

.kc-upload-remove:hover {
    background: #E53E3E;
    color: #fff;
    transform: scale(1.1);
}

.kc-upload-remove svg {
    width: 16px;
    height: 16px;
}

/* Restriction Message */
.kc-widget-restricted {
    max-width: 700px;
    margin: 60px auto;
}

.kc-restriction-message {
    background: #FFF5F5;
    border: 2px solid #FC8181;
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.kc-restriction-message i {
    font-size: 48px;
    color: #E53E3E;
    margin-bottom: 20px;
    display: block;
}

.kc-restriction-message h3 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    color: #742A2A;
}

.kc-restriction-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #742A2A;
}

/* Print Styles */
@media print {
    #kc-patient-widget {
        box-shadow: none;
    }
    
    .kc-form-actions {
        display: none;
    }
}
