/* Download Modal Styles */
.download-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.download-modal-content {
  position: relative;
  background: #f4f4f4;
  border-radius: 7px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.download-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #e1e1e1;
}

.download-modal-header h3 {
  margin: 0;
  font-size: 1.4em;
  color: #415aa8;
}

.download-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.download-modal-close:hover {
  background: #f5f5f5;
  color: #333;
}

.download-modal-body {
  padding: 30px;
}

.download-modal-body p {
  margin: 0 0 20px 0;
  color: #2f2e2d;
  line-height: 1.6;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #415aa8;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #415aa8;
  box-shadow: 0 0 0 2px #425aa870;
}

.download-submit-btn {
  background: #aed136;
  color: #2f2e2d;
  text-transform: uppercase;
  border: none;
  padding: 15px 30px;
  border-radius: 7px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
  font-size: 18px;
  font-weight: 800;
  line-height: 19px;
  font-family: var(--font-family);
}

.download-submit-btn:hover {
  background: #2f2e2d;
  color: #aed136;
}

.download-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Download Trigger Button Styles */
.download-trigger {
  display: inline-block;
  background: #415aa8;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
  font-weight: 500;
}

.download-trigger:hover {
  background: #005a87;
  color: white;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .download-modal-content {
    width: 95%;
    margin: 10px;
  }

  .download-modal-header {
    padding: 15px 20px;
  }

  .download-modal-body {
    padding: 20px;
  }
}

/* Success/Error Messages */
.download-modal-body p[style*="color: green"] {
  background: #d4edda;
  color: #155724 !important;
  border: 1px solid #c3e6cb;
  padding: 15px;
  border-radius: 4px;
  margin: 0;
}

/* Loading State */
.download-submit-btn[disabled] {
  position: relative;
}

.download-submit-btn[disabled]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
