.nice-select {
  -webkit-tap-highlight-color: transparent;
  background-color: #ffffff;
  /* سفید */
  color: #000000;
  /* مشکی */
  border-radius: 5px;
  border: solid 1px #3f3877;
  box-sizing: border-box;
  clear: both;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 18px;
  font-weight: normal;
  outline: none;
  padding: 14px 35px 14px 15px;
  position: relative;
  text-align: left !important;
  transition: all 0.2s ease-in-out;
  user-select: none;
  white-space: nowrap;
  /* width: 100%; */
  /* عرض کامل */
}

.nice-select:hover,
.nice-select:focus,
.nice-select.open {
  border-color: #3f3877;
}

.nice-select:after {
  border-bottom: 2px solid #7b7c98;
  border-right: 2px solid #7b7c98;
  content: '';
  display: block;
  height: 12px;
  margin-top: -6px;
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: rotate(45deg);
  transition: all 0.15s ease-in-out;
  width: 12px;
}

.nice-select.open:after {
  transform: rotate(-135deg);
}

.nice-select.disabled {
  background-color: #f5f5f5;
  color: #999;
  pointer-events: none;
}

.nice-select.disabled:after {
  border-color: #ccc;
}

.nice-select.wide {
  width: 100%;
}

.nice-select.small {
  font-size: 14px;
  height: 40px;
  line-height: 40px;
}

.nice-select .list {
  background-color: #ffffff;
  /* سفید */
  border-radius: 5px;
  box-sizing: border-box;
  margin-top: 4px;
  opacity: 0;
  width: 100%;
  display: none;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: scale(0.75) translateY(-21px);
  transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out;
  z-index: 9999;
  margin-bottom: 4px;
}

.nice-select.open .list {
  opacity: 1;
  display: block;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.nice-select .option {
  cursor: pointer;
  font-weight: 400;
  line-height: 40px;
  list-style: none;
  min-height: 40px;
  outline: none;
  padding: 0px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  transition: all 0.2s;
  color: #000000;
  /* مشکی */
  background-color: #ffffff;
  /* سفید */
}

.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
  background-color: #f0f0f0;
}

.nice-select .option.selected {
  font-weight: bold;
  background-color: #e9e9e9;
}

.nice-select .option.disabled {
  background-color: transparent;
  color: #999;
  cursor: default;
}


/* هماهنگ‌سازی input و textarea */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="file"],
input[type="number"],
input[type="password"],
textarea {
  height: 48px;
  padding: 10px 15px;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  color: #000;
  width: 100%;
}

/* تنظیم ارتفاع .nice-select مشابه input */
.nice-select {
  height: 48px;
  line-height: 48px;
  padding: 0 35px 0 15px;
  font-size: 16px;
  background-color: #fff;
  color: #000;
  /* width: 100%; */
}

/* ارتفاع لیست دراپ‌داون */
.nice-select .option {
  line-height: 48px;
  min-height: 48px;
}

/* تنظیم فلش آیکن در وسط */
.nice-select:after {
  top: 50%;
  margin-top: -6px;
}