
        /* Modal Specific Styles */
        .appointment-modal .modal-dialog {
            max-width: 900px;
        }
        
        .appointment-modal .modal-content {
            border: none;
            border-radius: 20px;
            overflow: hidden;
        }
        
        .appointment-modal .modal-header {
            background: #0d6efd;
            color: white;
            border: none;
            padding: 25px 30px;
        }

        
        .appointment-modal .modal-header h5 {
            font-weight: 700;
            margin: 0;
        }
        
        .appointment-modal .modal-header .btn-close {
            filter: brightness(0) invert(1);
            opacity: 0.8;
        }
        
        .appointment-modal .modal-header .btn-close:hover {
            opacity: 1;
        }
        
        .appointment-modal .modal-body {
            padding: 30px;
            max-height: 70vh;
            overflow-y: auto;
        }
        
        /* Step Progress Bar in Modal */
        .step-progress {
            padding: 0 20px;
            margin-bottom: 30px;
        }

        .step-progress-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        .step-progress-bar::before {
            content: '';
            position: absolute;
            top: 25px;
            left: 60px;
            right: 60px;
            height: 3px;
            background: #e9ecef;
            z-index: 0;
        }

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

        .step-circle {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #e9ecef;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
            transition: all 0.3s ease;
            font-size: 20px;
            color: #6c757d;
        }

        .step-item.active .step-circle {
            background: #0d6efd;
            color: white;
            box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
        }

        .step-item.completed .step-circle {
            background: #28a745;
            color: white;
        }

        .step-label {
            font-size: 12px;
            font-weight: 600;
            color: #6c757d;
            text-align: center;
        }

        .step-item.active .step-label {
            color: #0d6efd;
        }

        /* User Type Buttons */
        .btn-user-type {
            padding: 25px 20px;
            border: 2px solid transparent;
            border-radius: 15px;
            background: #0d6efd;
            color: white;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            text-align: left;
            width: 100%;
            min-height: 120px;
        }

        .btn-user-type:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
            color: white;
        }

        .btn-user-type-outline {
            background: white;
            color: #0d6efd;
            border: 2px solid #0d6efd;
        }

        .btn-user-type-outline:hover {
            background: #f8f9fa;
            color: #0d6efd;
        }

        .user-type-icon {
            font-size: 36px;
            opacity: 0.9;
            flex-shrink: 0;
        }

        .user-type-text {
            flex: 1;
        }

        .user-type-text h5 {
            font-weight: 700;
            margin: 0;
            line-height: 1.3;
        }

        .user-type-text p {
            font-size: 13px;
            opacity: 0.85;
            margin: 0;
            line-height: 1.4;
        }

        /* Form Controls */
        .appointment-form .form-control,
        .appointment-form .form-select {
            border: 2px solid #e9ecef;
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .appointment-form .form-control:focus,
        .appointment-form .form-select:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
        }

        .appointment-form label {
            color: #495057;
            margin-bottom: 8px;
        }

        /* OTP Input */
        .otp-container-modern {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 20px 0;
        }

        .otp-input-modern {
            width: 50px;
            height: 50px;
            text-align: center;
            font-size: 22px;
            font-weight: 700;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .otp-input-modern:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
            outline: none;
        }

        /* Buttons */
        .appointment-form .btn-primary {
            background: #0d6efd;
            border: none;
            border-radius: 10px;
            padding: 12px 30px;
            font-weight: 600;
            transition: all 0.3s ease;
            min-height: 48px;
        }

        .appointment-form .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
        }

        .appointment-form .btn-outline-primary {
            border: 2px solid #0d6efd;
            color: #0d6efd;
            border-radius: 10px;
            padding: 12px 30px;
            font-weight: 600;
            transition: all 0.3s ease;
            min-height: 48px;
        }

        .appointment-form .btn-outline-primary:hover {
            background: #0d6efd;
            color: white;
            transform: translateY(-2px);
        }

        .appointment-form .btn-outline-secondary {
            border: 2px solid #6c757d;
            color: #6c757d;
            border-radius: 10px;
            padding: 12px 30px;
            font-weight: 600;
            transition: all 0.3s ease;
            min-height: 48px;
            background: white;
        }

        .appointment-form .btn-outline-secondary:hover {
            background: #6c757d;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
        }

        /* Ensure buttons in button rows have same height */
        .appointment-form .row .btn {
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
        }

        .appointment-form .row .btn i {
            flex-shrink: 0;
        }

        /* Disabled button state */
        .appointment-form .btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none !important;
        }

        /* Ensure spinner maintains button height */
        .appointment-form .btn .spinner-border-sm {
            width: 1rem;
            height: 1rem;
            border-width: 0.15em;
        }

        /* Messages */
        .message {
            padding: 12px 18px;
            border-radius: 10px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
        }

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

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

        .message.info {
            background: #d1ecf1;
            color: #0c5460;
            border: 1px solid #bee5eb;
        }

        /* Confirmation Card */
        .confirmation-card {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 20px;
            border-left: 4px solid #0d6efd;
            margin-bottom: 20px;
        }

        .confirmation-card div {
            padding: 8px 0;
            border-bottom: 1px solid #e9ecef;
        }

        .confirmation-card div:last-child {
            border-bottom: none;
        }

        .confirmation-card strong {
            color: #0d6efd;
            font-weight: 600;
            margin-right: 10px;
        }

        /* Success Icon */
        .success-icon {
            font-size: 70px;
            color: #28a745;
            animation: scaleIn 0.5s ease;
        }

        @keyframes scaleIn {
            from {
                transform: scale(0);
            }
            to {
                transform: scale(1);
            }
        }

        /* Hidden class */
        .step-hidden {
            display: none !important;
        }

        /* Input Group */
        .input-group-text {
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-right: none;
            border-radius: 10px 0 0 10px;
        }

        .input-group .form-control {
            border-left: none;
            border-radius: 0 10px 10px 0;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .appointment-modal .modal-dialog {
                max-width: 95%;
                margin: 10px auto;
            }

            .appointment-modal .modal-body {
                padding: 25px 20px;
            }

            .step-progress {
                padding: 0 5px;
                margin-bottom: 25px;
            }

            .step-circle {
                width: 45px;
                height: 45px;
                font-size: 18px;
            }

            .step-label {
                font-size: 11px;
            }

            /* User type buttons for tablets */
            .btn-user-type {
                padding: 20px 15px;
                min-height: 110px;
                gap: 12px;
            }

            .user-type-icon {
                font-size: 32px;
            }

            .user-type-text h5 {
                font-size: 17px;
            }

            .user-type-text p {
                font-size: 12px;
            }
        }

        @media (max-width: 768px) {
            .appointment-modal .modal-dialog {
                margin: 5px;
                max-width: calc(100% - 10px);
            }

            .appointment-modal .modal-header {
                padding: 20px 15px;
            }

            .appointment-modal .modal-header h5 {
                font-size: 18px;
            }

            .appointment-modal .modal-body {
                padding: 20px 15px;
                max-height: 65vh;
            }

            .step-progress {
                padding: 0 5px;
                margin-bottom: 20px;
            }

            .step-progress-bar::before {
                left: 35px;
                right: 35px;
            }

            .step-circle {
                width: 40px;
                height: 40px;
                font-size: 16px;
                margin-bottom: 8px;
            }

            .step-label {
                font-size: 10px;
            }

            /* User type buttons - stack vertically */
            .btn-user-type {
                flex-direction: column;
                text-align: center;
                padding: 18px 15px;
                gap: 8px;
                min-height: 100px;
            }

            .user-type-icon {
                font-size: 32px;
            }

            .user-type-text {
                width: 100%;
            }

            .user-type-text h5 {
                font-size: 15px;
            }

            .user-type-text p {
                font-size: 12px;
            }

            /* Make buttons stack on smaller tablets */
            #step-choose-type .row.g-3 {
                row-gap: 15px !important;
            }

            #step-choose-type .col-md-6 {
                flex: 0 0 100%;
                max-width: 100%;
            }

            /* Hide subtitle on medium-small screens */
            #step-choose-type .text-center.mb-3 p {
                font-size: 13px;
            }

            .otp-input-modern {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }

            /* Form styling for mobile */
            .appointment-form .form-label {
                font-size: 13px;
                margin-bottom: 6px;
            }

            .appointment-form .form-control,
            .appointment-form .form-select {
                font-size: 14px;
                padding: 10px 12px;
            }

            /* Ensure button height consistency on mobile */
            .appointment-form .row .btn {
                height: 44px;
                padding: 10px 15px;
                font-size: 14px;
            }

            .appointment-form .btn i {
                font-size: 16px;
            }

            /* Stack form fields on mobile for better spacing */
            .appointment-form .row.g-3 {
                gap: 15px !important;
            }

            /* Success icon smaller on mobile */
            .success-icon {
                font-size: 50px;
            }

            .confirmation-card {
                padding: 15px;
                font-size: 14px;
            }
        }

        @media (max-width: 576px) {
            .appointment-modal .modal-dialog {
                margin: 0;
                max-width: 100%;
                height: 100%;
            }

            .appointment-modal .modal-content {
                border-radius: 0;
                height: 100%;
                display: flex;
                flex-direction: column;
            }

            .appointment-modal .modal-header {
                padding: 15px;
                border-radius: 0;
            }

            .appointment-modal .modal-header h5 {
                font-size: 16px;
            }

            .appointment-modal .modal-body {
                padding: 15px;
                max-height: none;
                flex: 1;
                overflow-y: auto;
            }

            .step-progress {
                padding: 0;
                margin-bottom: 15px;
            }

            .step-progress-bar::before {
                left: 30px;
                right: 30px;
            }

            .step-circle {
                width: 35px;
                height: 35px;
                font-size: 14px;
                margin-bottom: 6px;
            }

            .step-label {
                font-size: 9px;
                max-width: 60px;
                word-wrap: break-word;
            }

            /* User type buttons - compact for small screens */
            .btn-user-type {
                padding: 16px 12px;
                gap: 6px;
                min-height: 80px;
                flex-direction: column;
                text-align: center;
            }

            .user-type-icon {
                font-size: 28px;
            }

            .user-type-text {
                width: 100%;
            }

            .user-type-text h5 {
                font-size: 14px;
                margin-bottom: 0 !important;
            }

            /* Hide description text on small screens */
            .user-type-text p {
                display: none;
            }

            /* Full width buttons on mobile */
            #step-choose-type .col-md-6 {
                flex: 0 0 100%;
                max-width: 100%;
            }

            #step-choose-type .row {
                gap: 12px !important;
            }

            /* Compact welcome section */
            #step-choose-type .text-center.mb-3 {
                margin-bottom: 1rem !important;
            }

            #step-choose-type .text-center.mb-3 h5 {
                font-size: 17px;
                margin-bottom: 0.5rem !important;
            }

            #step-choose-type .text-center.mb-3 p {
                display: none;
            }

            /* Full width columns on small screens */
            .appointment-form .col-4,
            .appointment-form .col-md-4,
            .appointment-form .col-md-6 {
                width: 100%;
            }

            .appointment-form .form-label {
                font-size: 12px;
            }

            .appointment-form .form-control,
            .appointment-form .form-select {
                font-size: 13px;
                padding: 8px 10px;
            }

            .appointment-form .row .btn {
                height: 42px;
                padding: 8px 12px;
                font-size: 13px;
            }

            .searchable-select-dropdown {
                max-height: 200px;
            }

            .confirmation-card {
                padding: 12px;
                font-size: 13px;
            }

            .success-icon {
                font-size: 40px;
            }
        }

        /* Extra small screens optimization */
        @media (max-width: 400px) {
            .btn-user-type {
                padding: 12px 10px;
                min-height: 70px;
                gap: 6px;
            }

            .user-type-icon {
                font-size: 26px;
            }

            .user-type-text h5 {
                font-size: 13px;
            }

            .user-type-text p {
                display: none;
            }

            /* Further compact welcome section */
            #step-choose-type .text-center.mb-3 h5 {
                font-size: 16px;
            }
        }

        /* Landscape mobile optimization */
        @media (max-width: 768px) and (orientation: landscape) {
            .appointment-modal .modal-body {
                max-height: 70vh;
            }

            .step-progress {
                margin-bottom: 15px;
            }

            .step-circle {
                width: 35px;
                height: 35px;
                font-size: 14px;
            }

            .btn-user-type {
                flex-direction: row;
                padding: 12px 15px;
                gap: 10px;
                min-height: 65px;
                text-align: left;
            }

            .user-type-icon {
                font-size: 26px;
            }

            .user-type-text {
                text-align: left;
            }

            .user-type-text h5 {
                font-size: 13px;
            }

            /* Hide description text in landscape on small screens */
            .user-type-text p {
                display: none;
            }

            /* Stack buttons in landscape on very small screens */
            #step-choose-type .col-md-6 {
                flex: 0 0 48%;
                max-width: 48%;
            }

            #step-choose-type .row {
                gap: 10px !important;
            }

            /* Compact header in landscape */
            #step-choose-type .text-center.mb-3 {
                margin-bottom: 0.75rem !important;
            }

            #step-choose-type .text-center.mb-3 h5 {
                font-size: 16px;
            }

            #step-choose-type .text-center.mb-3 p {
                display: none;
            }
        }

        /* Landscape for slightly larger screens - keep side by side */
        @media (min-width: 600px) and (max-width: 768px) and (orientation: landscape) {
            #step-choose-type .col-md-6 {
                flex: 0 0 48%;
                max-width: 48%;
            }

            .btn-user-type {
                flex-direction: row;
                text-align: left;
                min-height: 80px;
            }
        }

/* Searchable Select Dropdown Styles */
.searchable-select-wrapper {
    position: relative;
}

.searchable-select-input {
    cursor: pointer;
}

.searchable-select-input:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    display: none;
    margin-top: 2px;
}

.searchable-select-dropdown.show {
    display: block;
}

.searchable-select-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

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

.searchable-select-item:hover {
    background-color: #f8f9fa;
}

.searchable-select-item.selected {
    background-color: #e7f3ff;
    color: #0d6efd;
    font-weight: 500;
}

.searchable-select-no-results {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.searchable-select-loading {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.searchable-select-input.has-value {
    font-weight: 500;
    color: #212529;
}