/* Download Modal Styles for AuricIQ Website */
/* Matches site's dark theme with gold accents */

.download-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-in-out;
}

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

.download-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.download-modal-content {
  position: relative;
  background: linear-gradient(180deg, rgba(42, 42, 53, 0.98), rgba(34, 34, 44, 0.98));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(212, 175, 55, 0.15);
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.download-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  transition: color 0.2s, transform 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.download-modal-close:hover {
  color: #D4AF37;
  transform: rotate(90deg);
}

.download-modal-header {
  margin-bottom: 30px;
}

.download-modal-header h2 {
  font-size: 26px;
  font-weight: 700;
  color: #F5F5F5;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(234, 205, 111, 0.4);
}

.download-modal-header p {
  font-size: 15px;
  color: #ADADB8;
  line-height: 1.6;
}

.download-modal-error {
  background: rgba(255, 80, 80, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff9999;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.download-modal-form {
  margin-bottom: 20px;
}

.download-form-group {
  margin-bottom: 20px;
}

.download-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #F5F5F5;
  margin-bottom: 8px;
}

.download-form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 15px;
  color: #F5F5F5;
  transition: all 0.2s;
  font-family: inherit;
}

.download-form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.download-form-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.download-modal-submit {
  width: 100%;
  background: linear-gradient(135deg, #D4AF37 0%, #EACD6F 100%);
  color: #1a1a1a;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.download-modal-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #EACD6F 0%, #D4AF37 100%);
}

.download-modal-submit:disabled {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  transform: none;
}

.download-modal-success {
  text-align: center;
  padding: 20px 0;
  animation: successFade 0.4s ease-out;
}

@keyframes successFade {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.download-modal-success .success-icon {
  font-size: 56px;
  color: #D4AF37;
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.download-modal-success h3 {
  font-size: 24px;
  color: #F5F5F5;
  margin-bottom: 12px;
  font-weight: 700;
}

.download-modal-success p {
  font-size: 15px;
  color: #ADADB8;
  margin-bottom: 8px;
  line-height: 1.5;
}

.download-modal-success a {
  color: #D4AF37;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.download-modal-success a:hover {
  color: #EACD6F;
  text-decoration: underline;
}

.download-modal-privacy {
  font-size: 12px;
  color: #777;
  text-align: center;
  line-height: 1.5;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrollbar styling for modal content */
.download-modal-content::-webkit-scrollbar {
  width: 8px;
}

.download-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.download-modal-content::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 10px;
}

.download-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .download-modal-content {
    padding: 32px 24px;
    width: 95%;
    border-radius: 16px;
  }

  .download-modal-header h2 {
    font-size: 22px;
  }

  .download-modal-header p {
    font-size: 14px;
  }

  .download-form-group input {
    padding: 11px 14px;
    font-size: 14px;
  }

  .download-modal-submit {
    padding: 13px 20px;
    font-size: 15px;
  }

  .download-modal-success .success-icon {
    font-size: 48px;
  }

  .download-modal-success h3 {
    font-size: 20px;
  }
}
