/* Schedule Modal */
/* Ultra-thin scrollbar for modal */
.modal-container::-webkit-scrollbar,
.table-container::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.modal-container::-webkit-scrollbar-track,
.table-container::-webkit-scrollbar-track {
    background: transparent;
}

.modal-container::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb:hover,
.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.modal-dialog {
    max-width: 85%;
}

/* Firefox */
.modal-container,
.table-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    z-index: 10000;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-content h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
}

.modal-content h3 {
    margin: 20px 0 15px 0;
    color: #555;
    font-size: 18px;
}

/* Error Message */
.error-message {
    display: none;
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Form Styles */
.form-section {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #00d2ff;
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}

/* Time Slots Grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.time-slot-card {
    border: 2px solid #e0e0e0;
    padding: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: white;
}

.time-slot-card:hover:not(.disabled) {
    border-color: #00d2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.2);
}

.time-slot-card.selected {
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.1);
}

.time-slot-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9f9f9;
}

.slot-time {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.slot-date {
    color: #666;
    font-size: 0.9em;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    background: #ff4444;
    color: white;
    border-radius: 4px;
    font-size: 0.75em;
    margin-top: 8px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 15px;
}

.no-slots {
    text-align: center;
    padding: 30px;
    color: #999;
}

/* Button */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: #00d2ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover:not(:disabled) {
    background: #00b8e6;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Modal */
.success-overlay {
    position: relative;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
}

.success-card h2 {
    color: #333;
    margin-bottom: 20px;
}

.schedule-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.schedule-details p {
    margin: 8px 0;
    color: #555;
}

.confirmation-text {
    color: #666;
    margin: 15px 0 25px;
}

/* Responsive */
@media (max-width: 600px) {
    .modal-container {
        width: 95%;
    }

    .modal-content {
        padding: 20px;
    }

    .slots-grid {
        grid-template-columns: 1fr;
    }
}

/* Payment Modal Styles */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.payment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.payment-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.payment-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
}

.payment-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.payment-modal-content h2 {
    margin: 0 0 24px 0;
    color: #333;
    text-align: center;
}

.selected-plan-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.selected-plan-info h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
}

.plan-price {
    font-size: 32px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.payment-success-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.payment-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.payment-details p {
    margin: 10px 0;
    color: #555;
}

.payment-instructions {
    background: #fff9e6;
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.payment-instructions h3 {
    color: #333;
    margin-bottom: 12px;
    font-size: 18px;
}

.payment-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.payment-instructions li {
    margin: 12px 0;
    color: #555;
    line-height: 1.6;
}

.payment-instructions a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.payment-instructions a:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ultra-thin scrollbar */
.payment-modal-content::-webkit-scrollbar {
    width: 4px;
}

.payment-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.payment-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.payment-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.professional-white-card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.white-input {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.white-input:focus {
    border-color: #00d2ff;
    box-shadow: 0 0 0 0.2rem rgba(0, 210, 255, 0.1);
}

.payment-success-icon {
    width: 80px;
    height: 80px;
    background: #d1fae5;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
}