/* ASSET SUBMISSION FORM STYLES */

/* Form Container */
form.asset-form {
  margin: 2rem auto;
}

.asset-form {
  max-width: 800px;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-family: "Arial", sans-serif;
}

.asset-form * {
  box-sizing: border-box;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
}

.asset-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #495057;
}

.asset-form input[type="email"],
.asset-form input[type="text"],
.asset-form textarea,
.asset-form select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.asset-form input[type="email"]:focus,
.asset-form input[type="text"]:focus,
.asset-form textarea:focus,
.asset-form select:focus {
  border-color: #a3c211;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(179, 255, 3, 0.25);
}

.asset-form textarea {
  min-height: 100px;
  resize: vertical;
}

.asset-form input[type="file"] {
  display: block;
  margin-top: 0.5rem;
}

.term-fields {
  background-color: #e9ecef;
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

/* Submit Button */
.asset-form button[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: #a3c211;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.asset-form button[type="submit"]:hover {
  background-color: #78c211;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .form-group {
    display: flex;
    align-items: center;
  }

  .asset-form label {
    flex: 0 0 30%;
    margin-bottom: 0;
    margin-right: 1rem;
  }

  .asset-form input[type="email"],
  .asset-form input[type="text"],
  .asset-form textarea,
  .asset-form select,
  .asset-form input[type="file"] {
    flex: 1;
  }

  .term-fields .form-group {
    margin-bottom: 1rem;
  }

  .asset-form button[type="submit"] {
    width: auto;
    padding: 0.75rem 2rem;
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  .asset-form {
    padding: 1rem;
  }
  .term-fields {
    padding: 1rem;
  }
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  display: inline-block;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 5px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.other-field {
  transition: all 0.3s ease-in-out;
}

/* Select2 Styles */
.select2-container .select2-selection {
  height: 44px !important;
  border: 1px solid #ced4da !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 8px 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 6px;
}

/* loading */
.asset-form.loading {
  opacity: 0.6;
  pointer-events: none;
}
.btn-loading {
  position: relative;
  color: transparent !important;
}
.btn-loading svg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  animation: rotate 1s linear infinite;
}
@keyframes rotate {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
