.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,rgba(0,0,0,.85),rgba(0,0,0,.75));
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: .4s cubic-bezier(.4, 0, .2, 1)
}
.loading-overlay.active {
  opacity: 1;
  visibility: visible
}
.loading-content {
  text-align: center;
  color: #fff;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  max-width: 400px;
  width: 90%;
  animation: .6s cubic-bezier(.4,0,.2,1) slideInUp
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }
  to {
    opacity: 1;
    transform: translateY(0)
  }
}
.loading-spinner {
  width: 70px;
  height: 70px;
  border: 3px solid rgba(255,255,255,.1);
  border-top: 3px solid #fc0;
  border-right: 3px solid gold;
  border-radius: 50%;
  animation: 1.2s cubic-bezier(.68,-.55,.265,1.55) infinite spin;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(255,204,0,.3)
}
.loading-spinner::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid transparent;
  border-top: 2px solid rgba(255,204,0,.2);
  border-radius: 50%;
  animation: 2s linear infinite reverse spin
}
.loading-spinner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,.1);
  border-top: 2px solid #fc0;
  border-radius: 50%;
  animation: .8s linear infinite spin
}
@keyframes spin {
  0% {
    transform: rotate(0)
  }
  100% {
    transform: rotate(360deg)
  }
}
.loading-text {
  margin-top: 25px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .5px;
  animation: .8s ease-out .2s both fadeInUp
}
.loading-subtext {
  margin-top: 12px;
  font-size: 15px;
  color: rgba(255,255,255,.85);
  font-weight: 400;
  animation: .8s ease-out .4s both fadeInUp
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px)
  }
  to {
    opacity: 1;
    transform: translateY(0)
  }
}
.file-upload-progress {
  margin-top: 20px;
  width: 100%;
  max-width: 320px;
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  height: 8px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.2)
}
.file-upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg,#fc0,gold,orange);
  border-radius: 12px;
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
  width: 0%;
  position: relative;
  overflow: hidden
}
.file-upload-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);
  animation: 2s infinite shimmer
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%)
  }
  100% {
    transform: translateX(100%)
  }
}
.file-upload-text {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.9);
  font-weight: 500;
  animation: .8s ease-out .6s both fadeInUp
}
.btn-submit.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
  background: linear-gradient(45deg,#fc0,gold);
  box-shadow: 0 4px 15px rgba(255,204,0,.4)
}
.btn-submit.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: 1s linear infinite spin
}
.file-input.loading {
  position: relative;
  opacity: .8;
  border-color: #fc0;
  box-shadow: 0 0 0 2px rgba(255,204,0,.2)
}
.file-input.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,204,0,.3);
  border-top: 2px solid #fc0;
  border-radius: 50%;
  animation: 1s linear infinite spin
}
.loading-overlay.success .loading-spinner {
  animation: none;
  border-color: #28a745
}
.loading-overlay.success .loading-spinner::after {
  content: "✓";
  border: none;
  font-size: 16px;
  color: #28a745;
  font-weight: 700;
  animation: none
}
.loading-overlay.error .loading-spinner {
  animation: none;
  border-color: #dc3545
}
.loading-overlay.error .loading-spinner::after {
  content: "✕";
  border: none;
  font-size: 16px;
  color: #dc3545;
  font-weight: 700;
  animation: none
}
@media (max-width:768px) {
  .loading-content {
    padding: 30px 20px;
    margin: 20px
  }
  .loading-spinner {
    width: 60px;
    height: 60px
  }
  .loading-spinner::after {
    width: 20px;
    height: 20px
  }
  .loading-text {
    font-size: 18px
  }
  .loading-subtext {
    font-size: 14px
  }
  .file-upload-progress {
    max-width: 280px
  }
}
@media (max-width:480px) {
  .loading-content {
    padding: 25px 15px;
    margin: 15px
  }
  .loading-spinner {
    width: 50px;
    height: 50px
  }
  .loading-spinner::after {
    width: 16px;
    height: 16px
  }
  .loading-text {
    font-size: 16px
  }
}
.success-message {
  margin-top: 30px;
  animation: .6s cubic-bezier(.4,0,.2,1) slideInUp
}
.success-content {
  background: linear-gradient(135deg,#f8f9fa,#e9ecef);
  border: 2px solid #28a745;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(40,167,69,.1);
  position: relative;
  overflow: hidden
}
.success-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,#28a745,#20c997,#28a745);
  animation: 3s infinite shimmer
}
.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg,#28a745,#20c997);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(40,167,69,.3);
  animation: .8s cubic-bezier(.68,-.55,.265,1.55) bounceIn
}
.success-icon i {
  font-size: 40px;
  color: #fff
}
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(.3)
  }
  50% {
    opacity: 1;
    transform: scale(1.05)
  }
  70% {
    transform: scale(.9)
  }
  100% {
    opacity: 1;
    transform: scale(1)
  }
}
.success-title {
  font-size: 28px;
  font-weight: 700;
  color: #28a745;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,.1)
}
.success-text {
  font-size: 16px;
  color: #495057;
  margin-bottom: 25px;
  line-height: 1.6
}
.success-details {
  background: rgba(255,255,255,.7);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  text-align: left
}
.success-details p {
  margin-bottom: 15px;
  color: #495057;
  font-weight: 600
}
.success-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px
}
.success-details li {
  padding: 8px 0 8px 25px;
  position: relative;
  color: #6c757d;
  line-height: 1.5
}
.success-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: 700;
  font-size: 16px
}
.contact-note {
  background: rgba(40,167,69,.1);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #28a745;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6
}
.contact-note a {
  color: #28a745;
  text-decoration: none;
  font-weight: 600
}
.contact-note a:hover {
  text-decoration: underline
}
.success-actions {
  margin-top: 25px;
  text-align: center
}
.success-actions .btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: .3s;
  border: 2px solid #6c757d;
  background: 0 0;
  color: #6c757d;
  cursor: pointer
}
.success-actions .btn:hover {
  background: #6c757d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108,117,125,.3)
}
@media (max-width:768px) {
  .success-content {
    padding: 25px 20px;
    margin: 20px 0
  }
  .success-icon {
    width: 70px;
    height: 70px
  }
  .success-icon i {
    font-size: 35px
  }
  .success-title {
    font-size: 24px
  }
  .success-text {
    font-size: 15px
  }
  .success-details {
    padding: 15px
  }
}
@media (max-width:480px) {
  .success-content {
    padding: 20px 15px;
    margin: 15px 0
  }
  .success-icon {
    width: 60px;
    height: 60px
  }
  .success-icon i {
    font-size: 30px
  }
  .success-title {
    font-size: 20px
  }
  .success-text {
    font-size: 14px
  }
  .success-details {
    padding: 12px
  }
  .success-details li {
    font-size: 14px
  }
}