/* جعبه کلی فرم */
.pcab-booking-wrapper {
    max-width: 480px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: Tahoma, Vazirmatn, sans-serif;
    direction: rtl;
}

/* سربرگ فرم */
.pcab-booking-header {
    text-align: center;
    margin-bottom: 25px;
}

.pcab-booking-header h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #2c3e50;
}

.pcab-booking-header p {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
}

/* هر فیلد */
.pcab-field {
    margin-bottom: 18px;
}

.pcab-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #34495e;
}

/* ورودی‌ها و منوهای کشویی */
.pcab-field input,
.pcab-field select,
.pcab-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    font-family: inherit;
}

/* وقتی روی فیلد کلیک می‌شود */
.pcab-field input:focus,
.pcab-field select:focus,
.pcab-field textarea:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
    outline: none;
    background: #fff;
}

/* دکمه ثبت */
.pcab-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4a90d9, #357abd);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
}

.pcab-submit-btn:hover {
    box-shadow: 0 6px 18px rgba(74, 144, 217, 0.4);
    transform: translateY(-1px);
}

.pcab-submit-btn:active {
    transform: translateY(0);
}
/* پیام‌ها */
.pcab-msg {
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.pcab-success {
    background: #e8f8f0;
    color: #1d8348;
    border: 1px solid #abebc6;
}

.pcab-error {
    background: #fdeded;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}
/* ===== فیلد تاریخ ===== */
#pcab_date_display {
    cursor: pointer;
    background: #fff;
}

/* ===== پاپ‌آپ تقویم ===== */
#pcab_calendar_popup {
    position: absolute;
    z-index: 9999;
    width: 280px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 10px;
    direction: rtl;
    font-family: inherit;
    display: none;
}

/* ===== هدر تقویم ===== */
.pcab-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pcab-cal-title {
    font-weight: bold;
    font-size: 15px;
    color: #333;
}

.pcab-cal-nav {
    cursor: pointer;
    border: none;
    background: #f1f1f1;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 1;
    color: #333;
    transition: background 0.2s;
}

.pcab-cal-nav:hover {
    background: #e0e0e0;
}

/* ===== ردیف روزهای هفته ===== */
.pcab-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.pcab-cal-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #888;
    padding: 4px 0;
}

/* ===== شبکه روزها ===== */
.pcab-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.pcab-cal-day {
    text-align: center;
    padding: 6px 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.15s;
}

.pcab-cal-day:hover {
    background: #eaf3ff;
}

/* خانه خالی (قبل از روز اول ماه) */
.pcab-cal-day.pcab-empty {
    cursor: default;
}

/* روز امروز */
.pcab-cal-day.pcab-today {
    border: 1px solid #2271b1;
    font-weight: bold;
}

/* روز انتخاب‌شده */
.pcab-cal-day.pcab-selected {
    background: #2271b1;
    color: #fff;
}

/* روزهای غیرفعال (گذشته یا جمعه) */
.pcab-cal-day.pcab-disabled {
    color: #ccc;
    cursor: not-allowed;
    background: transparent;
}

.pcab-cal-day.pcab-disabled:hover {
    background: transparent;
}

/* ===== دکمه‌های ساعت ===== */
#pcab_time_slots_container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.pcab-slot {
    border: 1px solid #2271b1;
    background: #fff;
    color: #2271b1;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
}

.pcab-slot:hover {
    background: #eaf3ff;
}

.pcab-slot.pcab-slot-selected {
    background: #2271b1;
    color: #fff;
}

.pcab-slot.pcab-slot-booked {
    border-color: #ddd;
    background: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

/* ===== متن راهنما ===== */
.pcab-hint {
    color: #888;
    font-size: 13px;
    margin: 6px 0;
}
