﻿.message-error {
  margin: 10px 0 10px;
  color: red !important;
  font-size: 16px;
}

/* پیام «برای تکمیل فرم وارد شوید» — خارج از .inputs تم تا font-size:0 متن را مخفی نکند */
.rlfb-login-only {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin: 15px auto;
  white-space: normal !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

.rlfb-login-required {
  display: block !important;
  font-size: 16px !important;
  line-height: 1.6;
  white-space: normal !important;
  text-align: center;
  padding: 12px 15px;
  color: #ee2e56 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* المان مقصد (کلاس انتخابی) که پیام لاگین داخل آن منتقل شده باید قابل‌مشاهده و بدون font-size:0 باشد */
.rlfb-login-target {
  display: block !important;
  font-size: 16px !important;
}

.alert_box {
    position: relative;
    border: none;
    border-radius: 14px;
    margin: 0 auto;
    top: 5%;
    width: 90%;
    max-width: 900px;
    min-width: 320px;
    padding: 48px 24px 36px;
    box-sizing: border-box;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.alert_box::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.alert_box .form-box {
    width: 100%;
}

.topic-block-body > p {
  line-height: 24px;
  font-size: 16px;
}

.form-box {
  position: relative;
}

.page {
  min-height: 100px;
}

.alert_box > .close {
    position: absolute;
    left: 14px;
    top: 14px;
    right: auto;
    margin: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #555;
    border: 1px solid #e3e3e3;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
  .alert_box > .close:hover {
    background: #e4434b;
    color: #fff;
    border-color: #e4434b;
  }

.topic-block-body > p {
    white-space: pre-line;
}

.form-box {
  padding: 0 10px;
}

@media (min-width: 1001px) {
  .inputs label {
    font-size: 17px;
  }
}

.form_title {
  text-align: center !important;
}

.form-box > form > .inputs {
    width: 70%;
    float: none;
    margin: 20px auto !important;
}

    .form-box > form > .inputs > label {
        width: 250px !important;
        text-align: right;
    }

/* لودینگ هنگام ارسال فرم */
.rlfb-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.rlfb-loading-spinner {
  width: 56px;
  height: 56px;
  border: 6px solid rgba(0, 0, 0, 0.15);
  border-top-color: #4ab2f1;
  border-radius: 50%;
  animation: rlfb-spin 0.8s linear infinite;
}

@keyframes rlfb-spin {
  to { transform: rotate(360deg); }
}

.upload-button {
  display: block !important;
  width: 100% !important;
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.upload-button .qq-uploader {
  width: 100% !important;
  position: relative !important;
  height: auto !important;
  overflow: visible !important;
}

/* لیست فایل‌های آپلودشده باید در جریان عادی باشد تا روی فیلدهای پایین نیفتد */
.upload-button .qq-upload-list {
  position: static !important;
  width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

.upload-button .qq-upload-list li {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  white-space: normal !important;
  font-size: 13px !important;
  box-sizing: border-box !important;
}

.ulpoadfile-button {
  font-size: 15px !important;
}

.qq-upload-button {
  /* کلیپ‌کردن inputِ فایلِ بزرگ و نامرئی تا از کادر دکمه بیرون نزند و کلیک دکمه‌های پایین را نگیرد */
  overflow: hidden !important;
  position: relative !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.remove-download-buttonn {
  font-size: 12px !important;
}

.upload-remove-button {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.upload-download-button {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

/* جلوگیری از باریک شدن فرم در صفحات عریض - حذف محدودیت max-width تم */
.custom-attributes .page.customer-info-page,
.custom-attributes .customer-info-page .page-body {
    max-width: 100% !important;
    width: 100% !important;
}

.custom-attributes .inputs {
    position: relative;
    width: 90% !important;
    max-width: 100%;
    margin: 0 auto 15px !important;
    text-align: center;
    white-space: nowrap;
    font-size: 0;
    float: none !important;
}

.rlfb-field-error {
    display: block;
    margin-top: 5px;
    color: #e4434b;
    font-size: 13px;
    white-space: normal;
    text-align: right;
}

.rlfb-location {
    width: 100%;
    margin: 0 auto;
    white-space: normal;
}

.rlfb-location-hint {
    font-size: 13px;
    margin-bottom: 8px;
    text-align: right;
}

.rlfb-location-coords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.rlfb-location-coord {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
}

.rlfb-location-coord input {
    direction: ltr;
    text-align: left;
}

/* اصلاح ظاهر جعبه‌ی جستجوی نقشه map.ir داخل فرم (خنثی‌سازی font-size:0 و width:100% تم) */
.custom-attributes .search-box,
.custom-attributes .search-box * {
    font-size: 14px !important;
    white-space: normal;
}

.custom-attributes .search-box__item:not(.search-results) {
    display: flex;
    align-items: center;
}

.custom-attributes .search-box__item:not(.search-results) #search {
    flex: 1 1 auto;
    width: auto !important;
    height: 43px;
    border: 0;
    box-shadow: none;
}

.custom-attributes .btn-seach span {
    color: #fff;
}

/* اصلاح دراپ‌داون نتایج جستجوی نقشه داخل فرم */
.custom-attributes .search-results {
    text-align: right;
    max-width: 100%;
}

.custom-attributes .search-result-item {
    text-align: right;
    display: block;
    float: none;
}

.custom-attributes .rlfb-search-result-item {
    border-bottom: 1px solid #ccc;
    padding: 10px;
    cursor: pointer;
    text-align: right;
    display: block;
    float: none;
}

.custom-attributes .search-result-item-title,
.custom-attributes .search-result-item-address {
    display: block;
    white-space: normal;
    text-align: right;
}

.custom-attributes .search-result-item img {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    margin-left: 5px;
}

/* ریسپانسیو کردن نقشه map.ir داخل فرم (خنثی‌سازی min-width های کامپوننت Mapir که در موبایل از صفحه می‌زند بیرون) */
.rlfb-location {
    overflow: hidden;
}

.rlfb-location [id^="mapir"],
.custom-attributes [id^="mapir"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    margin-right: 0 !important;
    box-sizing: border-box;
}

.custom-attributes .search-box,
.custom-attributes .search-box__item {
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
    float: none;
}

/* ریسپانسیو نقشه داخل پاپ‌آپ فرم */
.alert_box {
    overflow-x: hidden;
    max-width: calc(100vw - 16px);
}

.alert_box .form-box,
.alert_box form,
.alert_box .rlfb-wizard-step,
.alert_box .rlfb-step-split,
.alert_box .rlfb-step-fields,
.alert_box .rlfb-step-content,
.alert_box .rlfb-location,
.alert_box .search-box {
    max-width: 100%;
    box-sizing: border-box;
}

.alert_box .rlfb-location {
    width: 100%;
    overflow: hidden;
}

.alert_box .rlfb-location [id^="mapir"],
.alert_box [id^="mapir"],
.alert_box .rlfb-location .mapp-container,
.alert_box .rlfb-location .leaflet-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

.alert_box .search-box,
.alert_box .search-box__item {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    float: none !important;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .alert_box {
        width: 96% !important;
        min-width: 0 !important;
        padding: 44px 10px 20px;
    }

    .alert_box .form-box {
        padding: 0 4px;
    }

    .alert_box .form-box > form > .inputs {
        width: 100% !important;
    }

    .alert_box .rlfb-step-fields,
    .alert_box .rlfb-step-content {
        min-width: 0 !important;
        flex: 1 1 100%;
        width: 100%;
    }
}

/* تقویم شمسی باید روی نقشه map.ir نمایش داده شود (نقشه z-index بالایی دارد) */
.datepicker-plot-area {
    z-index: 100000 !important;
}