/* Eventbox Event Form */

.ebef-form {
  max-width: 720px;
  margin: 0 auto;
}

.ebef-progress__bar {
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.ebef-progress__fill {
  display: block;
  height: 100%;
  background: #e6007e;
  transition: width 0.25s ease;
}

.ebef-progress__steps {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex-wrap: wrap;
}

.ebef-progress__steps li {
  flex: 1;
  min-width: 100px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #888;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.ebef-progress__steps li.is-active,
.ebef-progress__steps li.is-done {
  color: #111;
  border-bottom-color: #e6007e;
}

.ebef-step__title {
  margin: 0 0 20px;
  font-size: 1.35rem;
}

.ebef-field {
  display: block;
  margin-bottom: 18px;
}

.ebef-field > span,
.ebef-field > legend {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ebef-field input[type="text"],
.ebef-field input[type="email"],
.ebef-field input[type="url"],
.ebef-field input[type="date"],
.ebef-field input[type="time"],
.ebef-field input[type="number"],
.ebef-field input[type="password"],
.ebef-field input[type="file"],
.ebef-field select,
.ebef-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}

.ebef-field textarea {
  resize: vertical;
  min-height: 140px;
}

.ebef-field-hint {
  margin: -2px 0 8px;
  font-size: 12px;
  color: #666;
}

.ebef-editor-field .ebef-editor {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
  min-height: 180px;
  font-size: 15px;
}

.ebef-editor-field .ql-toolbar {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: #fafafa;
}

.ebef-editor-field.is-invalid .ebef-editor,
.ebef-editor-field.is-invalid .ql-toolbar {
  border-color: #c0392b;
}

.ebef-editor-field .ql-editor {
  min-height: 160px;
}

.ebef-editor-field .ql-editor h3 {
  font-size: 1.1rem;
  margin: 0.75em 0 0.35em;
}

.ebef-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .ebef-field-row {
    grid-template-columns: 1fr;
  }
}

.ebef-field fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.ebef-field fieldset label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.ebef-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
}

.ebef-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
}

.ebef-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.ebef-account-promo {
  background: linear-gradient(135deg, #fdf5f9 0%, #f8f4f6 100%);
  border: 1px solid rgba(230, 0, 126, 0.28);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.ebef-account-promo__toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  cursor: pointer;
}

.ebef-account-promo__toggle input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #e6007e;
}

.ebef-account-promo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ebef-account-promo__text strong {
  font-size: 15px;
  color: #111;
}

.ebef-account-promo__text small {
  font-size: 13px;
  color: #555;
  font-weight: 400;
}

.ebef-account-fields {
  margin: 0 0 18px;
  padding: 0;
}

.ebef-account-fields .ebef-field {
  margin-left: 0;
  padding-left: 0;
}

.ebef-account-fields input[type="password"],
.ebef-account-fields input[type="text"] {
  margin-left: 0;
  padding-left: 12px;
}

.ebef-search-field {
  position: relative;
}

.ebef-search-results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: 100%;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-height: 220px;
  overflow-y: auto;
}

.ebef-search-results li {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ebef-search-results li:hover,
.ebef-search-results li.is-focused {
  background: #fdf0f6;
}

.ebef-search-results small {
  display: block;
  color: #666;
  font-size: 11px;
  margin-top: 2px;
}

.ebef-datetime-group {
  border: none;
  margin: 0 0 20px;
  padding: 0;
}

.ebef-datetime-group legend {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0;
}

.ebef-search-field.is-selected .ebef-search-input {
  display: none;
}

.ebef-is-hidden,
.ebef-field[hidden] {
  display: none !important;
}

.ebef-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.ebef-tag-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.ebef-tag-list button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.ebef-form__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.ebef-btn {
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.ebef-btn--primary {
  background: #e6007e;
  color: #fff;
}

.ebef-btn--primary:hover {
  background: #c9006c;
}

.ebef-btn--primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ebef-btn--ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #333;
}

.ebef-form__error {
  color: #c0392b;
  background: #fdf0ef;
  border-left: 3px solid #c0392b;
  padding: 10px 12px;
  margin-top: 16px;
}

.ebef-form__success {
  color: #1a7a4a;
  background: #edfaf3;
  border-left: 3px solid #1a7a4a;
  padding: 10px 12px;
  margin-top: 16px;
}

.ebef-form__success-panel {
  background: #edfaf3;
  border: 1px solid rgba(26, 122, 74, 0.25);
  border-radius: 12px;
  padding: 24px;
  margin-top: 8px;
}

.ebef-form__success-lead {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
  line-height: 1.5;
}

.ebef-form__success-tip {
  margin: 0 0 20px;
  font-size: 14px;
  color: #333;
  line-height: 1.55;
}

.ebef-form__success-tip a {
  color: #e6007e;
  font-weight: 600;
}

.ebef-form__success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ebef-form__success-actions .ebef-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ebef-organizer-notice {
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 24px;
}

.ebef-organizer-notice p {
  margin: 0 0 20px;
  line-height: 1.55;
}

.ebef-field.is-invalid input,
.ebef-field.is-invalid select,
.ebef-field.is-invalid textarea {
  border-color: #c0392b;
}
