/* ========================================
   Modal Overlay
   ======================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================
   Modal Content
   ======================================== */

.modal-content {
  background: #2a2a2a;
  margin: 5% auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  position: relative;
  animation: slideIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========================================
   Close Button
   ======================================== */

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: #667eea;
}

/* ========================================
   Modal Header
   ======================================== */

.modal-header {
  padding: 40px 40px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-family: "Orbitron", sans-serif;
}

.modal-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* ========================================
   Modal Body
   ======================================== */

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

/* Google Form Embed Styling */
#googleFormEmbed {
  border: none;
  border-radius: 8px;
  background: #1a1a1a;
  min-height: 600px;
}

/* Form Footer */
.form-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-notices {
  margin-bottom: 20px;
}

.notice-box {
  background: rgba(102, 126, 234, 0.1);
  border-left: 3px solid #667eea;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.notice-box.terms-notice {
  background: rgba(255, 152, 0, 0.1);
  border-left-color: #ff9800;
}

.notice-box i {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.gdpr-notice i {
  color: #667eea;
}

.terms-notice i {
  color: #ff9800;
}

.notice-box p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

.notice-box strong {
  color: #ffffff;
  font-weight: 600;
}

.privacy-lock {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.privacy-lock i {
  color: #4caf50;
}

/* ========================================
   Success Message (for post-submission)
   ======================================== */

.success-message {
  text-align: center;
  padding: 40px;
  display: none;
}

.success-message.show {
  display: block;
}

.success-message i {
  font-size: 4rem;
  color: #4caf50;
  margin-bottom: 1rem;
  animation: checkmark 0.5s ease;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.success-message h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.success-message p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.success-message .email-highlight {
  color: #667eea;
  font-weight: 600;
}

.success-message .download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 18px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  margin-bottom: 1rem;
}

.success-message .download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.success-message .support-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.success-message .support-text a {
  color: #667eea;
  text-decoration: underline;
}

/* ========================================
   Responsive Modal
   ======================================== */

@media (max-width: 767px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

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

  .modal-header h2 {
    font-size: 1.5rem;
  }

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

  .close {
    right: 15px;
    top: 15px;
    font-size: 28px;
  }

  #googleFormEmbed {
    height: 500px;
  }
}
