/* AI Audit Modal Styles */

/* Modal overlay */
.audit-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}

/* Modal content container */
.audit-modal-content {
  background: linear-gradient(135deg, #002349 0%, #1e293b 100%);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 35, 73, 0.5);
  animation: slideIn 0.3s ease-out;
  border: 1px solid rgba(149, 124, 61, 0.2);
}

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

/* Modal header */
.audit-modal-header {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  padding: 20px 24px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(149, 124, 61, 0.3);
}

.audit-modal-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
}

/* Close button */
.audit-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  transition: transform 0.2s;
}

.audit-close:hover {
  transform: scale(1.2);
}

/* Form styling */
.audit-form {
  padding: 24px;
}

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

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

.audit-form-group input[type="text"],
.audit-form-group input[type="email"],
.audit-form-group select,
.audit-form-group textarea {
  width: 100%;
  padding: 12px;
  background: #2d3748;
  border: 1px solid #4a5568;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}

.audit-form-group input[type="text"]:focus,
.audit-form-group input[type="email"]:focus,
.audit-form-group select:focus,
.audit-form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #374151;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.audit-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Radio button group */
.audit-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  background: #2d3748;
  border: 1px solid #4a5568;
  border-radius: 6px;
  transition: background 0.2s, border-color 0.2s;
}

.audit-radio-label:hover {
  background: #374151;
  border-color: #2563eb;
}

.audit-radio-label input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.audit-radio-label span {
  color: #e5e7eb;
  font-size: 14px;
}

/* Submit button */
.audit-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.audit-submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
}

.audit-submit-btn:disabled {
  background: #6b7280;
  cursor: not-allowed;
  transform: none;
}

/* Status messages */
.audit-status {
  margin-top: 15px;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.audit-status:not(:empty) {
  display: block;
}

.audit-status-success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid #22c55e;
}

.audit-status-error {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid #ef4444;
}

/* Audit CTA button styling */
.audit-cta {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.audit-cta:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 6px 15px rgba(249, 115, 22, 0.4);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .audit-modal {
    padding: 10px;
  }

  .audit-modal-content {
    max-height: 95vh;
  }

  .audit-modal-header h2 {
    font-size: 20px;
  }

  .audit-form {
    padding: 20px;
  }

  .audit-form-group label {
    font-size: 13px;
  }

  .audit-form-group input[type="text"],
  .audit-form-group input[type="email"],
  .audit-form-group select,
  .audit-form-group textarea {
    font-size: 13px;
    padding: 10px;
  }

  .audit-radio-label span {
    font-size: 13px;
  }

  .audit-submit-btn {
    font-size: 15px;
    padding: 12px 20px;
  }
}

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

.audit-modal-content::-webkit-scrollbar-track {
  background: #002349;
}

.audit-modal-content::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 4px;
}

.audit-modal-content::-webkit-scrollbar-thumb:hover {
  background: #3b82f6;
}
