.rmrf-form {
  max-width: 980px;
  margin: 24px auto;
  padding: 28px;
  background: #fff;
  border: 1px solid #E7E7EE;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .04)
}

:root {
  --rmrf-purple: #6F7CF7;
  --rmrf-purple-weak: #AEB6FF;
  --rmrf-stroke: #9CAAFD;
  --rmrf-soft: #EEF1FF;
}

.rmrf-subtext {
  font-size: .85rem;
  color: #777
}

.rmrf-row {
  margin: 12px 0
}

.rmrf-row-flex {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap
}

.rmrf-bullet {
  font-size: 1.2rem;
  margin-inline-start: 6px
}

.rmrf-title {
  font-weight: 600;
  font-size: 14px;
}

.rmrf-section-title {
  margin: 0
}

.rmrf-sep {
  border: 0;
  border-top: 1px solid #000000;
  margin: 50px 0 !important;
}


.icon-check {
  width: 50px;
  height: 50px;
  margin: auto;
  background-color: #77B255;
  border-radius: 50%;
  padding: 8px;
}

/* چک باکس متن‌دار ساده */
.rmrf-check {
  display: block;
  align-items: center;
  gap: 8px;
  user-select: none
}

.rmrf-check input {
  width: 18px;
  height: 18px
}

/* سوییچ بله/خیر مطابق طرح */
.rmrf-switch {
  position: relative;
  width: 58px;
  height: 29px;
  direction: rtl
}

.rmrf-switch input {
  display: none
}

.rmrf-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 3px solid var(--rmrf-stroke);
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(111, 124, 247, .08)
}

.rmrf-switch input:checked+.rmrf-slider {
  background: linear-gradient(180deg, #C9CEFF 0%, #B9C2FF 100%);
}

.rmrf-slider:after {
  content: "";
  position: absolute;
  top: 0px;
  right: 0px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #6f77b8;
  z-index: 10;
  transition: transform .2s ease
}

.rmrf-switch input:checked+.rmrf-slider:after {
  transform: translateX(-28px);
}

.rmrf-switch-labels {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  pointer-events: none;
  font-weight: 600;
  color: var(--rmrf-purple);
}

.rmrf-switch input:checked~.rmrf-switch-labels {
  color: #3F4BE6
}

.rmrf-switch-labels b {
  font-size: 0.7rem
}

.rmrf-switch-labels i {
  font-style: normal;
  font-size: .7rem
}

/* چک‌باکس گرد با تیک سفید */
.rmrf-check-inline input {
  display: none
}

.rmrf-check-inline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  padding: 0px;
  margin-right: 5px;
  border: 2px solid var(--rmrf-stroke);
  border-radius: 8px;
  background: #fff;
}

.rmrf-check-inline input:checked+span {
  background: var(--rmrf-purple);
  border-color: var(--rmrf-stroke);
  color: #fff;
  position: relative;
}

.rmrf-check-inline input:checked+span:after {
  content: "";
  width: 9px;
  height: 5px;
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
}

/* شبکه فیلدها */
.rmrf-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.rmrf-grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px
}

/* فیلدهای ورودی عمومی */
.rmrf-field {
  display: flex;
  flex-direction: column
}

.rmrf-field label {
  font-size: .9rem;
  color: #444;
  margin-bottom: 8px
}

.rmrf-field input,
.rmrf-field select,
.rmrf-field textarea {
  background: #fff;
  border: 1px solid #CFCFDD;
  border-radius: 14px !important;
  padding: 12px 14px;
  font-size: 1rem;
  outline: 0;
}

.rmrf-field textarea {
  resize: vertical
}

.rmrf-field input:focus,
.rmrf-field select:focus,
.rmrf-field textarea:focus {
  border-color: #8aa0ff;
  box-shadow: 0 0 0 3px rgba(122, 146, 255, .2)
}

/* پلاک خودرو */
.rmrf-plates {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.rmrf-plate {
  display: flex;
  align-items: center;
  position: relative
}

.rmrf-plate .flag {
  min-width: 60px;
  font-weight: 700
}

.rmrf-plate.car {
  border: 2px solid var(--rmrf-stroke);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(111, 124, 247, .08);
  overflow: hidden
}

.rmrf-plate.car input,
.rmrf-plate.car select {
  height: 65px;
  min-width: 58px;
  border: 4px solid #f2f2f2;
  border-radius: 0px;
  text-align: center;
  font-size: 1.2rem;
  outline: 0
}

.rmrf-plate.car select {
  min-width: 88px;
  appearance: none
}

.rmrf-plate.car input:focus,
.rmrf-plate.car select:focus {
  border-color: #B9C2FF;
  box-shadow: 0 0 0 3px rgba(111, 124, 247, .18)
}

/* پلاک موتور */
.rmrf-plate.moto {
  border: 2px solid #C9CEDA;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  direction: ltr;
  width: 235px;
  height: 46px;
}

.rmrf-plate.moto .flag {
  font-weight: 700
}

.rmrf-plate.moto input {
  height: 65px;
  border: 4px solid #f2f2f2;
  border-radius: 0px;
  text-align: center;
  font-size: 1.2rem;
  min-width: 80px;
  background: #fff
}

/* تاریخ‌انتخاب‌کن */
.rmrf-field .rmrf-date {
  border: 2px solid var(--rmrf-stroke) !important;
  border-radius: 12px;
  padding-inline-start: 40px;
  position: relative
}

.persian-datepicker {
  direction: rtl
}

.pdp-day.pdp-selected,
.pdp-day:hover {
  background: var(--rmrf-purple) !important;
  color: #fff !important
}

.btnok{
  background: #45A834 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 22px !important;
  border-radius: 30px !important;
  cursor: pointer !important;
  font-size: 1.2rem !important;
  display: inline-block;
  width: 100px;
}

/* دکمه‌ها */
.rmrf-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px
}

.rmrf-btn {
  background: #7E88F8 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  font-size: 1rem !important;
}

.rmrf-btn:hover {
  opacity: .95
}

.rmrf-btn:active {
  transform: scale(.98)
}

/* پاپ‌آپ موفقیت */
.rmrf-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  display: none;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.rmrf-modal[data-show="1"] {
  display: flex
}

.rmrf-modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  max-width: 310px;
  text-align: center;
}

.rmrf-check {
  position: relative
}

.rmrf-modal-card h3 {
  margin: 8px 0 6px;
  color: #45A834;
  font-family: 'vazir';
  font-size: 20px;
}

.rmrf-modal-card p {
  color: #45A834;
  font-family: 'vazir';
  margin: 0 0 14px;
  font-size: 14px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .rmrf-grid-2 {
    grid-template-columns: 1fr
  }
}

@media (max-width:480px) {
  .rmrf-plates {
    display: block;
    align-items: center;
  }
}






/* css for datepicker */
/* رنگ کلی و فرمت هدر ماه */
.pwt-datepicker .pwt-date-view .pwt-date-header {
  font-size: 16px;
  color: #555;
  text-align: center;
  font-weight: bold;
  padding: 8px 0;
}

/* فلش‌های تغییر ماه */
.datepicker-plot-area .datepicker-navigator .pwt-btn-prev,
.datepicker-plot-area .datepicker-navigator .pwt-btn-next {
  color: #5a5ada !important;
  font-size: 20px;
  cursor: pointer;
}

.datepicker-plot-area .datepicker-navigator {
  direction: rtl !important;
}

.datepicker-plot-area .datepicker-day-view .table-days td.selected span,
.datepicker-plot-area .datepicker-year-view .year-item.selected,
.datepicker-plot-area .datepicker-month-view .month-item.selected {
  background-color: #1687e9 !important;
}

.datepicker-container.pwt-mobile-view .datepicker-plot-area .table-days td,
.datepicker-container.pwt-mobile-view .datepicker-plot-area .table-days td span {
  height: 50px;
  width: 48px;
  border-radius: 50%;
  line-height: 44px;
  font-size: 14px;
  color: #5a5ada;
}

/* روزهای هفته */
.pwt-datepicker .pwt-day-name {
  font-size: 13px;
  color: #777;
}

/* روزها عادی */
.pwt-datepicker .pwt-day {
  font-size: 14px;
  color: #444;
  cursor: pointer;
}

/* روز انتخاب شده */
.pwt-datepicker .pwt-day.pwt-selected {
  background-color: #5a5ada;
  color: white !important;
  border-radius: 50%;
}

/* هاور روی روزها */
.pwt-datepicker .pwt-day:hover {
  background-color: rgba(90, 90, 218, 0.15);
  border-radius: 50%;
}


.plate {
  display: flex;
  align-items: center;
  border: 2px solid #C9CEDA;
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
  direction: ltr;
  height: 46px;
}

.left-section {
  background: #003399;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 4px;
}

.left-section img {
  width: 14px;
  height: auto;
  margin: 6px;
}

.left-section span {
  font-size: 5px;
  font-weight: bold;
}

.number-section {
  display: flex;
  align-items: center;
  padding: 11px;
  background: linear-gradient(to bottom, #fff 0%, #eef2f7 100%);
}

.group {
  display: flex;
  gap: 8px;
}

.cell-input {
  width: 26px !important;
  height: 30px;
  border: 1px solid red !important;
  border-radius: 6px !important;
  text-align: center;
  padding: 2px !important;
  font-size: 12px;
  font-weight: bold;
  color: #000;
  outline: none;
}

.cell-input.large {
  width: 80px !important;
  direction: rtl;
  text-align: right;
  font-size: 18px;
}

/* حالت پر شده */
.cell-input.filled {
  border-color: #C9CEDA !important;
  width: 30px;
  padding: 2px;
  /* رنگ خاکستری مشابه عکس دوم */
}

.code-input-wrapper {
  position: relative;
  display: inline-block;
}

.code-input-wrapper::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 10px;
  height: 0.5px;
  background-color: #CFDBE3;
  transform: translateX(-50%);
  pointer-events: none;
}

.separator {
  border-left: 1px solid #3b6ef4;
  margin: 0 8px;
  height: 40px;
}


label.rmrf-check-inline {
  display: flex;
  align-items: center;
}

#output{
  margin-left: 29%;
}

@media (max-width: 768px) {
  #output{
    margin-left: 0;
  }

  .cell-input {
    width: 20px !important;
    height: 28px;
    border: 1px solid red !important;
    border-radius: 6px !important;
    text-align: center;
    padding: 2px !important;
    font-size: 10px;
    font-weight: bold;
    color: #000;
    outline: none;
  }

  .cell-input.large {
    width: 80px !important;
    direction: rtl;
    text-align: right;
    font-size: 10px;
  }

  .cell-input.filled {
    border-color: #C9CEDA !important;
    width: 25px;
    padding: 1px;
  }

  .rmrf-plate.moto {
    border: 2px solid #C9CEDA;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    direction: ltr;
    width: 100%;
  }

  .rmrf-form {
    max-width: 99%;
    margin: 24px auto;
    padding: 15px;
    background: #fff;
    border: 1px solid #E7E7EE;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04)
  }

  .rmrf-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px
  }
}
