body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* overflow:  hidden !important; */
}

.side-form {
  position: fixed;
  top: 50%;
  right: -120px;
  display: none;
  transform: translateY(-50%);
  width: 320px;

  background: #ffffff;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 24px 12px;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border: 1px solid #e5e7eb;
}

.side-form.active {
  right: 0px;
  display: block;
}

.side-form .close-btn {
  font-size: 26px;
  font-weight: 800;
  color: #ff0000;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.side-form .title-wrap {
  position: relative;
  padding: 15px 20px;
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;

  align-items: center;
  text-align: center;
}

.side-form .title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
}

.stf-donate-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stf-donate-form > div.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.stf-donate-form label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
  line-height: 2;
}

.stf-donate-form input[type="text"],
.stf-donate-form input[type="email"],
.stf-donate-form input[type="tel"] {
  padding: 5px 14px;
  height: 35px;

  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 12px;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #1f2937;
}

.stf-donate-form input[type="text"]:focus {
  outline: none;
  border-color: #ff6f00;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stf-donate-form input[type="text"]:hover {
  border-color: #9ca3af;
}

.error-msg {
  position: absolute;
  top: 90%;
  left: 15px;
  font-size: 12px;
  color: #dc2626 !important;
  margin-top: 4px;
  display: none;
}

.stf-donate-form button[type="submit"] {
  background: linear-gradient(135deg, #af5917 0%, #ff6f00 100%);

  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.stf-donate-form button[type="submit"]:hover {
  background: linear-gradient(135deg, #ff6f00 0%, #af5917 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.stf-donate-form button[type="submit"]:active {
  transform: translateY(0);
}

#stf-message {
  margin-top: 12px;
}

#stf-message p {
  margin: 0;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
}

#stf-message p[style*="green"] {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
}

#stf-message p[style*="red"] {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
}

#stf-message p[style*="blue"] {
  background: #eff6ff !important;
  color: #2563eb !important;
  border: 1px solid #bfdbfe !important;
}

.image-scanner {
  backdrop-filter: blur(4px);
}

.image-scanner .modal {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  overflow: hidden;
}

.image-scanner .close-btn {
  background: #f3f4f6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.side-form {
  position: fixed;
  top: 50%;
  right: -120px;
  display: none;
  transform: translateY(-50%);
  width: 320px;

  background: #ffffff;

  padding: 24px 12px;
  z-index: 1000;
}

.side-form.active {
  right: 0px;
  display: block;
}

.image-scanner .close-btn:hover {
  background: #e5e7eb;
}
@media (max-width: 1024px) and (min-width: 768px) {
  .don-btn-wrap {
    /* position: fixed !important; */
    top: 30%;
    /* bottom: 0; */
    transform: rotate(270deg);
    /* width: fit-content !important; */
    height: fit-content;
    /* right: 0 !important; */
    left: 46% !important;
  }
  .side-form {
    position: fixed;
    top: auto !important;
    bottom: 0;
    /* right: -120px !important; */
    display: none;
    left: 0 ;
    width: 100%;
    border-radius: 16px 16px 0 0;
    transform: none;

    /* max-height: 80vh; */
    /* overflow-y: auto; */
  }
  
}

@media (max-width: 768px) {
  .don-btn-wrap {
    position: fixed !important;
    /* display: block !important; */
    bottom: 0;
    left: 0;
    right: 10px;
    /* width: 100% !important; */
            margin: 0 auto;
    /* padding: -48px -50px; */
    /* /* transform: rotate(-90deg); */
  }
  /* background: #e5e7eb; */
  .side-form {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 90%;
    border-radius: 16px 16px 0 0;
    transform: none;
    max-height: 80vh;
    margin: 0 auto;
    /* overflow-y: auto; */
  }

  .image-scanner .modal {
    width: 95%;
    margin: 50px auto;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%) translateY(-50%);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
  }
}

.side-form {
  animation: slideInRight 0.3s ease-out;
}

@media (max-width: 768px) {
  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .side-form {
    animation: slideInUp 0.3s ease-out;
  }
}

button.loading {
  pointer-events: none;
  opacity: 0.7;
}

button.loading::after {
  content: "";
  margin-left: 8px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-block;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
