/**
 * GMM Teacher Availability - Frontend Styles
 */

/* Booked Slot Styling */
.gmm-slot-item.gmm-slot-booked {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
    position: relative;
    opacity: 0.9;
}

.gmm-slot-item.gmm-slot-booked:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
    transform: none !important;
    cursor: not-allowed;
}

.gmm-slot-booked-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 4px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gmm-slot-student {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
    font-weight: 500;
}

.gmm-slot-booked-status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Booked slot actions - disable delete button */
.gmm-slot-item.gmm-slot-booked .gmm-slot-actions {
    justify-content: center;
}

.gmm-slot-item.gmm-slot-booked .gmm-delete-slot {
    display: none;
}

/* Visual indicator for booked slots */
.gmm-slot-item.gmm-slot-booked::before {
    content: "🔒";
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 12px;
    opacity: 0.8;
}

/* Available slot styling (ensure it's distinct) */
.gmm-slot-item:not(.gmm-slot-booked) {
    background: #E99A0D;
    border-color: #E99A0D;
    color: #fff;
}

.gmm-slot-item:not(.gmm-slot-booked):hover {
    background: #d89112;
    border-color: #d89112;
    transform: translateY(-1px);
}

/* Legend for booking status */
.gmm-booking-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.gmm-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.gmm-legend-available {
    width: 20px;
    height: 20px;
    background: #E99A0D;
    border-radius: 4px;
    border: 1px solid #d89112;
}

.gmm-legend-booked {
    width: 20px;
    height: 20px;
    background: #dc3545;
    border-radius: 4px;
    border: 1px solid #c82333;
    position: relative;
}

.gmm-legend-booked::before {
    content: "🔒";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
}

/* Responsive adjustments for booked slots */
@media (max-width: 768px) {
    .gmm-slot-booked-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .gmm-slot-student {
        font-size: 10px;
    }
    
    .gmm-slot-booked-status {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .gmm-booking-legend {
        flex-direction: column;
        gap: 10px;
    }
}

/* Enhanced booked slot with animation */
.gmm-slot-item.gmm-slot-booked {
    animation: gmm-booked-pulse 2s ease-in-out infinite;
}

@keyframes gmm-booked-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
    }
}

/* Compact booked slot display */
.gmm-slot-item.gmm-slot-booked .gmm-slot-time {
    padding: 6px 8px 4px 8px;
}

.gmm-slot-item.gmm-slot-booked .gmm-slot-range {
    font-size: 12px;
    margin-bottom: 2px;
}

/* Booked slot hover tooltip */
.gmm-slot-item.gmm-slot-booked:hover::after {
    content: attr(data-student-name);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.gmm-slot-item.gmm-slot-booked:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    margin-bottom: 1px;
}

/* Calendar Container */
.gmm-booking-calendar,
.gmm-availability-setup {
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Calendar Header */
.gmm-calendar-header,
.gmm-availability-header {
    text-align: center;
    margin-bottom: 30px;
}

.gmm-calendar-header h3,
.gmm-availability-header h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.gmm-calendar-header p,
.gmm-availability-header p {
    color: #666;
    font-size: 16px;
}

/* Student Booking Header */
.gmm-student-booking-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.gmm-student-booking-header h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.gmm-student-booking-header p {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
}

/* Onboarding Wizard */
/* Onboarding Wrapper - Modern Card Design */
.gmm-onboarding-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 48px 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.gmm-onboarding-wrapper h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.gmm-onboarding-wrapper > p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Step Indicators - Better Visual Design */
.gmm-onboarding-steps {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f3f4f6;
}

.gmm-step-indicator {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.gmm-step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background: #e5e7eb;
}

.gmm-step-indicator.is-active {
    color: #fff;
    background: linear-gradient(135deg, #ffa70b 0%, #ff8c00 100%);
    border-color: #ffa70b;
    box-shadow: 0 4px 12px rgba(255, 167, 11, 0.3);
    transform: translateY(-2px);
}

.gmm-step-indicator.is-active::after {
    background: #ffa70b;
}

.gmm-step-indicator:not(.is-active):hover {
    color: #6b7280;
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Step Title and Description */
.gmm-step-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.gmm-step-description {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

/* Form Styling */
.gmm-onboarding-form .tutor-row {
    margin-bottom: 20px;
}

.gmm-onboarding-form .tutor-form-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    display: block;
}

.gmm-onboarding-form .tutor-form-control,
.gmm-onboarding-form .tutor-form-select {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    font-size: 15px;
    padding: 12px 16px;
    box-shadow: none;
    transition: all 0.2s ease;
    width: 100%;
}

.gmm-onboarding-form .tutor-form-control:focus,
.gmm-onboarding-form .tutor-form-select:focus {
    outline: none;
    border-color: #ffa70b;
    box-shadow: 0 0 0 3px rgba(255, 167, 11, 0.1);
}

.gmm-onboarding-form textarea.tutor-form-control {
    min-height: 140px;
    resize: vertical;
}

.gmm-onboarding-form .tutor-btn-primary {
    background: linear-gradient(135deg, #ffa70b 0%, #ff8c00 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 167, 11, 0.3);
}

.gmm-onboarding-form .tutor-btn-primary:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #e67e00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 167, 11, 0.4);
}

.gmm-onboarding-form .tutor-btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

/* Video Upload Section - Enhanced Design */
.tutor-video-upload-container {
    margin-top: 8px;
}

.tutor-video-upload-area {
    border: 3px dashed #d1d5db;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tutor-video-upload-area:hover {
    border-color: #ffa70b;
    background: #fffbf5;
}

.tutor-video-upload-area.dragover {
    border-color: #ffa70b;
    background: #fff8f0;
    border-style: solid;
    transform: scale(1.02);
}

.tutor-video-upload-icon {
    font-size: 64px;
    color: #9ca3af;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.tutor-video-upload-area:hover .tutor-video-upload-icon {
    color: #ffa70b;
    transform: scale(1.1);
}

.tutor-video-upload-icon i {
    display: block;
}

.tutor-video-upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.tutor-video-upload-subtext {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px 0;
}

.tutor-video-upload-area .tutor-btn-primary {
    background: linear-gradient(135deg, #ffa70b 0%, #ff8c00 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 167, 11, 0.3);
    display: inline-block;
}

.tutor-video-upload-area .tutor-btn-primary:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #e67e00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 167, 11, 0.4);
}

.tutor-video-upload-info {
    font-size: 13px;
    color: #9ca3af;
    margin: 16px 0 0 0;
}

/* Video Preview Container */
.tutor-video-preview-container {
    margin-top: 24px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
}

.tutor-video-preview {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 400px;
    border-radius: 12px;
    background: #000;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
}

.tutor-video-actions {
    text-align: center;
}

.tutor-video-remove {
    background: #fff;
    border: 2px solid #ef4444;
    color: #ef4444;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tutor-video-remove:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Profile Photo Upload Container */
.gmm-profile-photo-upload-container {
    margin-top: 8px;
}

.gmm-profile-photo-preview {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 4px solid #e5e7eb;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 16px;
}

.gmm-profile-photo-preview:hover {
    border-color: #ffa70b;
    box-shadow: 0 4px 12px rgba(255, 167, 11, 0.3);
}

.gmm-profile-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gmm-profile-photo-preview:hover .gmm-profile-photo-overlay {
    opacity: 1;
}

.gmm-profile-photo-overlay i {
    font-size: 32px;
    color: #fff;
}

.gmm-profile-photo-actions {
    text-align: center;
}

.gmm-profile-photo-actions .tutor-btn {
    margin: 0 8px;
}

/* Video Upload Progress */
.tutor-video-upload-progress {
    margin-top: 24px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.tutor-progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.tutor-progress-value {
    height: 100%;
    background: linear-gradient(90deg, #ffa70b 0%, #ff8c00 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.tutor-progress-status {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    margin: 0;
}

.tutor-progress-status span {
    color: #ffa70b;
    font-weight: 700;
}

.gmm-onboarding-form .tutor-btn-primary {
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    background: #e99a0d;
    border-color: #e99a0d;
}

.gmm-onboarding-form .tutor-btn-primary:hover {
    background: #d89112;
    border-color: #d89112;
}

.gmm-onboarding-form .tutor-radio-select {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.gmm-onboarding-form .tutor-radio-select:hover {
    border-color: #e99a0d;
    box-shadow: 0 0 0 1px rgba(233, 154, 13, 0.18);
}

.gmm-onboarding-form .tutor-form-check-input:checked + .tutor-radio-select-content .tutor-radio-select-title {
    color: #111827;
}

@media (max-width: 768px) {
    .gmm-onboarding-wrapper {
        margin: 24px auto;
        padding: 32px 24px;
        border-radius: 16px;
    }

    .gmm-onboarding-wrapper h2 {
        font-size: 26px;
    }

    .gmm-onboarding-steps {
        flex-wrap: wrap;
        gap: 12px;
    }

    .gmm-step-indicator {
        padding: 12px 16px;
        font-size: 13px;
    }

    .gmm-step-indicator:not(:last-child)::after {
        display: none;
    }

    .tutor-video-upload-area {
        padding: 32px 24px;
    }

    .tutor-video-upload-icon {
        font-size: 48px;
    }

    .tutor-video-upload-text {
        font-size: 16px;
    }
}

/* Enhanced Upcoming Slots Section */
.gmm-upcoming-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.gmm-upcoming-item {
    background: #fff;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.gmm-upcoming-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.gmm-upcoming-item:hover::before {
    left: 100%;
}

.gmm-upcoming-item:hover {
    border-color: #ffa70b;
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
    color: #ffa70b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 167, 11, 0.2);
}

.gmm-upcoming-item:active {
    transform: translateY(-1px);
}

/* Booking Form Styles */
.gmm-booking-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
}

.gmm-booking-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.gmm-booking-form-header h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.gmm-booking-form-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Booking Details Card */
.gmm-booking-details-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.gmm-booking-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.gmm-booking-detail-item:last-child {
    border-bottom: none;
}

.gmm-detail-icon {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffa70b;
    flex-shrink: 0;
}

.gmm-detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gmm-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gmm-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* Booking Actions */
.gmm-booking-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.gmm-btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
}

.gmm-btn-secondary {
    background: #f8fafc;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.gmm-btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

/* Login Required */
.gmm-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 12px;
}

.gmm-login-icon {
    width: 60px;
    height: 60px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
}

.gmm-login-required h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
}

.gmm-login-required p {
    margin: 0 0 20px 0;
    color: #a16207;
    font-size: 14px;
}

/* Celebration Animation */
.gmm-celebration-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100000;
    overflow: hidden;
}

.gmm-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffa70b;
    animation: gmm-confetti-fall 3s linear infinite;
}

.gmm-confetti:nth-child(2n) {
    background: #ff6b35;
    animation-delay: 0.5s;
}

.gmm-confetti:nth-child(3n) {
    background: #28a745;
    animation-delay: 1s;
}

.gmm-confetti:nth-child(4n) {
    background: #dc3545;
    animation-delay: 1.5s;
}

.gmm-confetti:nth-child(5n) {
    background: #6f42c1;
    animation-delay: 2s;
}

@keyframes gmm-confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Thank You Message */
.gmm-thank-you-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffa70b 0%, #ffb84d 100%);
    color: #fff;
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    z-index: 100001;
    animation: gmm-thank-you-bounce 0.6s ease;
    max-width: 400px;
    width: 90%;
}

.gmm-thank-you-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: gmm-celebration-bounce 1s ease infinite;
}

.gmm-thank-you-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
}

.gmm-thank-you-text {
    font-size: 16px;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.gmm-thank-you-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.gmm-thank-you-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gmm-thank-you-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

@keyframes gmm-thank-you-bounce {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes gmm-celebration-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Payment Modal Styles */
.gmm-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gmm-payment-content {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.gmm-payment-header {
    text-align: center;
}

.gmm-payment-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.gmm-payment-header p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Booking Summary */
.gmm-booking-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.gmm-booking-summary h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.gmm-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.gmm-summary-item:last-child {
    border-bottom: none;
}

.gmm-summary-item.gmm-total {
    font-weight: 700;
    font-size: 18px;
    color: #ffa70b;
    border-top: 2px solid #ffa70b;
    margin-top: 8px;
    padding-top: 12px;
}

.gmm-summary-label {
    font-weight: 600;
    color: #6b7280;
}

.gmm-summary-value {
    font-weight: 600;
    color: #1f2937;
}

/* Payment Form */
.gmm-payment-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

.gmm-payment-form h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.gmm-card-element {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.gmm-card-element:focus {
    border-color: #ffa70b;
    outline: none;
}

.gmm-card-errors {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

.gmm-payment-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Enhanced Thank You Styles */
.gmm-booking-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.gmm-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
}

.gmm-zoom-details {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.gmm-zoom-details h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: #0c4a6e;
}

.gmm-zoom-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gmm-zoom-item {
    font-size: 14px;
    color: #0c4a6e;
}

.gmm-zoom-link {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
}

.gmm-zoom-link:hover {
    text-decoration: underline;
}

/* Testing Mode Styles */
.gmm-thank-you-message .gmm-thank-you-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: gmm-celebration-bounce 1s ease infinite;
}

.gmm-thank-you-message .gmm-thank-you-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
}

.gmm-thank-you-message .gmm-thank-you-text {
    font-size: 16px;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* 3-Step Booking Modal Styles */
.gmm-step-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000002; /* above any other modal */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gmm-step-content {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1000004; /* ensure it sits above the overlay */
}

/* Step Progress Bar */
.gmm-step-progress {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 30px;
}

.gmm-step-progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.gmm-step-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffa70b 0%, #ffb84d 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.gmm-step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gmm-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.gmm-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.gmm-step-item.gmm-step-completed:not(:last-child)::after {
    background: #ffa70b;
}

.gmm-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.gmm-step-item.gmm-step-active .gmm-step-number {
    background: #ffa70b;
    color: #fff;
    transform: scale(1.1);
}

.gmm-step-item.gmm-step-completed .gmm-step-number {
    background: #10b981;
    color: #fff;
}

.gmm-step-item.gmm-step-completed .gmm-step-number::before {
    content: '✓';
    font-size: 18px;
}

.gmm-step-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
}

.gmm-step-item.gmm-step-active .gmm-step-label {
    color: #ffa70b;
}

.gmm-step-item.gmm-step-completed .gmm-step-label {
    color: #10b981;
}

/* Step Content */
.gmm-step-content-body {
    padding: 30px;
}

.gmm-step-panel {
    display: none;
}

.gmm-step-panel.gmm-step-active {
    display: block;
    animation: gmm-step-fade-in 0.3s ease;
}

@keyframes gmm-step-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gmm-step-header {
    text-align: center;
    margin-bottom: 30px;
}

.gmm-step-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.gmm-step-header p {
    margin: 0;
    font-size: 16px;
    color: #6b7280;
}

/* Step Actions */
.gmm-step-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.gmm-btn-outline {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e2e8f0;
}

.gmm-btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

/* Confirmation Details */
.gmm-confirmation-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.gmm-confirmation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 16px;
}

.gmm-confirmation-item:last-child {
    border-bottom: none;
}

.gmm-confirmation-item strong {
    color: #374151;
    font-weight: 600;
}

/* Responsive Design for Steps */
@media (max-width: 768px) {
    .gmm-step-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .gmm-step-progress {
        padding: 20px;
    }
    
    .gmm-step-content-body {
        padding: 20px;
    }
    
    .gmm-step-indicators {
        flex-direction: column;
        gap: 20px;
    }
    
    .gmm-step-item:not(:last-child)::after {
        display: none;
    }
    
    .gmm-step-actions {
        flex-direction: column;
    }
    
    .gmm-step-actions .gmm-btn {
        width: 100%;
    }
}

/* Enhanced Modal Styles */
.gmm-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.gmm-booking-modal.show {
    display: flex !important;
    opacity: 1;
    animation: gmm-modal-fade-in 0.3s ease;
}

@keyframes gmm-modal-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gmm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: gmm-overlay-fade-in 0.3s ease;
  
}

@keyframes gmm-overlay-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gmm-modal-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: scroll;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: gmm-modal-slide-up 0.4s ease;
    z-index: 1;
    margin: 20px;
}

/* Pro modal tweak */
#gmm-pro-modal .gmm-modal-content { max-width: 520px; }
#gmm-pro-modal #gmm-pro-card { margin-top: 10px; }
#gmm-pro-modal .StripeElement {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#gmm-pro-modal .StripeElement--focus {
    border-color: #ffa70b;
    box-shadow: 0 0 0 3px rgba(255,167,11,0.15);
}
#gmm-pro-modal .StripeElement--invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

@keyframes gmm-modal-slide-up {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.gmm-modal-header {
    background: linear-gradient(135deg, #ffa70b 0%, #ffb84d 100%);
    color: #fff;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.gmm-teacher-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gmm-teacher-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gmm-teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gmm-teacher-details h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.gmm-teacher-title {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    min-height: 20px;
}

.gmm-teacher-title:empty::after {
    content: 'Loading...';
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.gmm-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.gmm-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gmm-modal-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.gmm-modal-close:active {
    transform: scale(0.95);
}

.gmm-modal-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    pointer-events: none;
    display: none; /* Hide SVG by default, use CSS ::before instead */
}

.gmm-close-text {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    pointer-events: none;
    display: none;
}

/* Modal Body */
.gmm-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Section Headers */
.gmm-section-header {
    margin-bottom: 20px;
}

.gmm-section-header h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.gmm-section-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

/* Loading Container */
.gmm-loading-container {
    text-align: center;
    padding: 40px 20px;
}

.gmm-skeleton-loader {
    margin-bottom: 20px;
}

.gmm-skeleton-header {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: gmm-skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 16px;
}

.gmm-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.gmm-skeleton-item {
    height: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: gmm-skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes gmm-skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gmm-loading-text {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

/* No Availability State */
.gmm-no-availability {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.gmm-no-availability p {
    font-size: 16px;
    margin: 0;
}

/* Error State */
.gmm-error-state {
    text-align: center;
    padding: 40px 20px;
    color: #dc2626;
}

.gmm-error-state p {
    font-size: 16px;
    margin: 0;
}

/* View Availability Button */
.gmm-open-booking-modal {
    background: #ffa70b;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.gmm-open-booking-modal:hover {
    background: #e6940a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 167, 11, 0.3);
}

/* Calendar Container */
.gmm-calendar-container {
    margin-bottom: 30px;
}

#gmm-booking-calendar,
#gmm-availability-calendar {
    max-width: 100%;
    height: 600px;
}

/* FullCalendar Customization */
.fc {
    font-family: inherit;
}

.fc-toolbar {
    margin-bottom: 20px;
}

.fc-toolbar-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.fc-button {
    background: #007cba;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fc-button:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.fc-button:active {
    transform: translateY(0);
}

.fc-button-primary {
    background: #007cba;
}

.fc-button-primary:hover {
    background: #005a87;
}

.fc-button-primary:not(:disabled):active {
    background: #005a87;
}

.fc-button-primary:not(:disabled):focus {
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.3);
}

/* Available slots styling */
.fc-event {
    background: #28a745;
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.fc-event::before {
    content: "📅";
    margin-right: 4px;
    font-size: 10px;
}

/* Available slots with specific styling */
.fc-event.available-slot::before {
    content: "✓";
    color: #fff;
    font-weight: bold;
}

.fc-event.booked-slot::before {
    content: "✗";
    color: #fff;
    font-weight: bold;
}

.fc-event.booked-slot {
    background: #6c757d !important;
    cursor: not-allowed;
}

.fc-event:hover {
    background: #218838;
    transform: scale(1.05);
}

.fc-event-title {
    font-weight: 500;
}

/* Booking Form */
.gmm-booking-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.gmm-booking-form h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.gmm-booking-details p {
    margin-bottom: 10px;
    color: #555;
}

.gmm-booking-details strong {
    color: #333;
    font-weight: 600;
}

/* Availability Form */
.gmm-availability-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.gmm-form-group {
    margin-bottom: 15px;
}

.gmm-form-row {
    display: flex;
    gap: 15px;
}

.gmm-form-row .gmm-form-group {
    flex: 1;
}

.gmm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.gmm-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.gmm-form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Buttons */
.gmm-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.gmm-btn-primary {
    background: #ffa70b;
    color: #fff;
}

.gmm-btn-primary:hover {
    background: #e6940a;
    transform: translateY(-1px);
}

.gmm-btn-success {
    background: #28a745;
    color: #fff;
}

.gmm-btn-success:hover {
    background: #218838;
}

.gmm-btn-danger {
    background: #dc3545;
    color: #fff;
}

.gmm-btn-danger:hover {
    background: #c82333;
}

.gmm-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Messages */
.gmm-booking-messages,
.gmm-availability-messages {
    margin-top: 20px;
}

.gmm-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
}

.gmm-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gmm-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.gmm-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Login Required */
.gmm-login-required {
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
}

.gmm-login-required a {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
}

.gmm-login-required a:hover {
    text-decoration: underline;
}

/* Bookings Table */
.gmm-teacher-bookings,
.gmm-student-bookings {
   max-width: 1250px;
    margin: 20px auto;
    /* margin: 20px 0; */
    border-radius:7px;
    padding: 60px 20px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.gmm-bookings-table {
    overflow-x: auto;
    margin-top: 20px;
}

.gmm-bookings-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gmm-bookings-table th,
.gmm-bookings-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.gmm-bookings-table th {
    background: #fff7f3; /* light brand tint */
    border-bottom: 1px solid #ffe5d6;
    font-weight: 700;
    color: #3a3a3a;
}

.gmm-bookings-table tr:hover {
    background: #fffaf6; /* subtle hover */
}

/* Status Badges */
.gmm-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.gmm-status-pending {
    background: #fff7f3; /* brand pending */
    color: #ff6b35;
    border: 1px solid #ffd7c2;
}

.gmm-status-confirmed {
    background: #d4edda;
    color: #155724;
}

.gmm-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.gmm-status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

/* Loading Animation */
.gmm-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: gmm-spin 1s linear infinite;
}

@keyframes gmm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .gmm-modal-content {
        width: 98%;
        max-width: none;
        margin: 10px;
        border-radius: 16px;
    }
    
    .gmm-modal-header {
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .gmm-teacher-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .gmm-teacher-avatar {
        width: 50px;
        height: 50px;
    }
    
    .gmm-modal-body {
        padding: 20px;
    }
    
    .gmm-upcoming-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gmm-booking-actions {
        flex-direction: column;
    }
    
    .gmm-btn-large {
        width: 100%;
        min-width: auto;
    }
    
    .gmm-booking-details-card {
        padding: 16px;
    }
    
    .gmm-booking-detail-item {
        padding: 10px 0;
    }
    
    .gmm-detail-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .gmm-modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .gmm-modal-header {
        padding: 16px;
    }
    
    .gmm-modal-body {
        padding: 16px;
    }
    
    .gmm-upcoming-item {
        padding: 16px;
        font-size: 14px;
    }
    
    .gmm-booking-form {
        padding: 16px;
    }
    
    .gmm-booking-details-card {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .gmm-calendar-header h3,
    .gmm-availability-header h3 {
        font-size: 20px;
    }
    
    .gmm-calendar-header p,
    .gmm-availability-header p {
        font-size: 14px;
    }
    
    #gmm-booking-calendar,
    #gmm-availability-calendar {
        height: 350px;
    }
    
    .gmm-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .gmm-form-group input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Hidden Enroll Button State */
.gmm-enroll-hidden {
    display: none !important;
}

/* Disabled Enroll Button State (fallback) */
.gmm-enroll-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(50%);
    position: relative;
}

/* Warning message for disabled button clicks */
.gmm-enroll-warning {
    animation: gmm-slide-down 0.3s ease;
}

@keyframes gmm-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tutor LMS Integration */
.gmm-tutor-profile-booking-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.gmm-tutor-profile-booking-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

/* Profile Integration */
.gmm-profile-booking-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.gmm-profile-booking-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

/* New Weekly Calendar Design - Matching the Image */
.gmm-availability-setup-new {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: #f5f5f5;
    min-height: 100vh;
}

/* Student Weekly Booking - Enhanced UI */
.gmm-student-weekly-booking .gmm-availability-container {
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.gmm-student-weekly-booking .gmm-weekly-calendar {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.gmm-student-weekly-booking .gmm-time-slots-container {
    display: block;
    padding: 0;
}

.gmm-student-weekly-booking .gmm-time-label { display: none; }

.gmm-student-weekly-booking .gmm-day-slots {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f4;
}

.gmm-student-weekly-booking .gmm-day-slots:last-child { border-bottom: none; }

.gmm-student-weekly-booking .gmm-day-header-small {
    margin: 0 0 10px 0;
    padding: 0;
    background: transparent;
    color: #111827;
    font-size: 14px;
}

.gmm-student-weekly-booking .gmm-slots-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gmm-student-weekly-booking .gmm-time-slot {
    min-height: auto;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
}

.gmm-student-weekly-booking .gmm-time-slot:hover {
    background: #fff7f3;
    border-color: #ff6b35;
    color: #ff6b35;
}

.gmm-student-weekly-booking .gmm-time-slot.selected {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
}

.gmm-student-weekly-booking .gmm-booking-form {
    margin-top: 16px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
}

.gmm-student-weekly-booking .gmm-booking-details p { margin: 6px 0; }

.gmm-student-weekly-booking .gmm-btn.gmm-btn-primary {
    background: #ff6b35;
}

.gmm-student-weekly-booking .gmm-btn.gmm-btn-primary:hover {
    background: #e55a2b;
}

.gmm-availability-setup-new .gmm-availability-header {
    text-align: left;
    margin-bottom: 0;
    padding: 30px 30px 20px 30px;
    background: #f5f5f5;
    border-bottom: none;
}

.gmm-availability-setup-new .gmm-availability-header h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 0;
}

.gmm-availability-setup-new .gmm-availability-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.gmm-availability-container {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 30px 30px 30px;
    overflow: hidden;
}

/* Weekly Calendar Grid */
.gmm-weekly-calendar {
    flex: 1;
    background: #fff;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.gmm-calendar-header {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    gap: 0;
    margin-bottom: 0;
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.gmm-day-header {
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    padding: 8px 4px;
    background: transparent;
    border-radius: 0;
}

.gmm-time-slots {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    gap: 0;
    margin-bottom: 0;
    padding: 0 20px 20px 20px;
}

.gmm-time-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
    border-radius: 0;
    padding: 15px 8px;
    font-size: 12px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-right: 1px solid #e9ecef;
    margin-right: 10px;
}

.gmm-day-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 4px;
}

.gmm-time-slot {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.gmm-time-slot:hover {
    border-color: #ff6b35;
    background: #fff5f2;
    color: #ff6b35;
}

.gmm-time-slot.selected {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.gmm-time-slot.available {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.gmm-time-slot.booked {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
    cursor: not-allowed;
}

/* Compact stacked text inside each availability card */
.gmm-slot-time { padding: 10px 12px 8px 12px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.gmm-slot-date { font-size: 14px; font-weight: 800; }
.gmm-slot-day { font-size: 12px; opacity: 0.95; margin: 4px 0 2px 0; }
.gmm-slot-range { font-size: 13px; font-weight: 700; }

/* Add Time Slot Form */
.gmm-add-timeslot-form {
    width: 280px;
    background: #fff;
    border-radius: 0;
    padding: 25px;
    box-shadow: none;
    height: fit-content;
    border-left: 1px solid #e9ecef;
}

.gmm-add-timeslot-form h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
}

.gmm-add-timeslot-form .gmm-form-group {
    margin-bottom: 15px;
}

.gmm-add-timeslot-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.gmm-add-timeslot-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.gmm-add-timeslot-form select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.gmm-add-timeslot-form .gmm-btn {
    width: 100%;
    padding: 10px 16px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gmm-add-timeslot-form .gmm-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

/* Save Section */
.gmm-save-section {
    text-align: center;
    margin-top: 0;
    padding: 20px 30px;
    border-top: none;
    background: #f5f5f5;
}

.gmm-btn-save {
    background: #ffa70b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(255, 167, 11, 0.3);
}

.gmm-btn-save:hover {
    background: #e6940a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 167, 11, 0.4);
}

/* Auto-Repeat Toggle Styles */
.gmm-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    flex-shrink: 0;
}

.gmm-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.gmm-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: all 0.3s ease;
    border-radius: 32px;
    border: 2px solid #d0d0d0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.gmm-toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border: 1px solid #f0f0f0;
}

/* ON State - Much more visible */
.gmm-auto-repeat-toggle input:checked + .gmm-toggle-slider {
    background-color: #ffa70b;
    border-color: #ffa70b;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 2px rgba(255, 167, 11, 0.2);
}

.gmm-auto-repeat-toggle input:checked + .gmm-toggle-slider:before {
    transform: translateX(28px);
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Focus state */
.gmm-auto-repeat-toggle input:focus + .gmm-toggle-slider {
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 3px rgba(255, 167, 11, 0.3);
}

/* Disabled state */
.gmm-auto-repeat-toggle input:disabled + .gmm-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hover effects */
.gmm-auto-repeat-toggle:hover .gmm-toggle-slider {
    border-color: #ffa70b;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 1px rgba(255, 167, 11, 0.3);
}

.gmm-auto-repeat-toggle input:checked + .gmm-toggle-slider:hover {
    background-color: #e6940a;
    border-color: #e6940a;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 2px rgba(255, 167, 11, 0.3);
}

/* Active state for better feedback */
.gmm-auto-repeat-toggle input:active + .gmm-toggle-slider:before {
    transform: scale(0.95);
}

.gmm-auto-repeat-toggle input:checked:active + .gmm-toggle-slider:before {
    transform: translateX(28px) scale(0.95);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gmm-availability-container {
        flex-direction: column;
        margin: 0 15px 20px 15px;
    }
    
    .gmm-add-timeslot-form {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
    
    .gmm-weekly-calendar {
        overflow-x: auto;
    }
    
    .gmm-calendar-header,
    .gmm-time-slots {
        min-width: 700px;
    }
    
    .gmm-availability-setup-new .gmm-availability-header {
        padding: 20px 15px 15px 15px;
    }
}

@media (max-width: 768px) {
    .gmm-availability-setup-new {
        padding: 0;
    }
    
    .gmm-availability-setup-new .gmm-availability-header {
        padding: 15px;
    }
    
    .gmm-availability-setup-new .gmm-availability-header h2 {
        font-size: 22px;
    }
    
    .gmm-availability-container {
        margin: 0 10px 15px 10px;
    }
    
    .gmm-time-slot {
        font-size: 10px;
        padding: 6px 4px;
        min-height: 28px;
    }
    
    .gmm-time-label {
        font-size: 11px;
        padding: 12px 6px;
    }
    
    .gmm-add-timeslot-form {
        padding: 20px;
    }
    
    .gmm-save-section {
        padding: 15px;
    }
}

/* Step Modal - Availability Selection */
.gmm-availability-section {
    margin-bottom: 24px;
}

.gmm-availability-section h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.gmm-booking-confirmation {
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.gmm-booking-confirmation h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.gmm-slot-info {
    flex: 1;
}

.gmm-slot-date {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.gmm-slot-time {
    color: #6b7280;
    font-size: 14px;
}

.gmm-upcoming-item.gmm-selected {
    background: #dbeafe;
    border-color: #3b82f6;
}

.gmm-upcoming-item.gmm-selected .gmm-slot-date {
    color: #1e40af;
}

.gmm-select-slot {
    min-width: 80px;
}

.gmm-select-slot:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments for availability selection */
@media (max-width: 768px) {
    .gmm-availability-section h4,
    .gmm-booking-confirmation h4 {
        font-size: 16px;
    }
    
    .gmm-booking-confirmation {
        padding: 16px;
    }
}

/* Ensure Tutor course cards grid displays properly */
.tutor-dashboard-my-courses .tutor-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.tutor-dashboard-my-courses .tutor-course-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.tutor-dashboard-my-courses .tutor-card {
    display: flex !important;
    flex-direction: column;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Profile Video Styling - On Profile Page */
.tutor-profile-video {
    margin-top: 24px;
}

.tutor-profile-video video,
.tutor-profile-bio-section video {
    width: 100% !important;
    max-width: 600px !important;
    height: auto !important;
    max-height: 400px !important;
    border-radius: 12px !important;
    background: #000;
    margin-top: 10px !important;
    display: block;
    object-fit: contain;
}

/* Ensure video in onboarding form is also properly sized */
.tutor-video-preview-container video {
    width: 100% !important;
    max-width: 600px !important;
    height: auto !important;
    max-height: 400px !important;
    object-fit: contain;
}

/* Responsive video sizing for mobile */
@media (max-width: 768px) {
    .tutor-video-preview,
    .tutor-profile-video video,
    .tutor-video-preview-container video {
        max-width: 100% !important;
        max-height: 300px !important;
    }
}
