/* فونت‌های زیبا و پویا */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/peyda-font@v1.0.0/dist/font-face.css');

/* ریست و تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.zsb-booking-container {
    font-family: 'Peyda', 'Vazirmatn', Tahoma, sans-serif;
    line-height: 1.7;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #d70000 0%, #b30000 100%);
    min-height: 100vh;
    padding: 15px;
    position: relative;
    overflow-x: hidden;
}

/* افکت شیشه‌ای مدرن با تم قرمز */
.zsb-glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(215, 0, 0, 0.15);
}

/* هدر زیبا و مرکزی با لوگو */
.zsb-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(215, 0, 0, 0.15);
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid #d70000;
}

.zsb-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.zsb-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.zsb-logo-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #d70000, #b30000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(215, 0, 0, 0.3);
    border: 3px solid white;
    padding: 10px;
}

.zsb-logo-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.zsb-logo-text {
    text-align: center;
}

.zsb-logo-text h1 {
    margin: 0;
    color: #d70000;
    font-size: 2.2em;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
    font-family: 'Peyda', sans-serif;
    letter-spacing: -0.5px;
}

.zsb-logo-text p {
    margin: 12px 0 0 0;
    color: #666;
    font-size: 1.2em;
    font-weight: 500;
    font-family: 'Peyda', sans-serif;
}

/* بدنه اصلی با طراحی موبایل فرست */
.zsb-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

@media (min-width: 1024px) {
    .zsb-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* بخش‌های شیشه‌ای */
.zsb-calendar-section,
.zsb-form-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(215, 0, 0, 0.15);
    padding: 25px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #d70000;
}

/* عناوین زیبا با تم قرمز */
.zsb-section-title {
    background: linear-gradient(135deg, #d70000, #b30000);
    color: white;
    padding: 18px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(215, 0, 0, 0.3);
    border: 2px solid white;
    font-family: 'Peyda', sans-serif;
    letter-spacing: -0.3px;
}

/* استایل پلاک خودرو - کاملاً اصلاح شده */
.zsb-license-plate {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px;
    direction: ltr;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.zsb-license-plate__input {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: white;
    transition: all 0.3s ease;
    font-family: 'Peyda', 'Vazirmatn', sans-serif;
    color: #000 !important;
    font-weight: 600 !important;
}

.zsb-license-plate__input:focus {
    outline: none;
    border-color: #d70000;
    box-shadow: 0 0 0 3px rgba(215, 0, 0, 0.1);
    color: #000 !important;
}

.zsb-license-plate__input--section1,
.zsb-license-plate__input--section4 {
    width: 60px;
}

.zsb-license-plate__input--section3 {
    width: 80px;
}

.zsb-license-plate__select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 8px center;
    background-size: 16px;
    padding-left: 30px;
    width: 80px;
    color: #000 !important;
    font-weight: 600 !important;
}

.zsb-license-plate__dash {
    color: #666;
    font-weight: 600;
    font-size: 14px;
    padding: 0 8px;
    background: linear-gradient(45deg, #FC000B, #004A96);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Peyda', sans-serif;
}

/* استایل‌های جدید برای چیدمان دسکتاپ و موبایل */
@media (min-width: 1024px) {
    .zsb-form-row--desktop-2col {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        display: grid !important;
    }
    
    .zsb-form-group--25 {
        grid-column: span 1;
    }
    
    .zsb-form-group--50 {
        grid-column: span 1;
    }
    
    .zsb-form-group--75 {
        grid-column: span 1;
    }
    
    .zsb-form-group--100 {
        grid-column: 1 / -1;
    }
    
    /* تنظیمات خاص برای خط 3: شماره شاسی (75%) + کیلومتر (25%) */
    .zsb-form-row--desktop-2col .zsb-form-group--75 {
        grid-column: span 1;
    }
    
    .zsb-form-row--desktop-2col .zsb-form-group--25 {
        grid-column: span 1;
    }
}

/* برای موبایل - همه فیلدها در یک ستون */
@media (max-width: 1023px) {
    .zsb-form-row--desktop-2col {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        display: grid !important;
    }
    
    .zsb-form-group--25,
    .zsb-form-group--50,
    .zsb-form-group--75,
    .zsb-form-group--100 {
        grid-column: 1 / -1;
    }
}

/* تقویم ریسپانسیو */
.zsb-graphical-calendar {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
}

.zsb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.zsb-calendar-title {
    font-size: 1.4em;
    font-weight: 700;
    color: #d70000;
    text-align: center;
    flex: 1;
    font-family: 'Peyda', sans-serif;
}

.zsb-calendar-nav {
    background: linear-gradient(135deg, #d70000, #b30000);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    min-width: 100px;
    border: 2px solid white;
    font-family: 'Peyda', sans-serif;
}

.zsb-calendar-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(215, 0, 0, 0.4);
}

.zsb-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
    color: #d70000;
    font-size: 0.95em;
    font-family: 'Peyda', sans-serif;
}

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

.zsb-calendar-day {
    padding: 12px 6px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
    background: #f8f8f8;
    font-family: 'Peyda', sans-serif;
    color: #000 !important;
}

.zsb-calendar-day.empty {
    background: transparent;
    border: 2px solid transparent;
    cursor: default;
}

.zsb-calendar-day.today {
    background: linear-gradient(135deg, #d70000, #b30000);
    color: white !important;
    border-color: #d70000;
    font-weight: 800;
}

.zsb-calendar-day.available {
    background: rgba(215, 0, 0, 0.1);
    border-color: #d70000;
    color: #d70000 !important;
}

.zsb-calendar-day.available:hover {
    background: rgba(215, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(215, 0, 0, 0.2);
}

.zsb-calendar-day.partial {
    background: rgba(255, 165, 0, 0.1);
    border-color: #ffa500;
    color: #cc8400 !important;
}

.zsb-calendar-day.full {
    background: rgba(128, 128, 128, 0.1);
    border-color: #808080;
    color: #666 !important;
    cursor: not-allowed;
}

.zsb-calendar-day.holiday {
    background: rgba(128, 128, 128, 0.1);
    border-color: #808080;
    color: #999 !important;
    text-decoration: line-through;
    cursor: not-allowed;
}

.zsb-calendar-day.past {
    background: rgba(128, 128, 128, 0.05) !important;
    border-color: #ddd !important;
    color: #ccc !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
}

.zsb-calendar-day.selected {
    background: linear-gradient(135deg, #d70000, #b30000);
    color: white !important;
    border-color: #d70000;
    font-weight: 800;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(215, 0, 0, 0.4);
}

/* فرم زیبا و ریسپانسیو */
.zsb-booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zsb-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 768px) {
    .zsb-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.zsb-form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.zsb-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #d70000;
    justify-content: flex-start;
    text-align: right;
    font-size: 1.05em;
    font-family: 'Peyda', sans-serif;
    width: 100%;
}

.zsb-label-text {
    font-size: 1.05em;
    font-weight: 700;
}

.zsb-required {
    color: #d70000;
    font-size: 1.2em;
    font-weight: 800;
}

/* فیلدهای فرم - اصلاح شده برای جلوگیری از بیرون زدن */
.zsb-input,
.zsb-select,
.zsb-textarea {
    padding: 16px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Peyda', 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
    background: white;
    text-align: right;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #000 !important;
}

.zsb-input:focus,
.zsb-select:focus,
.zsb-textarea:focus {
    outline: none;
    border-color: #d70000;
    box-shadow: 0 0 0 3px rgba(215, 0, 0, 0.1);
    transform: translateY(-2px);
    background: white;
    color: #000 !important;
}

.zsb-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d70000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 18px center;
    background-size: 16px;
    padding-right: 18px;
    padding-left: 45px;
    color: #000 !important;
}

.zsb-textarea {
    resize: vertical;
    min-height: 120px;
    text-align: right;
    font-family: 'Peyda', 'Vazirmatn', sans-serif;
    line-height: 1.6;
    color: #000 !important;
}

.zsb-input-hint {
    font-size: 0.9em;
    color: #666;
    margin-top: 6px;
    text-align: right;
    font-family: 'Peyda', sans-serif;
}

/* اطلاعات تاریخ و زمان - اصلاح شده */
.zsb-date-info,
.zsb-time-info {
    margin-top: 8px;
    font-size: 0.9em;
    color: #333;
    padding: 10px 14px;
    background: #f8f8f8;
    border-radius: 10px;
    border-right: 3px solid #d70000;
    text-align: right;
    font-family: 'Peyda', sans-serif;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
}

/* دکمه مدرن قرمز */
.zsb-submit-section {
    margin-top: 15px;
    width: 100%;
}

.zsb-submit-btn {
    background: linear-gradient(135deg, #d70000, #b30000);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 15px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(215, 0, 0, 0.3);
    border: 2px solid white;
    font-family: 'Peyda', sans-serif;
    letter-spacing: -0.5px;
    box-sizing: border-box;
}

.zsb-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(215, 0, 0, 0.4);
    background: linear-gradient(135deg, #b30000, #990000);
}

.zsb-submit-btn:active {
    transform: translateY(-1px);
}

.zsb-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.zsb-btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.zsb-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* پیام‌ها */
.zsb-message {
    padding: 18px 22px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    margin-top: 18px;
    font-family: 'Peyda', sans-serif;
    font-size: 1.05em;
    width: 100%;
    box-sizing: border-box;
}

.zsb-message.success {
    background: rgba(0, 128, 0, 0.1);
    color: #006600;
    border: 2px solid #00cc00;
}

.zsb-message.error {
    background: rgba(215, 0, 0, 0.1);
    color: #990000;
    border: 2px solid #d70000;
}

.zsb-message.info {
    background: rgba(0, 0, 255, 0.1);
    color: #0000cc;
    border: 2px solid #0000ff;
}

/* راهنمای تقویم */
.zsb-calendar-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 25px;
    padding: 18px;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    font-family: 'Peyda', sans-serif;
}

.zsb-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    font-weight: 500;
}

.zsb-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid;
}

.zsb-legend-color.today { background: #d70000; border-color: #b30000; }
.zsb-legend-color.available { background: rgba(215, 0, 0, 0.1); border-color: #d70000; }
.zsb-legend-color.partial { background: rgba(255, 165, 0, 0.1); border-color: #ffa500; }
.zsb-legend-color.full { background: rgba(128, 128, 128, 0.1); border-color: #808080; }
.zsb-legend-color.holiday { background: rgba(128, 128, 128, 0.1); border-color: #808080; }
.zsb-legend-color.past { background: rgba(128, 128, 128, 0.05); border-color: #ddd; }

/* فوتر */
.zsb-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(215, 0, 0, 0.15);
    padding: 22px;
    text-align: center;
    border-bottom: 3px solid #d70000;
    width: 100%;
    box-sizing: border-box;
}

.zsb-footer-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    width: 100%;
}

.zsb-footer-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    justify-content: center;
    text-align: center;
    font-family: 'Peyda', sans-serif;
    font-weight: 500;
    font-size: 1.05em;
    width: 100%;
}

/* کپی رایت ظریف */
.zsb-copyright {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e0e0e0;
    color: #999;
    font-size: 0.9em;
    font-weight: 400;
    text-align: center;
    font-family: 'Peyda', sans-serif;
    width: 100%;
}

/* اسکرول بار زیبا */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d70000, #b30000);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #b30000, #990000);
}

/* انیمیشن‌های ورود */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zsb-booking-container > * {
    animation: slideInUp 0.8s ease-out;
}

.zsb-calendar-section {
    animation-delay: 0.1s;
}

.zsb-form-section {
    animation-delay: 0.2s;
}

/* انیمیشن‌های جدید */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(215, 0, 0, 0.3); }
    50% { box-shadow: 0 0 30px rgba(215, 0, 0, 0.6); }
}

.zsb-section-title {
    animation: glow 3s ease-in-out infinite;
}

.zsb-submit-btn {
    animation: float 4s ease-in-out infinite;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .zsb-booking-container {
        padding: 10px;
    }
    
    .zsb-header {
        padding: 20px 15px;
    }
    
    .zsb-logo-icon {
        width: 100px;
        height: 100px;
    }
    
    .zsb-logo-text h1 {
        font-size: 1.6em;
    }
    
    .zsb-logo-text p {
        font-size: 1em;
    }
    
    .zsb-calendar-section,
    .zsb-form-section {
        padding: 20px 15px;
    }
    
    .zsb-section-title {
        font-size: 1.15em;
        padding: 15px 18px;
    }
    
    .zsb-license-plate {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 10px;
    }
    
    .zsb-license-plate__input--section1,
    .zsb-license-plate__input--section4 {
        width: 50px;
        font-size: 14px;
        height: 45px;
        padding: 10px;
    }
    
    .zsb-license-plate__input--section3 {
        width: 65px;
        font-size: 14px;
        height: 45px;
        padding: 10px;
    }
    
    .zsb-license-plate__select {
        width: 70px;
        font-size: 14px;
        height: 45px;
        padding: 10px;
        background-position: left 6px center;
    }
    
    .zsb-license-plate__dash {
        font-size: 12px;
        padding: 0 6px;
        order: 2;
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    .zsb-calendar-day {
        padding: 10px 4px;
        font-size: 0.85em;
        min-height: 45px;
    }
    
    .zsb-input,
    .zsb-select,
    .zsb-textarea {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .zsb-submit-btn {
        padding: 16px 25px;
        font-size: 1.2em;
    }
    
    .zsb-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .zsb-calendar-legend {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* اصلاحات خاص برای موبایل */
    .zsb-form-group {
        margin-bottom: 0;
    }
    
    .zsb-select {
        padding-right: 16px;
        padding-left: 40px;
        background-position: left 16px center;
    }
}

/* افکت‌های پس‌زمینه */
.zsb-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(215, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(179, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* نوتیفیکیشن‌های شیک */
.zsb-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #d70000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 320px;
    font-family: 'Peyda', sans-serif;
    font-weight: 600;
}

.zsb-notification.show {
    transform: translateX(0);
}

/* Typeahead Dropdown */
.zsb-typeahead-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(215, 0, 0, 0.1);
    margin-top: 6px;
    font-family: 'Peyda', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.zsb-typeahead-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    font-weight: 500;
    text-align: right;
}

.zsb-typeahead-item:hover {
    background: rgba(215, 0, 0, 0.1);
}

.zsb-typeahead-item:last-child {
    border-bottom: none;
}

/* انیمیشن لرزش برای فیلدهای خطادار */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.zsb-input.error, .zsb-select.error {
    border-color: #d70000 !important;
    box-shadow: 0 0 0 3px rgba(215, 0, 0, 0.1) !important;
    animation: shake 0.5s ease-in-out;
}

/* استایل‌های خاص برای فونت Peyda */
.zsb-booking-container {
    font-feature-settings: "ss01", "ss02", "ss03";
}

.zsb-logo-text h1 {
    font-feature-settings: "ss01", "ss02", "ss03";
    text-rendering: optimizeLegibility;
}

/* بهبود نمایش در مرورگرهای مختلف */
@supports (font-variation-settings: normal) {
    .zsb-booking-container {
        font-family: 'Peyda Variable', 'Peyda', 'Vazirmatn', sans-serif;
    }
}

/* کلاس‌های کمکی برای مدیریت فضا */
.zsb-form-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.zsb-field-container {
    width: 100%;
    position: relative;
}

/* استایل برای selectهای طولانی */
.zsb-time-select {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* تضمین اینکه هیچ المانی از کادر بیرون نزند */
.zsb-booking-form * {
    max-width: 100%;
    box-sizing: border-box;
}

/* استایل مخصوص برای باکس ساعت که مشکل داشت */
#zsbTimeSelect {
    width: 100%;
    max-width: 100%;
}

#zsbTimeInfo {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* استایل فیلد شماره شاسی - بزرگتر شده */
.zsb-chassis-input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Peyda', 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
    background: white;
    text-align: right;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 50px;
    direction: ltr;
    font-family: monospace;
    letter-spacing: 1px;
    color: #000 !important;
}

.zsb-chassis-input:focus {
    outline: none;
    border-color: #d70000;
    box-shadow: 0 0 0 3px rgba(215, 0, 0, 0.1);
    transform: translateY(-2px);
    background: white;
}

.zsb-chassis-input::placeholder {
    font-family: 'Peyda', 'Vazirmatn', sans-serif;
    direction: rtl;
    letter-spacing: normal;
}

/* استایل مخصوص برای فیلدهای پلاک در موبایل */
@media (max-width: 768px) {
    .zsb-license-plate {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        padding: 8px;
    }
    
    .zsb-license-plate__input--section1,
    .zsb-license-plate__input--section4 {
        width: 45px;
        font-size: 12px;
        height: 40px;
        padding: 8px;
    }
    
    .zsb-license-plate__input--section3 {
        width: 55px;
        font-size: 12px;
        height: 40px;
        padding: 8px;
    }
    
    .zsb-license-plate__select {
        width: 60px;
        font-size: 12px;
        height: 40px;
        padding: 8px;
        background-position: left 4px center;
    }
    
    .zsb-license-plate__dash {
        font-size: 11px;
        padding: 0 4px;
        order: 2;
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    .zsb-chassis-input {
        height: 45px;
        font-size: 15px;
        padding: 12px 14px;
    }
}

/* برای دسکتاپ بزرگ */
@media (min-width: 1200px) {
    .zsb-license-plate {
        gap: 8px;
        padding: 12px;
    }
    
    .zsb-license-plate__input--section1,
    .zsb-license-plate__input--section4 {
        width: 55px;
        font-size: 14px;
    }
    
    .zsb-license-plate__input--section3 {
        width: 70px;
        font-size: 14px;
    }
    
    .zsb-license-plate__select {
        width: 75px;
        font-size: 14px;
    }
    
    .zsb-chassis-input {
        height: 52px;
        font-size: 17px;
    }
}

/* تضمین عدم بیرون زدن المان‌ها */
.zsb-booking-form * {
    max-width: 100%;
    box-sizing: border-box;
}

.zsb-form-container {
    width: 100%;
    overflow: hidden;
}

/* برای فیلدهای خاص */
#zsbTimeSelect, #zsbTimeInfo {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
}

/* استایل برای خطاهای اعتبارسنجی */
.zsb-input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.zsb-input-hint-error {
    color: #dc2626 !important;
    font-size: 0.85em !important;
    margin-top: 5px !important;
}

/* حل مشکل نمایش اعداد در فیلدهای پلاک */
.zsb-license-plate__input {
    color: #000 !important;
    font-weight: 600 !important;
    -webkit-text-fill-color: #000 !important;
    opacity: 1 !important;
}

/* برای مرورگرهای مختلف */
.zsb-license-plate__input::-webkit-input-placeholder {
    color: #999 !important;
    font-weight: normal !important;
}

.zsb-license-plate__input:-moz-placeholder {
    color: #999 !important;
    font-weight: normal !important;
}

.zsb-license-plate__input::-moz-placeholder {
    color: #999 !important;
    font-weight: normal !important;
}

.zsb-license-plate__input:-ms-input-placeholder {
    color: #999 !important;
    font-weight: normal !important;
}

/* تضمین نمایش صحیح در تمام مرورگرها */
input[type="tel"], input[type="text"], select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* بهبود نمایش focus */
.zsb-license-plate__input:focus {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
}

/* استایل‌های مربوط به نوبت‌دهی ادمین */
.zsb-admin-header {
    background: linear-gradient(135deg, #d70000, #b30000);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.admin-day { 
    padding: 10px; 
    margin: 2px; 
    border: 1px solid #ddd; 
    cursor: pointer; 
    text-align: center; 
    border-radius: 3px; 
}
/* رفع مشکل پلاک - دائمی */
.zsb-license-plate__input--section1,
.zsb-license-plate__input--section3, 
.zsb-license-plate__input--section4 {
    color: #000 !important;
    font-weight: 600 !important;
    text-align: center !important;
    direction: ltr !important;
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}
.admin-day.available { background: #d4edda; }
.admin-day.partial { background: #fff3cd; }
.admin-day.full { background: #f8d7da; }
.admin-day.selected { background: #007cba; color: white; }
.admin-calendar-header { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 15px; 
    font-weight: bold; 
}
.admin-calendar-weekdays, .admin-calendar-days { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 5px; 
}
.admin-calendar-weekdays div { 
    text-align: center; 
    font-weight: bold; 
    padding: 5px; 
}