/* Request form enhancements */

.messenger-active-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #365a7d;
  cursor: pointer;
}

.messenger-active-check input {
  width: 17px;
  height: 17px;
  accent-color: #214f81;
  flex: 0 0 auto;
}

.jalali-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.jalali-field > label {
  font-size: 12px;
  font-weight: 600;
  color: #254567;
}

.jalali-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jalali-input-wrap input {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.jalali-toggle {
  width: 45px;
  min-height: 45px;
  border-radius: 12px;
  border: 1px solid #d7e2ef;
  background: #f0f5fb;
  cursor: pointer;
}

.jalali-calendar {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 50;
  width: min(320px, 90vw);
  padding: 15px;
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(20, 45, 76, .16);
  direction: rtl;
}

.jalali-calendar[hidden] {
  display: none;
}

.jalali-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.jalali-calendar-header button,
.jalali-day {
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: #173b61;
}

.jalali-calendar-header button {
  padding: 8px 10px;
  background: #edf3fa;
}

.jalali-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  text-align: center;
}

.jalali-calendar-weekday {
  padding: 7px 0;
  font-size: 11px;
  color: #71839b;
}

.jalali-day {
  min-height: 35px;
  font-size: 12px;
}

.jalali-day:hover,
.jalali-day:focus-visible {
  background: #eaf2fb;
}

.jalali-day.is-selected {
  background: #173b61;
  color: white;
}

.jalali-day:disabled {
  opacity: .3;
  cursor: not-allowed;
}

.jalali-clear {
  margin-top: 10px;
  background: transparent;
  border: 0;
  color: #486b91;
  cursor: pointer;
  font-size: 12px;
}

.response-time-hint {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 15px;
  margin-top: 14px;
  background: #edf5fc;
  border: 1px solid #d6e8f5;
  border-right: 3px solid #b99355;
  border-radius: 12px;
  color: #25486c;
  font-size: 12px;
  line-height: 1.9;
}

.response-time-hint strong {
  color: #143656;
}

@media (max-width: 600px) {
  .jalali-calendar {
    width: min(300px, 85vw);
  }
}


/* Refined calendar trigger */

.jalali-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  min-height: 45px;
  padding: 0;
  color: #214c78;
  background: #edf4fb;
  border: 1px solid #d5e2f0;
  border-radius: 11px;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.jalali-toggle svg {
  display: block;
  width: 21px;
  height: 21px;
  pointer-events: none;
}

.jalali-toggle:hover {
  color: #ffffff;
  background: #214c78;
  border-color: #214c78;
}

.jalali-toggle:focus-visible {
  outline: 3px solid rgba(49, 95, 145, 0.3);
  outline-offset: 2px;
}

.jalali-toggle[aria-expanded="true"] {
  color: #ffffff;
  background: #214c78;
  border-color: #214c78;
}

@media (prefers-reduced-motion: reduce) {
  .jalali-toggle {
    transition: none;
  }
}
