/* استایل مربوط به textarea */

.formInputStyle textarea {
 height: auto;        /* قفل ارتفاع برداشته شود */
  min-height: 120px;   /* تقریباً معادل rows=4 */
  overflow: auto;  
  min-height: 38px;
  padding: 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 1rem;
  line-height: 1.5;
  width: 100%;
  box-shadow: none;
}

/* استایل مربوط به input */

.formInputStyle {
  position: relative;
}

.formInputStyle input {
  padding-right: 5rem !important;
  padding-left: 35px !important;
  transition: all 0.3s ease-in-out;
}

/* این استایل فقط در مرورگر فایرفاکس عمل می کند */

/* کانتینر عنوان ، آیکون و توضیحات */

.formInputStyle div {
  width: 100%;
  height: 0;
  top: 0;
  color: #c2cfe1;
  transition: all 0.3s ease-in-out;
}

/* عنوان */

.formInputStyle label {
  position: absolute;
  display: inline-block;
  font-size: .75rem;
  right: 10px;
  top: 48%;
  transform: translateY(-50%);
  z-index: 0;
  padding: 0 2px;
  cursor: text;
  transition: top 0.3s ease-in-out;
  user-select: none;
  /*width: 5rem;*/
  /*white-space: nowrap;*/
  /*overflow: hidden;*/
  /*text-overflow: ellipsis;*/
  width: auto;
}

/* توضیحات */

.formInputStyle span {
  font-size: 0.7rem !important;
  margin-top: .5rem !important;
  display: inline-block !important;
}

.formInputStyle i {
  position: absolute;
  font-size: 1.1rem;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.formInputStyle input:hover {
  border-color: #c2c7d1 !important;
}

.formInputStyle select:hover {
  border-color: #c2c7d1 !important;
}

.formInputStyle textarea:hover {
  border-color: #c2c7d1 !important;
}

.formInputStyle input:hover + div {
  color: #595f6b !important;
  transition: all 0.3s ease-in-out;
}

.formInputStyle input:hover + div label {
  width: auto;
}

.formInputStyle select:hover + div {
  color: #595f6b !important;
  transition: all 0.3s ease-in-out;
}

.formInputStyle select:hover + div label {
  width: auto;
}

.formInputStyle textarea:hover + div {
  color: #595f6b !important;
  transition: all 0.3s ease-in-out;
}

.formInputStyle textarea:hover + div label {
  width: auto;
}

.formInputStyle input:focus {
  box-shadow: 0 0 10px .25rem rgba(13, 110, 253, .25) !important;
  transition: all 0.4s ease-in-out;
  padding-right: 35px !important;
  transition: all 0.3s ease-in-out;
}

.formInputStyle select:focus {
  box-shadow: 0 0 10px .25rem rgba(13, 110, 253, .25) !important;
  transition: all 0.4s ease-in-out;
  padding-right: 35px !important;
  transition: all 0.3s ease-in-out;
}

.formInputStyle textarea:focus {
  box-shadow: 0 0 10px .25rem rgba(13, 110, 253, .25) !important;
  transition: all 0.4s ease-in-out;
  padding-right: 35px !important;
  transition: all 0.3s ease-in-out;
}

.formInputStyle input:focus + div {
  color: #0d6efd;
  transition: all 0.4s ease-in-out;
}

.formInputStyle select:focus + div {
  color: #0d6efd;
  transition: all 0.4s ease-in-out;
}

.formInputStyle textarea:focus + div {
  color: #0d6efd;
  transition: all 0.4s ease-in-out;
}

/* وقتی input دارای مقدار است و فوکوس ندارد */

/* لیبل را مخفی کن */

.formInputStyle.filled label {
  opacity: 0;
  top: 48%;
  margin-top: 0;
  transform: translateY(-50%);
  font-weight: normal;
  transition: all 0.3s ease-in-out;
  width: auto;
}

/* لیبل را ثابت در بالای اینپوت نگهدار */

.formInputStyle.filledShow label {
  top: 0;
  margin-top: 8px;
  transform: translateY(-100%);
  font-weight: normal;
  transition: all 0.3s ease-in-out;
  width: auto;
  color: #0d6efd;
}

/* آیکون رو مخفی کن یا بالای اینپوت ثابت کن */

.formInputStyle.filledShow i {
  opacity: 0;
  top: 0;
  margin-top: 8px;
  transform: translateY(-100%);
}

/* ترسیم یک خط زیر آیکون جهت پوشش خط حاشیه اینپوت */

.formInputStyle.filledShow i::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 7px;
  width: 100%;
  height: 1px;
  background: linear-gradient(to top, #ffffff, #e8f0fd);
  border-radius: 5px;
  z-index: -1;
}

/* ترسیم یک خط زیر لیبل جهت پوشش خط اینپوت */

.formInputStyle.filledShow label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 100%;
  height: 1px;
  background-color: #e8f0fd;
  border-radius: 5px;
  z-index: -1;
}

/* اصلاح فاصله از راست اینپوت */

/* استایل وقتی اینپوت مقدار دارد */

/* در صورت تمای می توانید عنوان اینپوت را مخفی filled یا ثابت filledShow کنید */

.formInputStyle.filled input {
  padding-right: 10px !important;
}

.formInputStyle.filled select {
  padding-right: 10px !important;
}

.formInputStyle.filledShow input {
  padding-right: 10px !important;
}

.formInputStyle.filledShow select {
  padding-right: 10px !important;
}

.formInputStyle.filledShow textarea {
  padding-top: 10px !important;
  padding-right: 10px !important;
  padding-left: 10px !important;
}

/* پایان وقتی اینپوت مقدار دارد */

.formInputStyle input:focus + div label {
  opacity: 1;
  top: 0;
  margin-top: 8px;
  transform: translateY(-100%);
  font-weight: normal;
  width: auto;
  /*transition: all 0.3s ease-in-out;*/
}

.formInputStyle select:focus + div label {
  opacity: 1;
  top: 0;
  margin-top: 8px;
  transform: translateY(-100%);
  font-weight: normal;
  transition: all 0.3s ease-in-out;
  width: auto;
}

.formInputStyle textarea:focus + div label {
  opacity: 1;
  top: 0;
  margin-top: 8px;
  transform: translateY(-100%);
  font-weight: normal;
  transition: all 0.3s ease-in-out;
  width: auto;
}

/* ترسیم یک خط زیر لیبل جهت پوشش خط اینپوت */

.formInputStyle input:focus + div label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 100%;
  height: 1px;
  background-color: #e8f0fd;
  border-radius: 5px;
  z-index: -1;
}

.formInputStyle select:focus + div label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 100%;
  height: 1px;
  background-color: #e8f0fd;
  border-radius: 5px;
  z-index: -1;
}

.formInputStyle textarea:focus + div label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 100%;
  height: 1px;
  background-color: #e8f0fd;
  border-radius: 5px;
  z-index: -1;
}

.formInputStyle input:focus:hover {
  border-color: #86b7fe !important;
}

.formInputStyle select:focus:hover {
  border-color: #86b7fe !important;
}

.formInputStyle textarea:focus:hover {
  border-color: #86b7fe !important;
}

.formInputStyle input:focus:hover + div {
  color: #0d6efd !important;
}

.formInputStyle input:focus:hover + div label {
  width: auto;
}

.formInputStyle select:focus:hover + div {
  color: #0d6efd !important;
}

.formInputStyle textarea:focus:hover + div {
  color: #0d6efd !important;
}

.formInputStyle select:focus:hover + div label {
  width: auto;
}

.formInputStyle textarea:focus:hover + div label {
  width: auto;
}

/* پایان استایل مربوط به input */

