/* Community Events Form Styling Customizations */
/* Event Image Preview */
.tribe-section-image-uploader .tribe-image-preview {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.tribe-section-image-uploader .tribe-preview-label {
  margin-bottom: 0.75rem;
}

.tribe-section-image-uploader .tribe-preview-label p {
  font-weight: bold;
  margin: 0;
  color: #333;
}

.tribe-section-image-uploader .tribe-preview-image {
  text-align: center;
}

.tribe-section-image-uploader .tribe-preview-image img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Remove Image Button */
.tribe-remove-upload {
  margin-top: 0.75rem;
}

.tribe-remove-upload a {
  color: #c74554;
  text-decoration: none;
  font-size: 0.875rem;
}

.tribe-remove-upload a:hover,
.tribe-remove-upload a:focus {
  text-decoration: underline;
}

/* Submit Button Styling - Green (Fresh Forset) */
.events-community-submit {
  background: #145a5b !important;
  border-color: #145a5b !important;
  color: #fff !important;
  padding: 0.6125rem 1.225rem !important;
  font-weight: bold !important;
  cursor: pointer;
  transition: all 0.35s ease;
}

.events-community-submit:hover,
.events-community-submit:focus {
  background: transparent !important;
  border-color: #145a5b !important;
  color: #145a5b !important;
}

/* Form section styling */
.tribe-section {
  margin-bottom: 1.5rem;
}

.tribe-section-header h3,
.tribe-section-header h4 {
  margin: 0 0 1rem 0;
  color: #333;
}

/* Global overrides for Community form buttons (primary/secondary/ghost)
   Scoped to the community form to avoid affecting other site buttons. */
.tribe-events-community .tribe-button,
form[data-datepicker_format] .tribe-button,
tribe-common-c-btn,
tribe-events-c-search__button,
.tribe-section .tribe-button {
  background: #145a5b !important; /* primary background */
  border-color: #145a5b !important;
  color: #ffffff !important;
  border: 2px solid #145a5b;
}

.tribe-events-community .tribe-button.tribe-button-secondary,
form[data-datepicker_format] .tribe-button.tribe-button-secondary,
.image-upload-button,
.events-community-submit {
  background: #ffffff !important; /* secondary: white background */
  color: #145a5b !important; /* secondary text color */
  border-color: #145a5b !important;
}

.tribe-events-community .tribe-button:hover,
.tribe-events-community .tribe-button:focus,
form[data-datepicker_format] .tribe-button:hover,
form[data-datepicker_format] .tribe-button:focus,
tribe-common-c-btn:hover,
tribe-events-c-search__button:hover,
.image-upload-button:hover,
.events-community-submit {
  background-color: #145a5b !important;
  border-color: #145a5b !important;
  color: white !important;
}

/* Ghost / link-style buttons (remove image, etc) */
.tribe-events-community a.tribe-button.tribe-button-ghost,
.tribe-events-community .tribe-remove-upload a {
  background: transparent !important;
  border-color: transparent !important;
  color: #145a5b !important;
}

/* Ensure disabled buttons look muted */
.tribe-events-community .tribe-button[disabled],
.tribe-events-community .tribe-button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#tribe-community-events {
  max-width: 100% !important;
}

/* General form styling for Community Events */
.tribe-events-community input,
.tribe-events-community textarea,
.tribe-events-community select {
  color: #000 !important;
  background-color: #fff !important;
  border: 1px solid #ccc !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.tribe-events-community label {
  color: #000 !important;
  font-weight: 600 !important;
  margin-bottom: 5px !important;
  display: block !important;
}

.tribe-events-community .tribe-section-content {
  color: #000 !important;
}

.tribe-events-community p,
.tribe-events-community div {
  color: #000 !important;
}

#tribe-events-pg-template {
  color: black !important;
}

/* Organizer Details Section */
.tribe-events-community-details.eventForm.bubble {
  background: #f9f9f9 !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
}

.tribe-community-event-info {
  color: #000 !important;
}

.tribe_sectionheader h4 {
  margin: 0 0 15px 0 !important;
  color: #333 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

.organizer {
  margin-bottom: 15px !important;
}

.organizer label {
  display: block !important;
  margin-bottom: 5px !important;
  color: #333 !important;
  font-weight: 500 !important;
}

.organizer input[type="text"] {
  width: 100% !important;
  max-width: 400px !important;
  padding: 8px 12px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #000 !important;
  font-size: 14px !important;
}

#tribe-events-pg-template,
.tribe-events-pg-template {
  color: black !important;
}

.tribe-dropdown.select2-container--open .select2-search__field,
.tribe-ea-dropdown.select2-container--open .select2-search__field {
  font-size: 14px !important;
  padding: 4px 6px !important;
  color: #145a5b;
  border-radius: 4px;
}

.tribe-dropdown .select2-selection--single,
.tribe-ea-dropdown .select2-selection--single {
  width: 100%;
}
