.event-form-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.event-form-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.event-form {
  position: relative;
  background: var(--color-background-secondary);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-heavy);
}

.event-form h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-background);
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input::placeholder {
  color: var(--color-text-light);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(82, 148, 255, 0.15);
}

.error-message {
  background: var(--color-error-bg);
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.btn-cancel,
.btn-submit {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-cancel {
  background: var(--color-background-tertiary);
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
}

.btn-cancel:hover:not(:disabled) {
  background: var(--color-border);
  color: var(--color-text);
}

.btn-submit {
  background: var(--color-primary);
  color: white;
}

.btn-submit:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .event-form {
    padding: 1.5rem;
  }

  .event-form h2 {
    font-size: 1.25rem;
  }
}

.form-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

.image-upload-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn-upload-image {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary, #667eea);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-upload-image:hover {
  background: var(--color-primary-hover, #5a6fd6);
}

.btn-upload-image:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-remove-image {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-danger, #e53e3e);
  background: transparent;
  color: var(--color-danger, #e53e3e);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.btn-remove-image:hover {
  background: var(--color-danger, #e53e3e);
  color: #fff;
}

.url-input-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.25rem;
  margin-top: 0.5rem;
}

.image-preview {
  margin-top: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
  max-height: 180px;
  border: 1px solid var(--color-border);
}

.image-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.guest-fields-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.25rem;
}

.guest-field-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
}

.guest-field-checkbox input[type="checkbox"] {
  accent-color: var(--color-primary, #667eea);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}
