.quest-form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 31, 46, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease-out;
  backdrop-filter: blur(3px);
}

.quest-form-modal {
  background: linear-gradient(135deg, var(--parchment-light) 0%, var(--parchment) 100%);
  border-radius: 1rem;
  max-width: 550px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(139, 69, 19, 0.25), 0 0 20px rgba(218, 165, 32, 0.1);
  border: 1px solid var(--gold-dark);
  animation: scaleIn 0.3s ease-out;
}

.quest-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gold-dark);
  background: linear-gradient(90deg, rgba(218, 165, 32, 0.08) 0%, transparent 100%);
}

.quest-form-header h2 {
  margin: 0;
  color: var(--deep-blue);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.close-button {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--earth-brown);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  border-radius: 0.5rem;
}

.close-button:hover {
  color: var(--dark-red);
  background-color: rgba(218, 165, 32, 0.15);
  transform: rotate(90deg);
}

.quest-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: var(--deep-blue);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  padding: 0.75rem;
  border: 1px solid var(--gold-dark);
  border-radius: 0.5rem;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--deep-blue);
  background-color: var(--parchment-light);
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(139, 69, 19, 0.1);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  background-color: white;
  box-shadow: 0 2px 6px rgba(139, 69, 19, 0.15), 0 0 0 2px rgba(218, 165, 32, 0.15);
}

.form-input::placeholder {
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.7;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
}

.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 2px 6px rgba(139, 69, 19, 0.15), 0 0 0 2px rgba(218, 165, 32, 0.15);
}

.error-message {
  background-color: rgba(220, 38, 38, 0.1);
  color: var(--dark-red);
  padding: 0.75rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--dark-red);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.quest-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-dark);
}
