/* Event Form Styles */
.city-events-form-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  margin-bottom: 20px;
}

.form-group {
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 1rem;
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-md-4 {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}
@media (max-width: 768px) {
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .col-md-3,
  .col-md-6,
  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.city-events-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.city-events-form input[type="text"],
.city-events-form input[type="email"],
.city-events-form input[type="url"],
.city-events-form input[type="number"],
.city-events-form input[type="date"],
.city-events-form select,
.city-events-form textarea {
  width: 100%;
  padding: 8px;
  border: 0px;
  border-radius: 4px;
  height: 40px;
}

.city-events-form textarea {
  height: 120px;
}

.city-events-form .submit-button {
  cursor: pointer;
  width: 100%;
}

.form-text {
  display: block;
  margin-top: 5px;
  font-size: 0.875em;
  color: #666;
}

#form-messages {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
}

#form-messages.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#form-messages.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Custom File Upload Styles */
.custom-file-upload {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: #fafafa;
}

.custom-file-upload:hover {
  border-color: var(--brand-color, #007cba);
  background: #f0f8ff;
}

.custom-file-upload.dragover {
  border-color: var(--brand-color, #007cba);
  background: #e6f3ff;
  transform: scale(1.02);
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.upload-icon {
  font-size: 48px;
  opacity: 0.6;
}

.upload-text strong {
  display: block;
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.upload-text p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.upload-button {
  background: var(--brand-color, #007cba);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.upload-button:hover {
  background: var(--brand-color-dark, #005a87);
}

.file-preview {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.file-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.file-info {
  flex: 1;
  text-align: left;
}

.file-info span {
  display: block;
  font-size: 14px;
}

.file-info span:first-child {
  font-weight: bold;
  color: #333;
}

.file-info span:last-child {
  color: #666;
  font-size: 12px;
}

.remove-file {
  background: #dc3545;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.remove-file:hover {
  background: #c82333;
}

/* Responsive File Upload */
@media (max-width: 768px) {
  .custom-file-upload {
    padding: 20px;
  }

  .upload-icon {
    font-size: 36px;
  }

  .upload-text strong {
    font-size: 14px;
  }

  .file-preview {
    flex-direction: column;
    text-align: center;
  }

  .file-info {
    text-align: center;
  }
}
