/**
 * استایل‌های پلاگین سیستم رزرو اتاق جلسه
 */

/* استایل‌های کلی */
.mrb-booking-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
}

.mrb-booking-form-container h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
}

/* بخش‌های فرم */
.mrb-form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid #3498db;
}

.mrb-form-section h4 {
    margin: 0 0 15px 0;
    color: #34495e;
    font-size: 18px;
    font-weight: 600;
}

/* انتخاب مدت زمان */
.mrb-duration-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.mrb-radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.mrb-radio-option:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.mrb-radio-option input[type="radio"] {
    display: none;
}

.mrb-radio-option input[type="radio"]:checked + .mrb-radio-custom {
    background: #3498db;
    border-color: #3498db;
}

.mrb-radio-option input[type="radio"]:checked ~ span:not(.mrb-radio-custom) {
    color: #3498db;
    font-weight: bold;
}

.mrb-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-left: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.mrb-radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mrb-radio-option input[type="radio"]:checked + .mrb-radio-custom::after {
    opacity: 1;
}

/* انتخاب تاریخ */
.mrb-date-picker {
    position: relative;
    display: inline-block;
    width: 100%;
}

.mrb-date-picker input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.mrb-date-picker input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.mrb-calendar-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #7f8c8d;
    pointer-events: none;
}

/* انتخاب ساعت */
.mrb-time-selection select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.mrb-time-selection select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.mrb-time-selection select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* دکمه ارسال */
.mrb-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mrb-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.mrb-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* پیام‌ها */
.mrb-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}

.mrb-message.mrb-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mrb-message.mrb-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* پیام عدم دسترسی */
.mrb-no-access {
    padding: 20px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin: 20px 0;
}

/* تقویم jQuery UI */
.ui-datepicker {
    direction: rtl;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
}

.ui-datepicker .ui-datepicker-header {
    background: #3498db;
    color: #fff;
    border: none;
}

.ui-datepicker .ui-datepicker-title {
    color: #fff;
    font-weight: bold;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    background: #2980b9;
    border: none;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    background: #1f5f8b;
}

.ui-datepicker td a {
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ui-datepicker td a:hover {
    background: #3498db;
    color: #fff;
}

.ui-datepicker .ui-datepicker-today a {
    background: #f39c12;
    color: #fff;
}

.ui-datepicker .ui-state-active {
    background: #3498db !important;
    color: #fff !important;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .mrb-booking-form-container {
        margin: 10px;
        padding: 20px;
    }
    
    .mrb-duration-options {
        flex-direction: column;
    }
    
    .mrb-radio-option {
        min-width: auto;
        width: 100%;
    }
    
    .mrb-form-section {
        padding: 15px;
    }
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mrb-form-section {
    animation: fadeIn 0.5s ease-out;
}

.mrb-message {
    animation: fadeIn 0.3s ease-out;
}

/* بهبود ظاهر در حالت RTL */
body.rtl .mrb-booking-form-container {
    direction: rtl;
}

body.rtl .mrb-calendar-icon {
    right: 15px;
    left: auto;
}

/* استایل‌های اضافی برای سازگاری با تم‌های مختلف */
.mrb-booking-form-container * {
    box-sizing: border-box;
}

.mrb-booking-form-container input,
.mrb-booking-form-container select,
.mrb-booking-form-container button {
    font-family: inherit;
}

/* بهبود کنتراست برای دسترسی بهتر */
.mrb-radio-option:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.mrb-date-picker input:focus,
.mrb-time-selection select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.mrb-submit-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}