/* Bookly Pro Frontend Styles */

.bookly-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Progress Tracker */
.bookly-progress-tracker {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.bookly-progress-tracker::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

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

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.bookly-step.active .step-number,
.bookly-step.completed .step-number {
    background: #3b82f6;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.bookly-step.active .step-label {
    color: #3b82f6;
}

/* Service Selection */
.bookly-service-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bookly-category-btn {
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.bookly-category-btn:hover,
.bookly-category-btn.active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.bookly-services-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.bookly-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    transition: all 0.3s;
}

.bookly-service-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.bookly-service-item.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.service-info h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #111827;
}

.service-description {
    margin: 0 0 10px 0;
    color: #6b7280;
    font-size: 14px;
}

.service-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
}

.service-price {
    font-weight: 600;
    color: #3b82f6;
    font-size: 16px;
}

.bookly-select-btn {
    padding: 10px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.bookly-select-btn:hover {
    background: #2563eb;
}

/* Staff Selection */
.bookly-staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.bookly-staff-item {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.bookly-staff-item:hover,
.bookly-staff-item.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.staff-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.staff-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.staff-role {
    font-size: 13px;
    color: #6b7280;
}

/* Calendar */
.bookly-calendar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

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

.calendar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    flex: 1;
    text-align: center;
    text-transform: capitalize;
}

.calendar-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    transition: color 0.3s;
}

.calendar-nav-btn:hover {
    color: #3b82f6;
}

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

.calendar-day-name {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    padding: 8px 0;
}

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

.calendar-day:hover {
    background: #eff6ff;
}

.calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: #3b82f6;
    color: white;
}

.calendar-day.today {
    border: 2px solid #3b82f6;
}

/* Time Slots */
.bookly-time-slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.bookly-time-slot {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.bookly-time-slot:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.bookly-time-slot.selected {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Express Slots */
.bookly-time-slot.express-slot {
    border-color: #f59e0b;
    background: #fffbeb;
    position: relative;
    font-weight: 600;
}

.bookly-time-slot.express-slot::before {
    content: '⚡';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f59e0b;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bookly-time-slot.express-slot:hover {
    border-color: #f59e0b;
    background: #fef3c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2);
}

.bookly-time-slot.express-slot.selected {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.bookly-time-slot.express-slot.selected::before {
    background: #d97706;
}

/* Forms */
.bookly-form-group {
    margin-bottom: 20px;
}

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

.bookly-form-group input,
.bookly-form-group textarea,
.bookly-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.bookly-form-group input:focus,
.bookly-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Email lookup status */
#email-lookup-status {
    animation: fadeIn 0.3s ease;
}

#email-lookup-status span {
    display: inline-block;
}

#customer-email-lookup {
    font-size: 16px !important; /* Prevent iOS zoom */
}

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

.bookly-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bookly-checkbox input[type="checkbox"] {
    width: auto;
}

/* Booking Summary */
.bookly-booking-summary,
.bookly-final-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.bookly-booking-summary h4 {
    margin-top: 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 18px;
    color: #3b82f6;
}

/* Payment Methods */
.bookly-payment-method {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.bookly-payment-method:hover {
    border-color: #3b82f6;
}

.bookly-payment-method input[type="radio"] {
    width: auto;
    margin-right: 12px;
}

/* Navigation Buttons */
.bookly-form-nav {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
}

.bookly-btn {
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.bookly-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.bookly-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bookly-btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.bookly-btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* Confirmation */
.bookly-success-message {
    text-align: center;
    padding: 40px 20px;
}

.bookly-success-message i {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 20px;
}

.bookly-success-message h3 {
    font-size: 24px;
    margin: 0 0 12px 0;
}

.bookly-confirmation-details {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .bookly-progress-tracker {
        flex-wrap: wrap;
    }
    
    .step-label {
        display: none;
    }
    
    .bookly-form-nav {
        flex-direction: column;
    }
    
    .bookly-btn {
        width: 100%;
    }
}

/* Calendar specific styles */
.bookly-calendar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-nav-btn {
    background: white;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
}

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

.calendar-day-name {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    background: white;
    border: 2px solid #e5e7eb;
}

.calendar-day:not(.disabled):hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: scale(1.05);
}

.calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background: #f9fafb;
}

.calendar-day.selected {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
}

.calendar-day.today {
    border: 2px solid #3b82f6;
    font-weight: 700;
}

/* Time Slots Grid */
.bookly-time-slots {
    margin-top: 20px;
}

.bookly-time-slots h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.bookly-time-slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.bookly-time-slot {
    padding: 14px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    background: white;
    font-size: 14px;
}

.bookly-time-slot:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.05);
}

.bookly-time-slot.selected {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
}

/* Staff selection grid */
.bookly-staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.bookly-staff-item {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.bookly-staff-item:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.bookly-staff-item.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.staff-photo {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
}

.staff-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-photo-initial {
    font-size: 32px;
    font-weight: 600;
    color: #3b82f6;
}

.staff-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
}

.staff-role {
    font-size: 13px;
    color: #6b7280;
}

/* Notifications */
.bookly-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    font-weight: 500;
}

.bookly-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.bookly-notification.error {
    background: #ef4444;
}

.bookly-notification.warning {
    background: #f59e0b;
}

/* Improved step instructions */
.bookly-step-instructions {
    background: #0c4a6e !important;
    border-left: 4px solid #0284c7 !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
    border-radius: 8px !important;
}

.bookly-step-instructions h3 {
    margin: 0 0 10px 0 !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

.instruction-text {
    margin: 0 !important;
    color: #e0f2fe !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
}

.instruction-text strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}
    font-weight: 700;
}

/* Staff photo styling */
.staff-photo {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0369a1;
}

.staff-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.staff-photo-initial {
    font-size: 32px;
    font-weight: 700;
    color: #0369a1;
}
