/* Appointment Booking Styles */
.appointment-booking-area {
    background: #f8f9fa;
    min-height: 600px;
}

.appointment-header {
    margin-bottom: 40px;
}

.appointment-header h2 {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.appointment-header p {
    color: #6c757d;
    font-size: 16px;
}

/* Progress Steps */
.appointment-progress {
    margin-bottom: 50px;
    padding: 20px 0;
}

.progress-steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.progress-step-wrapper {
    flex: 1;
    position: relative;
    z-index: 1;
}

.progress-step {
    text-align: center;
    padding: 20px 10px;
    position: relative;
    transition: all 0.4s ease;
}

/* Step Connector Lines */
.step-connector {
    position: absolute;
    top: 35px;
    height: 4px;
    background: #e9ecef;
    z-index: 0;
    transition: all 0.4s ease;
}

.step-connector-left {
    left: 0;
    right: 50%;
    transform: translateX(-50%);
}

.step-connector-right {
    right: 0;
    left: 50%;
    transform: translateX(50%);
}

.progress-step.completed .step-connector {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.progress-step.active .step-connector-left {
    background: linear-gradient(90deg, #28a745 0%, #007bff 50%);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Step Icon Wrapper */
.step-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.4s ease;
    position: relative;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.step-icon i {
    font-size: 28px;
    transition: all 0.3s ease;
}

.step-icon-default {
    color: #6c757d;
    display: block;
}

.step-icon-check {
    color: #fff;
    display: none;
    font-size: 32px;
    font-weight: bold;
}

/* Step Number Badge */
.step-number-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #6c757d;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

/* Pending State (Default) */
.progress-step .step-icon {
    background: #e9ecef;
    border-color: #dee2e6;
}

.progress-step .step-icon .step-icon-default {
    display: block;
    color: #6c757d;
}

.progress-step .step-icon .step-icon-check {
    display: none;
}

.progress-step .step-number-badge {
    background: #fff;
    border-color: #e9ecef;
    color: #6c757d;
}

.progress-step h4 {
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.progress-step p {
    font-size: 13px;
    color: #adb5bd;
    margin: 0;
    transition: all 0.3s ease;
}

/* Active State */
.progress-step.active .step-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.progress-step.active .step-icon .step-icon-default {
    display: block;
    color: #fff;
    transform: scale(1.1);
}

.progress-step.active .step-icon .step-icon-check {
    display: none;
}

.progress-step.active .step-number-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.progress-step.active h4 {
    color: #667eea;
    font-weight: 700;
}

.progress-step.active p {
    color: #667eea;
}

/* Completed State */
.progress-step.completed .step-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
}

.progress-step.completed .step-icon .step-icon-default {
    display: none;
}

.progress-step.completed .step-icon .step-icon-check {
    display: block;
    animation: checkmarkAppear 0.4s ease;
}

@keyframes checkmarkAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.progress-step.completed .step-number-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.progress-step.completed h4 {
    color: #28a745;
    font-weight: 700;
}

.progress-step.completed p {
    color: #20c997;
}

/* Step Header */
.step-header h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.step-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    font-weight: 600;
}

/* Doctor Cards - Using same styles as doctors page */
/* Styles are inherited from style.css .doctor-item */

/* Ensure select button matches appointment button style */
.doctor-appointment-btn .select-doctor-btn {
    display: inline-block;
    color: #ffffff;
    background: linear-gradient(135deg, #0046c0 0%, #0066ff 100%);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0px 4px 15px rgba(0, 70, 192, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.doctor-appointment-btn .select-doctor-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.doctor-appointment-btn .select-doctor-btn:hover::before {
    left: 100%;
}

.doctor-appointment-btn .select-doctor-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 25px rgba(0, 70, 192, 0.4);
    color: #ffffff;
    background: linear-gradient(135deg, #0066ff 0%, #0046c0 100%);
}

.doctor-appointment-btn .select-doctor-btn:active {
    transform: translateY(0);
}

.doctor-name-link {
    cursor: pointer;
    text-decoration: none;
}

/* Selected Doctor Card */
.selected-doctor-card,
.appointment-summary-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.selected-doctor-card .card-header,
.appointment-summary-card .card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-doctor-card .card-header h4,
.appointment-summary-card .card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-edit,
.btn-close-card {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.btn-edit:hover,
.btn-close-card:hover {
    color: #007bff;
}

.selected-doctor-card .card-body {
    padding: 20px;
}

.doctor-profile {
    text-align: center;
}

.doctor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.doctor-profile h5 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.doctor-profile .specialty {
    color: #007bff;
    font-size: 14px;
    margin-bottom: 15px;
}

.doctor-contact-info p {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 5px;
}

/* Calendar */
.calendar-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.btn-nav {
    background: #f8f9fa;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-nav:hover {
    background: #e9ecef;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-weekdays div {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
    padding: 10px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.calendar-day.other-month {
    color: #ced4da;
    cursor: default;
}

.calendar-day.past {
    color: #ced4da;
    cursor: not-allowed;
    background: #f8f9fa;
}

.calendar-day.today {
    background: #e7f3ff;
    color: #007bff;
    font-weight: 600;
}

.calendar-day:not(.past):not(.other-month):hover {
    background: #e7f3ff;
}

.calendar-day.selected {
    background: #007bff;
    color: #fff;
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6c757d;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.legend-color.selected {
    background: #007bff;
}

.legend-color.available {
    background: #e9ecef;
}

.legend-color.unavailable {
    background: #ced4da;
}

.legend-color.booked {
    background: #dc3545;
}

/* Time Slots */
.time-slots-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.time-slots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.time-slots-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.time-slots-header h4 i {
    margin-right: 8px;
    color: #007bff;
}

.slots-count {
    color: #28a745;
    font-weight: 600;
    font-size: 14px;
}

.selected-date-info {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.selected-date-info p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.selected-date-info i {
    margin-right: 5px;
    color: #007bff;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    min-height: 200px;
}

.no-slots-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-slots-message i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ced4da;
}

.time-slot-btn {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #2c3e50;
}

.time-slot-btn:hover:not(.booked):not(:disabled) {
    border-color: #007bff;
    background: #e7f3ff;
    color: #007bff;
}

.time-slot-btn.selected {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.time-slot-btn.booked {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #ced4da;
    cursor: not-allowed;
}

.time-slots-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Patient Info Form */
.patient-info-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.patient-info-card .card-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.patient-info-card .card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.account-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.account-link:hover {
    text-decoration: underline;
}

.patient-info-card .card-body {
    padding: 20px;
}

/* Patient Type Toggle */
.patient-type-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.patient-type-toggle-wrapper:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.toggle-label i {
    font-size: 20px;
    color: #667eea;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 50px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: 0.4s;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 42px;
    width: 42px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(150px);
}

.toggle-label-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    pointer-events: none;
    z-index: 1;
}

.toggle-label-guest {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.toggle-label-registered {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toggle-switch input:checked ~ .toggle-label-text .toggle-label-guest {
    opacity: 0;
}

.toggle-switch input:checked ~ .toggle-label-text .toggle-label-registered {
    opacity: 1;
}

.patient-status-banner {
    margin-bottom: 20px;
}

.patient-status-banner .alert {
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.patient-status-banner .alert-info {
    background: #e7f3ff;
    border-color: #007bff;
    color: #004085;
}

.patient-status-banner .alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.patient-status-banner .alert i {
    font-size: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.patient-status-banner .banner-content {
    flex: 1;
}

.patient-status-banner .banner-content strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.patient-status-banner .banner-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Registered Patient Fields */
.registered-patient-fields {
    animation: slideDown 0.3s ease;
}

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

.guest-patient-fields {
    animation: slideDown 0.3s ease;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.form-group .input-group-text i {
    color: #667eea;
}

/* Registered Patient Option Button */
.registered-patient-option {
    margin-bottom: 20px;
}

/* Registered Patient Button */
.registered-patient-btn {
    width: 100%;
    padding: 18px 25px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Guest mode (default) - Purple gradient */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Registered mode (active) - Green gradient */
.registered-patient-btn.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.registered-patient-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.registered-patient-btn:hover::before {
    left: 100%;
}

.registered-patient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.registered-patient-btn.active:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.registered-patient-btn:active {
    transform: translateY(0);
}

.registered-patient-btn i {
    font-size: 20px;
}

.registered-patient-btn i.icofont-simple-down {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.registered-patient-btn.active i.icofont-simple-down {
    transform: rotate(180deg);
}

/* Patient Sections */
.guest-patient-section,
.registered-patient-section {
    animation: fadeInUp 0.4s ease;
}

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

.registered-patient-section {
    margin-top: 20px;
}

/* Form Help Text */
.form-help-text {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

.form-help-text i {
    font-size: 14px;
    color: #667eea;
}

/* Back to Guest Button */
#back-to-guest-btn {
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

#back-to-guest-btn:hover {
    transform: translateX(-3px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group .input-group-text {
    background: #f8f9fa;
    border-right: none;
}

.form-group .form-control {
    border-left: none;
}

.form-group .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Appointment Summary */
.appointment-summary-card .card-body {
    padding: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.summary-item i {
    color: #007bff;
    font-size: 18px;
}

.summary-item span {
    color: #2c3e50;
    font-weight: 500;
}

.appointment-summary-card .card-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.change-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.change-link:hover {
    text-decoration: underline;
}

/* Doctor Search */
.doctor-search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    margin-bottom: 30px;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.search-header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.search-header-icon i {
    font-size: 24px;
    color: #fff;
}

.search-header-content h4 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.search-header-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.search-filters {
    margin-bottom: 20px;
}

.search-input-wrapper,
.filter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper {
    position: absolute;
    left: 15px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.input-icon-wrapper i {
    color: #667eea;
    font-size: 18px;
}

.search-input-wrapper .search-input,
.filter-input-wrapper .filter-select {
    width: 100%;
    padding: 14px 50px 14px 45px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper .search-input:focus,
.filter-input-wrapper .filter-select:focus {
    outline: none;
    border-color: #fff;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-input-wrapper .search-input::placeholder {
    color: #adb5bd;
}

.filter-input-wrapper .filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #e9ecef;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.search-clear-btn:hover {
    background: #dc3545;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.search-clear-btn i {
    font-size: 12px;
    color: #6c757d;
}

.search-clear-btn:hover i {
    color: #fff;
}

.search-results-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.results-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
}

.results-badge i {
    font-size: 20px;
    color: #fff;
}

.results-text {
    font-size: 15px;
    color: #fff;
}

.results-text strong {
    font-weight: 600;
    font-size: 18px;
    margin-right: 5px;
}

/* Responsive adjustments for search section */
@media (max-width: 768px) {
    .doctor-search-section {
        padding: 20px;
    }

    .search-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .search-header-icon {
        width: 45px;
        height: 45px;
    }

    .search-header-content h4 {
        font-size: 18px;
    }

    .search-input-wrapper .search-input,
    .filter-input-wrapper .filter-select {
        padding: 12px 45px 12px 40px;
        font-size: 14px;
    }
}

/* Slot Confirmation Modal */
.slot-confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.slot-confirmation-modal.show {
    display: flex;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 10000;
    animation: slideUp 0.3s ease;
    transform-origin: center;
}

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

.modal-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    text-align: center;
    color: #fff;
}

.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.modal-icon-wrapper i {
    font-size: 40px;
    color: #fff;
}

.modal-card-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.modal-card-body {
    padding: 30px;
}

.modal-message {
    text-align: center;
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.appointment-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.detail-item i {
    font-size: 24px;
    color: #667eea;
    width: 30px;
    text-align: center;
}

.detail-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.detail-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.detail-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.modal-card-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

.btn-modal {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.btn-modal i {
    font-size: 18px;
}

.btn-modal-no {
    background: #fff;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.btn-modal-no:hover {
    background: #f8f9fa;
    border-color: #ced4da;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-modal-yes {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-modal-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-modal-yes:active {
    transform: translateY(0);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-card {
        width: 95%;
        max-width: none;
    }

    .modal-card-header {
        padding: 25px 20px;
    }

    .modal-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .modal-icon-wrapper i {
        font-size: 35px;
    }

    .modal-card-header h3 {
        font-size: 20px;
    }

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

    .modal-card-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .btn-modal {
        width: 100%;
    }

    .success-modal-card {
        width: 95%;
    }

    .success-body {
        padding: 30px 20px;
    }

    .detail-value {
        font-size: 18px;
    }

    .copy-btn {
        min-width: 40px;
        height: 40px;
        padding: 8px 12px;
    }

    .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }

    .modal-close-btn i {
        font-size: 18px;
    }
}

/* Appointment Success Modal */
.appointment-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.appointment-success-modal.show {
    display: flex;
}

.success-modal-card {
    max-width: 600px;
    width: 90%;
}

.success-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    position: relative;
}

.success-icon {
    background: rgba(255, 255, 255, 0.3);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    padding: 0;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-close-btn:active {
    transform: scale(0.95);
}

.modal-close-btn i {
    font-size: 20px;
    line-height: 1;
}

.success-icon i {
    color: #fff;
    font-size: 50px;
}

.success-body {
    padding: 40px 30px;
}

.success-message {
    text-align: center;
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-details {
    margin-bottom: 25px;
}

.success-detail-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.success-detail-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #28a745;
}

.detail-label-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.detail-label-wrapper i {
    font-size: 20px;
    color: #28a745;
}

.detail-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    flex: 1;
}

.copy-btn {
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
}

.copy-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: #20c997;
}

.copy-btn i {
    font-size: 18px;
}

.success-note {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.success-note i {
    color: #007bff;
    font-size: 20px;
    margin-top: 2px;
}

.success-note p {
    margin: 0;
    color: #004085;
    font-size: 14px;
    line-height: 1.5;
}

.success-footer {
    justify-content: center;
    background: #f8f9fa;
}

.btn-modal-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-modal-success:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .progress-steps-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .progress-step-wrapper {
        width: 100%;
        max-width: 300px;
    }

    .step-connector {
        display: none;
    }

    .progress-step {
        padding: 15px;
    }

    .step-icon {
        width: 60px;
        height: 60px;
    }

    .step-icon i {
        font-size: 24px;
    }

    .step-number-badge {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .registered-patient-btn {
        padding: 15px 20px;
        font-size: 14px;
        flex-wrap: wrap;
    }

    .registered-patient-btn i {
        font-size: 18px;
    }

    .registered-patient-btn span {
        flex: 1;
        text-align: center;
    }

    .patient-type-toggle-wrapper {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .toggle-switch {
        width: 100%;
        max-width: 250px;
    }

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(calc(100% - 46px));
    }
}

