.form-control.file-required {
  border-color: #f00;
  border-radius: 4px !important;
}
.form-control.file-attached {
  border-color: #ccc;
  border-radius: 4px !important;
}

.imodal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 10000;
}

.imodal.active {
  display: block;
}

.imodal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}

.imodal.active .imodal-overlay {
  opacity: 1;
}

.imodal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.95);
  max-width: 95%;
  max-height: 95%;
}

.imodal.active .imodal-content {
  transform: translate(-50%, -50%) scale(1);
}

.imodal-image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  margin-top: 10px;
}

.imodal-close-simple {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.imodal-close {
  position: absolute;
  bottom: 100%;
  right: 0;

  display: flex;
  align-items: center;
  gap: 8px;

  background: #ffffff;
  color: #000000;

  border: none;
  border-radius: 14px;

  padding: 8px 14px;

  font-size: 14px;
  font-weight: bold;

  cursor: pointer;
  z-index: 1001;
}
.imodal-close-icon {
  font-size: 18px;
}

.imodal-loader {
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-top: 4px solid transparent;
  border-radius: 50%;
  margin: 120px auto;
  animation: imodal-spin 1s linear infinite;
}

@keyframes imodal-spin {
  to { transform: rotate(360deg); }
}

body.imodal-open {
  overflow: hidden;
}

.image-expand a {
  text-decoration: underline;
  cursor: pointer;
}

.image-expand a:hover {
  opacity: 0.7;
}

.image-wrapper {
  position: relative;
  display: inline-block;
}

.image-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.image-row img {
  display: block;
}

.js-image-modal {
  cursor: pointer;
}
.enlarge-link {
  display: flex;
  align-items: flex-start;
  gap: 0px;
}
.enlarge-link img {
  display:inline-block;
}

.imodal.loading .imodal-close {
  display:none;
}
.imodal.loading .imodal-image {
  display:none;
}
.imodal.loading .imodal-loader {
  display:block;
}
