/* 📝 Journal Submission Form Container
   Used in: journal.html, pages-of-healing.html
   Purpose: Centralized styling for user-submitted stories
*/
.journal-form {
  background-color: #f7f2e7;
  padding: 60px 30px;
  max-width: 900px;
  margin: 60px auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-family: 'Cormorant Garamond', serif;
}

.journal-form h2 {
  font-size: 28px;
  color: var(--deep-plum);
  margin-bottom: 10px;
}

.journal-form p {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 24px;
}

/* ✍️ Form Labels & Input Fields
   Used in: journal-form, newsletter sign-up
   Purpose: Consistent styling across input UI
*/
.journal-form label {
  font-size: 17px;
  display: block;
  margin-top: 20px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.journal-form input,
.journal-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  font-size: 16px;
  background-color: #fff;
}

/* 🧩 Other Topic Optional Field
   Used in: journal-form
   Purpose: Revealed dynamically when "Other" tag is selected
*/
#other-topic-text {
  display: none;
  margin-top: 10px;
  transition: all 0.3s ease;
}

/* 🧩 Topic Selection Tags
   Used in: journal-form
   Purpose: Provides expressive tagging for submissions
*/
.checkbox-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.journal-tags {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.journal-tags li {
  background-color: #dcebe2;
  color: #2f4f4f;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 20px;
  font-family: 'Cormorant Garamond', serif;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* 📤 Form Submit Button
   Used in: all forms
   Purpose: Clean action button styling
*/
.journal-form button {
  margin-top: 30px;
  padding: 12px 20px;
  background-color: var(--india-green);
  color: white;
  border: none;
  font-size: 17px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.journal-form button:hover {
  background-color: var(--deep-plum);
}

/* ✨ Submission Confirmation Message
   Used in: journal-form, contact forms
   Purpose: Positive reinforcement after entry
*/
.confirmation-message {
  display: none;
  color: #2d7634;
  font-weight: bold;
  margin-top: 1em;
  animation: fadeIn 1s ease forwards;
}

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