/* Hide timeline section when in Coming Soon mode */
body.coming-soon-mode .journey-section {
  display: none !important;
}

/* Coming Soon Topic Groups */
.topic-group-header {
  grid-column: 1 / -1;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--active-category-color, #7765e3);
  margin: 1.5rem 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--active-category-bg-color, #7765e31a);
}

.topic-group-header:first-child {
  margin-top: 0;
}

/* Multi-Select Topic Cards */
.topic-card--multi-select {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.topic-card--multi-select:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.topic-card--selected {
  border: 2px solid var(--active-category-color, #7765e3);
  background: var(--active-category-bg-color, #7765e31a);
  transform: translateY(-2px);
}

.topic-card--selected::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--active-category-color, #7765e3);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.topic-card--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.topic-card--disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Selection Counter */
.selection-counter {
  grid-column: 1 / -1;
  text-align: center;
  margin: 2rem 0 1rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.counter-text {
  display: block;
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.counter-numbers {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--active-category-color, #7765e3);
}

.selection-counter--complete {
  background: var(--active-category-bg-color, #7765e31a);
  border-color: var(--active-category-color, #7765e3);
}

.selection-counter--complete .counter-numbers {
  color: var(--active-category-color, #7765e3);
}

/* Selection Limit Message */
.selection-limit-message {
  background: #fff3cd;
  color: #856404;
  padding: 0.5rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  border: 1px solid #ffeaa7;
  animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  20%,
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Coming Soon Success Message */
.coming-soon-success {
  text-align: center;
  padding: 2rem;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  margin: 1rem 0;
}

.coming-soon-success h3 {
  color: #155724;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.coming-soon-success p {
  color: #155724;
  margin-bottom: 0.5rem;
}

/* Submit Button States for Coming Soon */
._button-wrapper.coming-soon-ready {
  /* Override any disabled styles when coming soon topics are selected */
}

._button-wrapper.coming-soon-ready::before {
  display: none !important;
}

._button-wrapper.coming-soon-ready button {
  pointer-events: auto !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

/* Coming Soon Submit Button */
.coming-soon-submit-container {
  grid-column: 1 / -1;
  text-align: center;
  margin: 1.5rem 0;
}

.coming-soon-submit-btn {
  background: var(--active-category-color, #7765e3);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.coming-soon-submit-btn:hover {
  background: var(--active-category-color, #6854d6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.coming-soon-submit-btn:active {
  transform: translateY(0);
}

/* Topic Suggestions Text Field */
.topic-suggestions-container {
  grid-column: 1 / -1;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.suggestions-label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.suggestions-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.suggestions-textarea:focus {
  outline: none;
  border-color: var(--active-category-color, #7765e3);
  box-shadow: 0 0 0 2px rgba(119, 101, 227, 0.2);
}

.suggestions-textarea::placeholder {
  color: #6c757d;
  font-style: italic;
}

/* BEGINNING OF ADDED */

/* External Selection Counter (full width, above grid) */
.selection-counter-external {
  width: 100%;
  text-align: center;
  margin: 0 0 1.5rem 0;
  padding: 0.75rem;
}

.selection-counter-external .counter-numbers {
  font-size: 1rem;
  font-weight: 500;
  color: #6c757d;
}

/* External Topic Suggestions (full width, below grid) */
.topic-suggestions-external {
  width: 100%;
  text-align: center;
  margin: 2rem 0 1rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.suggestions-label-external {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #495057;
}

.suggestions-textarea-external {
  width: 100%;
  max-width: 500px;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.suggestions-textarea-external:focus {
  outline: none;
  border-color: var(--active-category-color, #7765e3);
  box-shadow: 0 0 0 2px rgba(119, 101, 227, 0.2);
}

.suggestions-textarea-external::placeholder {
  color: #6c757d;
  font-style: italic;
}

/* External Submit Button (full width, always purple) */
.coming-soon-submit-external {
  width: 100%;
  text-align: center;
  margin: 1.5rem 0 2rem 0;
}

.coming-soon-submit-btn-external {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(119, 101, 227, 0.3);
}

.coming-soon-submit-btn-external:hover {
  background: var(--color-primary); /* Keep same purple */
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(119, 101, 227, 0.4);
}

.coming-soon-submit-btn-external:active {
  transform: translateY(0);
}

/* Colored Topic Cards (keep existing) */
.topic-card--colored {
  border-left: 4px solid var(--topic-card-color);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
}

.topic-card--colored.topic-card--selected {
  border: 2px solid var(--topic-card-color);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px var(--topic-card-color);
}

.topic-card--colored.topic-card--selected::after {
  background: var(--topic-card-color);
}

/* Email Input External */
.email-input-external {
  width: 100%;
  text-align: center;
  margin: 1rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.email-label-external {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #495057;
}

.email-input-field-external {
  width: 100%;
  max-width: 300px;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-input-field-external:focus {
  outline: none;
  border-color: var(--active-category-color, #7765e3);
  box-shadow: 0 0 0 2px rgba(119, 101, 227, 0.2);
}

/* Combined Form Container */
.coming-soon-form-external {
  width: 100%;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .topic-suggestions-external {
    margin: 1.5rem 0 1rem 0;
    padding: 0 1rem;
  }

  .suggestions-label-external {
    font-size: 1rem;
  }

  .suggestions-textarea-external {
    font-size: 0.85rem;
  }

  .coming-soon-submit-btn-external {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .topic-suggestions-container {
    margin: 1rem 0;
    padding: 0.75rem;
  }

  .suggestions-label {
    font-size: 0.9rem;
  }

  .suggestions-textarea {
    font-size: 0.85rem;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .topic-group-header {
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
  }

  .selection-counter {
    margin: 1.5rem 0 0.75rem 0;
    padding: 0.75rem;
  }

  .counter-text {
    font-size: 0.85rem;
  }

  .counter-numbers {
    font-size: 1rem;
  }

  .coming-soon-success {
    padding: 1.5rem;
  }

  .coming-soon-success h3 {
    font-size: 1.1rem;
  }
}
