.background-container {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

.background-container .bg-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.background-container .bg-img.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 1s ease-in-out;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  max-width: 200px;
}

.content {
  position: relative;
  z-index: 4;
  color: #fff;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.content.show {
  opacity: 1;
}

.content p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 90%;
  margin: 0 auto;
}

.form-container {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  z-index: 5;
  width: 350px;
  max-width: 90%;
  color: black;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  max-height: 90vh;
  overflow-y: auto;
}

.form-container.show {
  opacity: 1;
}

.form-container img {
  max-width: 80%;
  height: auto;
  margin-bottom: 30px;
}

.form-control:focus {
  box-shadow: 0 0 0.2rem rgba(255, 0, 0, 0.21);
}

.form-floating > label {
  color: #909090 !important;
}

.message textarea {
  min-height: 150px;
}

.file-upload {
  position: relative;
  margin-bottom: 20px;
}

.file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-label {
  display: block;
  background-color: rgba(255, 0, 0, 0.507);
  border-radius: 5px;
  padding: 10px;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}

.file-count {
  color: #666;
  padding: 15px 0 0;
}

.file-name {
  color: #666;
  font-size: 0.9em;
  border-bottom: 1px solid #ccc;
  padding: 5px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
  width: 100%;
}

.file-text-container {
  flex-grow: 1;
  display: flex;
  overflow: hidden;
  text-align: left;
}

.file-name-text {
  flex-grow: 1;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 12px;
  color: #777;
  padding-left: 10px;
  white-space: nowrap;
}

.btn-circle {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  padding: 0;
  line-height: 1;
  font-size: 25px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.progress-container {
  width: 80%;
  max-width: 600px;
  margin: 20px auto;
  background-color: #f3f3f3;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 20px;
  background-color: #dc3545;
  width: 0%;
  transition: width 0.4s ease;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

.cancel-container {
  margin-top: 20px;
}

.cancel-btn {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cancel-btn:hover {
  background-color: #c82333;
}

@media (max-width: 768px) {
  .form-container {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .form-container img {
    max-width: 70%;
  }
}
