/* Pro Appointment Booking – Frontend Styles */

.pab-booking-wrapper {
    max-width: 720px;
    margin: 0 auto;
    font-family: Tahoma, "Segoe UI", sans-serif;
    direction: rtl;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 24px;
    color: #1a1a2e;
}

.pab-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 8px;
}

.pab-step {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    font-size: 13px;
    background: #f0f2f5;
    border-radius: 8px;
    color: #666;
    position: relative;
}

.pab-step.active {
    background: #4f46e5;
    color: #fff;
    font-weight: 600;
}

.pab-step.done {
    background: #10b981;
    color: #fff;
}

.pab-panel-title {
    font-size: 18px;
    margin: 0 0 16px;
    font-weight: 700;
}

.pab-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.pab-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: #fafafa;
}

.pab-card:hover {
    border-color: #4f46e5;
    background: #f5f3ff;
}

.pab-card.selected {
    border-color: #4f46e5;
    background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.2);
}

.pab-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.pab-card h4 {
    margin: 0 0 6px;
    font-size: 15px;
}

.pab-card .pab-price {
    color: #4f46e5;
    font-weight: 700;
    font-size: 14px;
}

.pab-card .pab-duration {
    font-size: 12px;
    color: #6b7280;
}

.pab-calendar-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pab-cal-btn {
    padding: 8px 18px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.pab-cal-btn.active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

.pab-date-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}

.pab-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.pab-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}

.pab-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.pab-slot {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    background: #fff;
}

.pab-slot:hover {
    border-color: #4f46e5;
}

.pab-slot.selected {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

.pab-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Calendar */
.pab-calendar {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
    background: #fafafa;
}

.pab-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 600;
}

.pab-cal-nav {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #4f46e5;
    padding: 0 8px;
}

.pab-cal-weekdays,
.pab-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.pab-cal-weekdays span {
    font-size: 12px;
    color: #6b7280;
    padding: 6px 0;
}

.pab-cal-day {
    padding: 8px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.pab-cal-day:hover:not(.empty):not(.disabled) {
    background: #e0e7ff;
}

.pab-cal-day.selected {
    background: #4f46e5;
    color: #fff;
}

.pab-cal-day.today {
    border: 1px solid #4f46e5;
}

.pab-cal-day.disabled,
.pab-cal-day.empty {
    color: #d1d5db;
    cursor: default;
}

.pab-form-group {
    margin-bottom: 14px;
}

.pab-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.pab-summary {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 14px;
    margin: 16px 0;
    font-size: 14px;
}

.pab-summary strong {
    color: #166534;
}

.pab-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 12px;
}

.pab-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pab-btn-primary {
    background: #4f46e5;
    color: #fff;
}

.pab-btn-primary:hover {
    background: #4338ca;
}

.pab-btn-primary:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
}

.pab-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.pab-btn-secondary:hover {
    background: #e5e7eb;
}

.pab-message {
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    text-align: center;
}

.pab-message.success {
    background: #d1fae5;
    color: #065f46;
}

.pab-message.error {
    background: #fee2e2;
    color: #991b1b;
}

.pab-loading, .pab-hint {
    color: #6b7280;
    font-size: 14px;
}

@media (max-width: 600px) {
    .pab-date-time-row {
        grid-template-columns: 1fr;
    }
    .pab-cards {
        grid-template-columns: 1fr;
    }
    .pab-steps {
        font-size: 11px;
    }
}
