.thieffry-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.thieffry-form {
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}

.thieffry-form.modal {
  max-width: 80%;
  margin: 10% auto;
  position: relative;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.thieffry-form-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: move;
  font-size: 1.5rem;
}

.thieffry-form-header>div {
  padding: 0.5rem;
}

.thieffry-form-title {
  font-weight: bold;
  flex: 1;
}

.thieffry-form-close {
  cursor: pointer;
  text-align: center;
}

.thieffry-form-close svg {
  display: block;
  margin: auto;
}

.thieffry-form-footer {
  background-color: ghostwhite;
  border-radius: 0 0 0.5rem 0.5rem;
  border-top: 1px solid black;
  display: flex;
  justify-content: space-around;
}

.thieffry-form-footer * {
  padding: 0.5rem;
}

.thieffry-form-footer * {
  text-align: center;
  font-size: 1em;
  font-weight: bold;
  color: #4a90e2;
}

.thieffry-form-footer *:hover {
  cursor: pointer;
}

.thieffry-form-body {
  padding: 0.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.thieffry-form-body.modal {
  flex: 1;
  max-height: 60vh;
}

.thieffry-form-group {
  flex: 1 1 calc(100% - 2rem);
  background-color: #f5f5f5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
}

.thieffry-form-group label {
  font-size: 1em;
  font-weight: bold;
}

.thieffry-form-field {
  background-color: white;
  padding: 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.thieffry-form-field.box {
  box-sizing: border-box;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  gap: 0.5rem;
}

.thieffry-form-field label {
  font-size: 50%;
  font-weight: bold;
}

/*     min-height: 0.5rem; overflow: auto; */

.thieffry-form-field * {
  border: none;
  outline: none;
}

.thieffry-form input,
.thieffry-form button {
  margin-top: 5px;
  margin-bottom: 5px;
}

.thieffry-form button,
.thieffry-form input[type="submit"] {
  background-color: #4a90e2;
  color: white;
  border: none;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-bottom: 0px;
}

.thieffry-form button:hover {
  background-color: #357ac9;
}

.thieffry-form input[type="submit"] {
  cursor: pointer;
}

.thieffry-input-file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.thieffry-input-file-name {
  font-style: italic;
  color: #555;
  flex: 1;
}

.thieffry-form-error {
  background-color: lightpink;
  text-align: center;
  width: 100%;
}